Documentation ¶
Index ¶
Constants ¶
View Source
const UserProperty = "user"
UserProperty is a name of the property in the request where the user information stored
Variables ¶
This section is empty.
Functions ¶
func GetAuthorizedUserID ¶
GetAuthorizedUserID returns a user ID which generated from the auth server
func NewJWTMiddleware ¶
func NewJWTMiddleware(audience, issuer, jwksURI string, transport http.RoundTripper) *jwtmiddleware.JWTMiddleware
NewJWTMiddleware returns a new jwtmiddleware.JWTMiddleware instance. This middleware uses to looking for the "access_token" in the request header and call to the auth server for validating it.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.