Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Configuration ¶
Configuration defines available authentication flows.
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
Context coordinates the entire login process.
func New ¶
New creates a Context from the configured flow reference. `flow` is used as the path into the application configuration.
type Module ¶
type Module interface { // Login authenticates the subject. // It can use the supplied handler to prompt for // information such as username or password. Login( subject security.Subject, handler miruken.Handler, ) error // Logout logs out the subject by remove principals // and/or credentials from the subject. Logout( subject security.Subject, handler miruken.Handler, ) error }
Module is responsible for implementing an authentication strategy. e.g. basic username/password, oauth token
type ModuleEntry ¶
ModuleEntry defines a single module in the login Configuration.
func (ModuleEntry) Validate ¶ added in v0.30.69
func (m ModuleEntry) Validate() error
Click to show internal directories.
Click to hide internal directories.