Documentation ¶
Index ¶
- func Admins(r *http.Request) *config.Admin
- func AuthVerifier(r *http.Request) *challenger.AuthVerifier
- func Authorize(w http.ResponseWriter, r *http.Request)
- func AuthorizeAdmin(w http.ResponseWriter, r *http.Request)
- func Claim(r *http.Request) *jwt.AuthClaim
- func Cookies(r *http.Request) *cookies.Cookies
- func CtxAdmins(admins *config.Admin) func(context.Context) context.Context
- func CtxAuthVerifier(verifier *challenger.AuthVerifier) func(context.Context) context.Context
- func CtxClaim(claim *jwt.AuthClaim) func(context.Context) context.Context
- func CtxCookies(cookies *cookies.Cookies) func(context.Context) context.Context
- func CtxJWT(issuer *jwt.JWTIssuer) func(context.Context) context.Context
- func CtxLog(entry *logan.Entry) func(context.Context) context.Context
- func JWT(r *http.Request) *jwt.JWTIssuer
- func Log(r *http.Request) *logan.Entry
- func Refresh(w http.ResponseWriter, r *http.Request)
- func RequestChallenge(w http.ResponseWriter, r *http.Request)
- func Validate(w http.ResponseWriter, r *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthVerifier ¶
func AuthVerifier(r *http.Request) *challenger.AuthVerifier
func AuthorizeAdmin ¶
func AuthorizeAdmin(w http.ResponseWriter, r *http.Request)
func CtxAuthVerifier ¶
func CtxAuthVerifier(verifier *challenger.AuthVerifier) func(context.Context) context.Context
func RequestChallenge ¶
func RequestChallenge(w http.ResponseWriter, r *http.Request)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.