Documentation
¶
Overview ¶
Package access signs users in through an OpenID Connect provider and keeps their sessions in encrypted cookies.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Access ¶
type Access struct {
// contains filtered or unexported fields
}
Access discovers the provider and handles sign-in, sign-out, and sessions.
func (*Access) CurrentUser ¶
CurrentUser returns the signed-in user for a request. A missing, expired, or invalid session counts as no user.
type Options ¶
type Options struct {
BaseURL string
Issuer string
ClientID string
ClientSecret string
CookieKey []byte
AdminGroup string
CustomerGroup string
GroupsClaim string
}
Options holds the settings the access component needs.