Documentation ¶
Overview ¶
Package discharger serves all of the endpoints related to discharging macaroon and logging in.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAPIHandler ¶
func NewAPIHandler(params identity.HandlerParams) ([]httprequest.Handler, error)
NewAPIHandler is an identity.NewAPIHandlerFunc.
Types ¶
type MFAAuthenticator ¶ added in v1.11.0
type MFAAuthenticator interface { // SetMFAStateProviderID sets the provider id in the mfa login state cookie. SetMFAStateProviderID(w http.ResponseWriter, providerID string) (string, error) // HasMFACredentials returns true, if the user with the specified providerID has // any registered MFA credentials. HasMFACredentials(ctx context.Context, providerID string) (bool, error) }
MFAAuthenticator defines the interface used by the visitCompleter to interact with the MFA authentication flow.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.