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"` }
Click to show internal directories.
Click to hide internal directories.