auth

package
v1.5.3 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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