Documentation ¶
Index ¶
- Constants
- func NewHandler(expectedSecret, expectedID string) *handler
- func NewHandlerWithSigningKey(expectedSecret, expectedID, expectedUsername, expectedPassword, ... string, ...) *handler
- func NewJWKSHandler(key *rsa.PublicKey) *jwksHandler
- func NewOpenIDConfigHandler(baseURL, jwksPath string) *openIDConfigHandler
- type Claims
- type ClaimsGetterFunc
- type TokenResponse
Constants ¶
View Source
const ( XExternalHost = "X-External-Host" GrantTypeFieldName = "grant_type" CredentialsGrantType = "client_credentials" PasswordGrantType = "password" ScopesFieldName = "scopes" ClientIDKey = "client_id" ClientSecretKey = "client_secret" UserNameKey = "username" PasswordKey = "password" ZidKey = "x-zid" )
Variables ¶
This section is empty.
Functions ¶
func NewHandler ¶
func NewHandler(expectedSecret, expectedID string) *handler
func NewHandlerWithSigningKey ¶
func NewHandlerWithSigningKey(expectedSecret, expectedID, expectedUsername, expectedPassword, tenantHeaderName, externalHost string, signingKey *rsa.PrivateKey, staticMappingClaims map[string]ClaimsGetterFunc) *handler
func NewJWKSHandler ¶
func NewOpenIDConfigHandler ¶
func NewOpenIDConfigHandler(baseURL, jwksPath string) *openIDConfigHandler
Types ¶
type Claims ¶
type ClaimsGetterFunc ¶
type ClaimsGetterFunc func() map[string]interface{}
type TokenResponse ¶
Click to show internal directories.
Click to hide internal directories.