Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetStringFromContext ¶
func GetStringFromContext(ctx context.Context, key ContextKey) (string, error)
func NewAuthenticationContextMiddleware ¶
func NewAuthenticationContextMiddleware() *authContextMiddleware
func PutIntoContext ¶
Types ¶
type Authenticator ¶
type Authenticator interface { AuthenticateToken(context context.Context) (string, error) Authenticate(context context.Context) (string, error) AuthenticateCertificate(context context.Context) (string, string, error) }
func NewAuthenticator ¶
func NewAuthenticator() Authenticator
type ContextKey ¶
type ContextKey string
const ( ConnectorTokenKey ContextKey = "ConnectorToken" ClientIdFromTokenKey ContextKey = "ClientIdFromToken" TokenTypeKey ContextKey = "TokenType" ClientIdFromCertificateKey ContextKey = "ClientIdFromCertificate" ClientCertificateHashKey ContextKey = "ClientCertificateHash" )
Click to show internal directories.
Click to hide internal directories.