Documentation
¶
Index ¶
- func AuthVerifier(r *http.Request) *zkp.AuthVerifier
- func Authorize(w http.ResponseWriter, r *http.Request)
- func AuthorizeAdmin(w http.ResponseWriter, r *http.Request)
- func AuthorizeV2(w http.ResponseWriter, r *http.Request)
- func Claim(r *http.Request) *jwt.AuthClaim
- func Cookies(r *http.Request) *cookies.Cookies
- func CtxAuthVerifier(verifier *zkp.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 CtxPassportVerifier(verifier *zk.Verifier) func(context.Context) context.Context
- func CtxPoints(points *config.Points) func(context.Context) context.Context
- func JWT(r *http.Request) *jwt.JWTIssuer
- func Log(r *http.Request) *logan.Entry
- func PassportVerifier(r *http.Request) *zk.Verifier
- func Points(r *http.Request) *config.Points
- func Refresh(w http.ResponseWriter, r *http.Request)
- func RequestChallenge(w http.ResponseWriter, r *http.Request)
- func Validate(w http.ResponseWriter, r *http.Request)
- type BalanceResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthVerifier ¶
func AuthVerifier(r *http.Request) *zkp.AuthVerifier
func AuthorizeAdmin ¶ added in v0.2.0
func AuthorizeAdmin(w http.ResponseWriter, r *http.Request)
func AuthorizeV2 ¶
func AuthorizeV2(w http.ResponseWriter, r *http.Request)
func CtxAuthVerifier ¶
func CtxPassportVerifier ¶
func RequestChallenge ¶
func RequestChallenge(w http.ResponseWriter, r *http.Request)
Types ¶
type BalanceResponse ¶
type BalanceResponse struct { Data struct { Attributes struct { IsVerified bool `json:"is_verified"` } `json:"attributes"` } `json:"data"` }
Click to show internal directories.
Click to hide internal directories.