discharger

package
v1.12.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 13, 2022 License: AGPL-3.0 Imports: 36 Imported by: 0

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

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL