Documentation
¶
Overview ¶
Package keycloak provides an implementation of the Keycloak IdentityProvider.
Index ¶
- type KeyCloak
- func (k *KeyCloak) DeleteUser(ctx context.Context, userID string) error
- func (k *KeyCloak) GetAdminEvents(ctx context.Context, operationTypes, resourceTypes []string) ([]auth.AdminEvent, error)
- func (k *KeyCloak) GetEvents(ctx context.Context) ([]auth.AccountEvent, error)
- func (k *KeyCloak) Resolve(ctx context.Context, id string) (*auth.Identity, error)
- func (k *KeyCloak) ResolveFederated(ctx context.Context, federatedIdP, id string) (*auth.Identity, error)
- func (k *KeyCloak) String() string
- func (k *KeyCloak) URL() url.URL
- func (k *KeyCloak) Validate(_ context.Context, token jwt.Token) (*auth.Identity, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KeyCloak ¶
type KeyCloak struct {
// contains filtered or unexported fields
}
KeyCloak is an implementation of the auth.IdentityProvider interface.
func NewKeyCloak ¶
func NewKeyCloak(name string, cfg serverconfig.IdentityConfig) (*KeyCloak, error)
NewKeyCloak creates a new KeyCloak identity provider.
func (*KeyCloak) DeleteUser ¶ added in v0.2.0
DeleteUser deletes a user from Keycloak
func (*KeyCloak) GetAdminEvents ¶ added in v0.2.0
func (k *KeyCloak) GetAdminEvents(ctx context.Context, operationTypes, resourceTypes []string) ([]auth.AdminEvent, error)
GetAdminEvents returns administrative events from Keycloak
func (*KeyCloak) ResolveFederated ¶ added in v0.2.0
func (k *KeyCloak) ResolveFederated(ctx context.Context, federatedIdP, id string) (*auth.Identity, error)
ResolveFederated implements auth.IdentityProvider.
Click to show internal directories.
Click to hide internal directories.