Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authenticator ¶
type KeycloakAuthenticator ¶
type KeycloakAuthenticator struct {
// contains filtered or unexported fields
}
func NewKeycloakAuthenticator ¶
func NewKeycloakAuthenticator(httpjwks bool, issuerURL string, audience string) (*KeycloakAuthenticator, error)
newKeycloakAuthenticator (https bool, jwks string, redirect string)
get keyfunc based on https
func (*KeycloakAuthenticator) AuthenticateRequest ¶
func (a *KeycloakAuthenticator) AuthenticateRequest(r *http.Request) *user.UserInfo
type KeycloakClaim ¶
type KeycloakClaim struct { RealmAccess RealmAccessSubclaim `json:"realm_access"` jwt.RegisteredClaims }
type NullAuthenticator ¶
type NullAuthenticator struct{}
func NewNullAuthenticator ¶
func NewNullAuthenticator() *NullAuthenticator
func (*NullAuthenticator) AuthenticateRequest ¶
func (a *NullAuthenticator) AuthenticateRequest(r *http.Request) *user.UserInfo
type RealmAccessSubclaim ¶
type RealmAccessSubclaim struct {
Roles []string `json:"roles"`
}
Click to show internal directories.
Click to hide internal directories.