auth

package
v0.0.0-...-ff8a066 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFake

func NewFake() *fakeAuth

func NewJWT

func NewJWT() (*jwtAuth, error)

func NewLDAP

func NewLDAP() *ldapAuth

Types

type Attempt

type Attempt interface {
	// Only used for username/password auth
	Username() string
	// Used for password/OTP/U2F
	Credential() string
}

type ChallengeType

type ChallengeType int
const (
	ChallengeUsernamePassword ChallengeType = 1
	ChallengeJWT              ChallengeType = 2
)

type Verification

type Verification interface {
	Username() string
	Groups() []string
}

Jump to

Keyboard shortcuts

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