Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var JWTPublicKey *ecdsa.PublicKey
JWTPublicKey has the public key of the allowed JWT issuer
Functions ¶
This section is empty.
Types ¶
type OAuth2Middleware ¶
type OAuth2Middleware struct {
Scopes []string
}
OAuth2Middleware defines the common oauth2 functionality
func (*OAuth2Middleware) GetAccessToken ¶
func (om *OAuth2Middleware) GetAccessToken(r *http.Request) string
GetAccessToken returns the access token from the authorization header or from the query parameters. If the authorization header starts with "bearer", "" is returned
Click to show internal directories.
Click to hide internal directories.