Documentation ¶
Index ¶
- func ImportLegacyAddrTokenProvider(c *keycloak.Config) error
- func NewKeycloakURIProvider(entries map[string]string, defaultKey string) (keycloak.KeycloakURIProvider, error)
- func NewKeycloakURIProviderFromArray(uris []string) (keycloak.KeycloakURIProvider, error)
- type IssuerManager
- type Logger
- type OidcTokenProvider
- type OidcVerifier
- type OidcVerifierProvider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ImportLegacyAddrTokenProvider ¶
func ImportLegacyAddrTokenProvider(c *keycloak.Config) error
func NewKeycloakURIProvider ¶
Types ¶
type IssuerManager ¶
type IssuerManager interface {
GetOidcVerifierProvider(issuer string) (OidcVerifierProvider, error)
}
IssuerManager provides URL according to a given context
func NewIssuerManager ¶
func NewIssuerManager(config keycloak.Config) (IssuerManager, error)
NewIssuerManager creates a new URLProvider
type OidcTokenProvider ¶
type OidcTokenProvider interface { ProvideToken(ctx context.Context) (string, error) ProvideTokenForRealm(ctx context.Context, realm string) (string, error) }
OidcTokenProvider provides OIDC tokens
func NewOidcTokenProvider ¶
func NewOidcTokenProvider(config keycloak.Config, realm, username, password, clientID string, logger Logger) OidcTokenProvider
NewOidcTokenProvider creates an OidcTokenProvider
type OidcVerifier ¶
OidcVerifier is an interface for OIDC token verifiers
type OidcVerifierProvider ¶
type OidcVerifierProvider interface {
GetOidcVerifier(realm string) (OidcVerifier, error)
}
OidcVerifierProvider is an interface for a provider of OidcVerifier instances
func NewVerifierCache ¶
func NewVerifierCache(tokenURL *url.URL, timeToLive time.Duration, errorTolerance time.Duration) OidcVerifierProvider
NewVerifierCache create an instance of OIDC verifier cache
Click to show internal directories.
Click to hide internal directories.