Documentation ¶
Index ¶
Constants ¶
View Source
const ( ClientHeaderKey = "client-id" ClientSecretKey = "client-secret" )
Variables ¶
This section is empty.
Functions ¶
func GrpcAuthStreamServerInterceptor ¶
func GrpcAuthStreamServerInterceptor() grpc.StreamServerInterceptor
GrpcAuthStreamServerInterceptor returns a new unary server interceptor for auth.
func GrpcAuthUnaryServerInterceptor ¶
func GrpcAuthUnaryServerInterceptor() grpc.UnaryServerInterceptor
GrpcAuthUnaryServerInterceptor returns a new unary server interceptor for auth.
Types ¶
type Authentication ¶
type Authentication struct {
// contains filtered or unexported fields
}
Authentication todo
func NewClientAuthentication ¶
func NewClientAuthentication(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) WithClientCredentials ¶
func (a *Authentication) WithClientCredentials(clientID, clientSecret string)
WithClientCredentials todo
Click to show internal directories.
Click to hide internal directories.