Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthHeadersHandler ¶
func AuthHeadersHandler(h http.Handler) http.HandlerFunc
AuthHeadersHandler If client is web create Authorization header out of cookies
func RequestRoutedCallback ¶
RequestRoutedCallback validate JWT from header
Types ¶
type CustomClaims ¶
type CustomClaims struct { UserID string `json:"userId"` Email string `json:"email"` Name string `json:"name"` }
CustomClaims are claims for the JWT @see https://trello.com/c/wrefQdsh/23-define-whats-in-jwt
type PlatformClaims ¶
type PlatformClaims struct { jwt.StandardClaims CustomClaims }
PlatformClaims JWT claims for the platform
Click to show internal directories.
Click to hide internal directories.