Documentation ¶
Index ¶
Constants ¶
View Source
const ( JTILength = 14 JWTExpirationMinutes = 10 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessToken ¶
type AccessToken string
type AccessTokenSource ¶
type TokenAddingInterceptor ¶
type TokenAddingInterceptor struct {
// contains filtered or unexported fields
}
func NewTokenAddingInterceptor ¶
func NewTokenAddingInterceptor(t AccessTokenSource) TokenAddingInterceptor
func (TokenAddingInterceptor) AddCredentials ¶
func (i TokenAddingInterceptor) AddCredentials(ctx context.Context, method string, req, reply any, cc *grpc.ClientConn, invoker grpc.UnaryInvoker, opts ...grpc.CallOption) error
func (TokenAddingInterceptor) GetDPoPToken ¶
func (i TokenAddingInterceptor) GetDPoPToken(path, method, accessToken string) (string, error)
Click to show internal directories.
Click to hide internal directories.