Documentation ¶
Index ¶
- func HasAuthToken(ctx context.Context) (bool, error)
- func TokenClaims(token string) (map[string]interface{}, error)
- func TokenClaimsFromContext(ctx context.Context) (map[string]interface{}, error)
- func ValidateAuthClaims(ctx context.Context) (jwt.MapClaims, error)
- func ValidateAuthToken(ctx context.Context, token string) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HasAuthToken ¶
HasAuthToken checks if md in ctx has auth
func TokenClaims ¶
TokenClaims parses a JWT token and returns it's body claims
func TokenClaimsFromContext ¶
TokenClaimsFromContext fetches token claims via context
func ValidateAuthClaims ¶
ValidateAuthClaims validates a token in the Authorization header and returns claims map
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.