Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExternalAccount ¶
type ExternalAccount struct { // REQUIRED: The username of the account. User string // The nick name of the account. Name string // The email address of the account. Email string // Whether the user should be prompted as a site admin. Admin bool }
ExternalAccount contains queried information returned by an authenticate provider for an external account.
type Provider ¶
type Provider interface {
Authenticate(login, password string) (*ExternalAccount, error)
}
Provider defines an authenticate provider which provides ability to authentication against an external identity provider and query external account information.
Click to show internal directories.
Click to hide internal directories.