Documentation
¶
Index ¶
- func CreateAuthorizationMiddleware(audience string, authorizationServer string) *jwtmiddleware.JWTMiddleware
- func CreateScopeMiddleware(scope string, authorizationServer string, audience string) func(w http.ResponseWriter, r *http.Request, next http.HandlerFunc)
- func DefaultExtractUserID(r *http.Request) string
- type JSONWebKeys
- type Jwks
- type Response
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateAuthorizationMiddleware ¶
func CreateAuthorizationMiddleware(audience string, authorizationServer string) *jwtmiddleware.JWTMiddleware
CreateAuthorizationMiddleware creates authorization middleware with the given parameters
func CreateScopeMiddleware ¶
func CreateScopeMiddleware(scope string, authorizationServer string, audience string) func(w http.ResponseWriter, r *http.Request, next http.HandlerFunc)
CreateScopeMiddleware creates a middleware the check the given scope
func DefaultExtractUserID ¶ added in v1.1.0
Types ¶
type JSONWebKeys ¶
type Jwks ¶
type Jwks struct {
Keys []JSONWebKeys `json:"keys"`
}
Click to show internal directories.
Click to hide internal directories.