Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authentication ¶
type Authentication interface {
Authenticate() grpc.UnaryClientInterceptor
}
Authentication interface
type Interceptor ¶
type Interceptor struct {
// contains filtered or unexported fields
}
Interceptor is the interceptor for the authentication
func NewInterceptor ¶
func NewInterceptor( tokenSource *oauth.TokenSource, grpcInterceptions *map[pbtypesgrpc.Method]pbtypesgrpc.Interception, ) (*Interceptor, error)
NewInterceptor creates a new authentication interceptor
func (*Interceptor) Authenticate ¶
func (i *Interceptor) Authenticate() grpc.UnaryClientInterceptor
Authenticate returns a new unary client interceptor that adds authentication metadata to the context
Click to show internal directories.
Click to hide internal directories.