handlers

package
v0.1.1-rc0 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Admins

func Admins(r *http.Request) *config.Admin

func AuthVerifier

func AuthVerifier(r *http.Request) *challenger.AuthVerifier

func Authorize

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

func AuthorizeAdmin

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

func Claim

func Claim(r *http.Request) *jwt.AuthClaim

func Cookies

func Cookies(r *http.Request) *cookies.Cookies

func CtxAdmins

func CtxAdmins(admins *config.Admin) func(context.Context) context.Context

func CtxAuthVerifier

func CtxAuthVerifier(verifier *challenger.AuthVerifier) func(context.Context) context.Context

func CtxClaim

func CtxClaim(claim *jwt.AuthClaim) func(context.Context) context.Context

func CtxCookies

func CtxCookies(cookies *cookies.Cookies) func(context.Context) context.Context

func CtxJWT

func CtxJWT(issuer *jwt.JWTIssuer) func(context.Context) context.Context

func CtxLog

func CtxLog(entry *logan.Entry) func(context.Context) context.Context

func JWT

func JWT(r *http.Request) *jwt.JWTIssuer

func Log

func Log(r *http.Request) *logan.Entry

func Refresh

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

func RequestChallenge

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

func Validate

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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