Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrDomainNotFound = errors.New("`unix` domain not found")
View Source
var ErrMissingContextAuthenticator = errors.New("missing ContextAuthenticator")
View Source
var ErrMissingDomain = errors.New("missing Domain")
View Source
var ErrMissingUnixClaim = errors.New("identity without `unix` claim")
Functions ¶
This section is empty.
Types ¶
type UserAuthn ¶
type UserAuthn struct { ContextAuthenticator auth.Authenticator Domain string }
`UserAuthn.Authenticate(ctx)` uses the `ContextAuthenticator` to get an `auth.Identity` from the context. It then searches the `Domain` in the identity field `unix` and stores the selected entry of type `auth.UnixIdentity` in the identity field `unixLocal`. `Authenticate()` returns an error if any of the steps fails.
Click to show internal directories.
Click to hide internal directories.