Documentation ¶
Overview ¶
Package authn is in charge authenticating requests.
Authenticators will be instantiated per identity provider URI. Currently only OpenID is supported.
OpenID configuration and keys will be cached.
Index ¶
Constants ¶
View Source
const CacheTTL = 1 * time.Hour
CacheTTL is the cache duration for remote info like OpenID config or keys.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authenticator ¶
Authenticator is in charge of authenticating requests.
func NewAuthenticator ¶
func NewAuthenticator(idP string) (Authenticator, error)
NewAuthenticator instantiates or reuses an existing one for the specified identity provider.
Click to show internal directories.
Click to hide internal directories.