auth

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2022 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BeginLoginHandler

func BeginLoginHandler(webAuthnCtx *webauthn.WebAuthn, sessionStore *session.Store, userDB *userdb.Userdb) func(w http.ResponseWriter, r *http.Request)

func BeginRegistrationHandler

func BeginRegistrationHandler(webAuthnCtx *webauthn.WebAuthn, sessionStore *session.Store, userDB *userdb.Userdb) func(w http.ResponseWriter, r *http.Request)

func CheckJwtHandler

func CheckJwtHandler(proxy *httputil.ReverseProxy, hostname string, jwtSecret string) func(http.ResponseWriter, *http.Request)

func FinishLoginHandler

func FinishLoginHandler(webAuthnCtx *webauthn.WebAuthn, sessionStore *session.Store, userDB *userdb.Userdb, jwtOptions *JwtOptions) func(w http.ResponseWriter, r *http.Request)

func FinishRegistrationHandler

func FinishRegistrationHandler(webAuthnCtx *webauthn.WebAuthn, sessionStore *session.Store, userDB *userdb.Userdb) func(w http.ResponseWriter, r *http.Request)

func RegistrationDisabledHandler

func RegistrationDisabledHandler() func(w http.ResponseWriter, r *http.Request)

Types

type FloodClaims

type FloodClaims struct {
	Username string `json:"username"`
	jwt.StandardClaims
}

type JwtOptions

type JwtOptions struct {
	Secret        string
	TokenValidFor time.Duration
	CookieDomain  string
}

Jump to

Keyboard shortcuts

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