auth

package
v0.0.0-...-7e796b2 Latest Latest
Warning

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

Go to latest
Published: May 26, 2024 License: MPL-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth

type Auth struct {
	// contains filtered or unexported fields
}

func NewAuth

func NewAuth(cfg config.AuthConfig) *Auth

func (*Auth) Authorize

func (a *Auth) Authorize(w http.ResponseWriter, r *http.Request)

func (*Auth) Confirm

func (a *Auth) Confirm(page *template.Template) http.HandlerFunc

func (*Auth) Login

func (a *Auth) Login(page *template.Template) http.HandlerFunc

func (*Auth) Token

func (a *Auth) Token(w http.ResponseWriter, r *http.Request)

func (*Auth) ValidateToken

func (a *Auth) ValidateToken(next http.Handler) http.Handler

type PageData

type PageData struct {
	Error string
}

Jump to

Keyboard shortcuts

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