Documentation ¶
Index ¶
- Variables
- func GetCtxRawToken(ctx context.Context) (string, error)
- func GetCtxTokenClaims(ctx context.Context) (*jwt.MapClaims, error)
- func GetCtxTokenClaimsJwtId(ctx context.Context) (string, error)
- func GetCtxTokenClaimsSubject(ctx context.Context) (string, error)
- func SetCtxRawToken(ctx context.Context, token string) context.Context
- func SetCtxTokenClaims(ctx context.Context, claims *jwt.MapClaims) context.Context
Constants ¶
This section is empty.
Variables ¶
View Source
var ( MissingTokenError = errors.New("missing token") UnexpectedTokenTypeError = errors.New("unexpected type") MissingTokenClaimsError = errors.New("missing token claims") MissingTokenClaimsSubjectError = errors.New("missing token claims subject") MissingTokenClaimsIdError = errors.New("missing token claims id") UnexpectedTokenClaimsTypeError = errors.New("unexpected token claims type") )
Functions ¶
func GetCtxRawToken ¶
GetCtxRawToken gets the raw token from the context
func GetCtxTokenClaims ¶
GetCtxTokenClaims gets the token claims from the context
func GetCtxTokenClaimsJwtId ¶
GetCtxTokenClaimsJwtId gets the token claims JWT ID from the context
func GetCtxTokenClaimsSubject ¶
GetCtxTokenClaimsSubject gets the token claims subject from the context
func SetCtxRawToken ¶
SetCtxRawToken sets the raw token to the context
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.