Documentation ¶
Index ¶
Constants ¶
View Source
const ( ClientHeaderKey = "client-id" ClientSecretKey = "client-secret" )
Variables ¶
This section is empty.
Functions ¶
func GetClientCredential ¶ added in v1.0.0
func GetClientId ¶ added in v0.0.6
func GrpcAuthUnaryServerInterceptor ¶
func GrpcAuthUnaryServerInterceptor(svr service.MetaServiceClient) grpc.UnaryServerInterceptor
Types ¶
type Authentication ¶
type Authentication struct {
// contains filtered or unexported fields
}
Authentication todo
func NewAuthentication ¶
func NewAuthentication(clientId, clientSecret string) *Authentication
func (*Authentication) GetRequestMetadata ¶
func (a *Authentication) GetRequestMetadata(context.Context, ...string) ( map[string]string, error, )
GetRequestMetadata todo
func (*Authentication) RequireTransportSecurity ¶
func (a *Authentication) RequireTransportSecurity() bool
RequireTransportSecurity todo
func (*Authentication) SetClientCredentials ¶
func (a *Authentication) SetClientCredentials(clientID, clientSecret string)
Click to show internal directories.
Click to hide internal directories.