Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Init ¶
func Init(h Handler) httprouter.Handle
func Refresh ¶
func Refresh(h Handler) httprouter.Handle
func Verify ¶
func Verify(h Handler) httprouter.Handle
Types ¶
type Handler ¶
type Handler interface {
ID() string
Issuer() *jwt.Issuer
Refresher() *jwt.Issuer
Identifier(tokenMeta) string
Role(tokenMeta) string
Bucket() storage.JSONBucket
TokenMeta(context.Context, *http.Request) (*tokenMeta, error)
Dispatch(context.Context, *tokenMeta) error
}
Click to show internal directories.
Click to hide internal directories.