authn

package
v0.12.0-rc.4 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2021 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrHostnameNotFound   = xerrors.New("authn: hostname not found")
	ErrSessionNotFound    = xerrors.New("authn: session not found")
	ErrInvalidCertificate = xerrors.New("authn: invalid certificate")
	ErrInvalidToken       = xerrors.New("authn: invalid token")
	ErrUserNotFound       = xerrors.New("authn: user not found")
	ErrNotAllowed         = xerrors.New("authn: not allowed")
)
View Source
var DefaultAuthentication = &authentication{}

Functions

func Init

func Init(conf *configv2.Config, sessionStore session.Store, userDatabase database.UserDatabase, tokenDatabase database.TokenDatabase, revokedCert revokedCertClient)

Types

type TokenClaims

type TokenClaims struct {
	jwt.StandardClaims
	Roles []string `json:"roles,omitempty"`
}

Jump to

Keyboard shortcuts

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