Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddCustomClaims2Ctx ¶ added in v0.1.0
func AddCustomClaims2Ctx(ctx context.Context, env *env.Env, clms *CustomClaims) (context.Context, error)
AddCustomClaims2Ctx adds the calling serverToken to the context
Types ¶
type BearerToken ¶
type BearerToken struct {
Token string `json:"token"`
}
BearerToken is the tokenized representation of a user
func NewBearerToken ¶
NewBearerToken takes an External user ID and provides a token
type CustomClaims ¶
type CustomClaims struct {
jwt.StandardClaims
}
CustomClaims struct has the jwt claims that will be added to the UserToken
func ClaimsFromBearerToken ¶
func ClaimsFromBearerToken(log zerolog.Logger, userToken string) (*CustomClaims, error)
ClaimsFromBearerToken validates a Bearer Token and passes back the claims held within
Click to show internal directories.
Click to hide internal directories.