Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultAccessTokenExtractor = CompositeExtractor( HeaderExtractor("Authorization: Bearer"), PostFormExtractor("access_token"), QueryExtractor("access_token"))
View Source
var DefaultIdTokenExtractor = HeaderExtractor("X-Id-Token")
Functions ¶
func DenyAll ¶
func DenyAll() gin.HandlerFunc
func OAuth2Aware ¶
func OAuth2Aware(config ...Configuration) gin.HandlerFunc
func ScopesAllowed ¶
func ScopesAllowed(allowedScopes ...string) gin.HandlerFunc
Types ¶
type Configuration ¶
type Configuration struct { VerifyToken bool DiscoveryUrl string JwksUrl string AccessTokenExtractor TokenExtractor IdTokenExtractor TokenExtractor }
type CookieExtractor ¶
type CookieExtractor string
type HeaderExtractor ¶
type HeaderExtractor string
type PostFormExtractor ¶
type PostFormExtractor string
type QueryExtractor ¶
type QueryExtractor string
type TokenExtractor ¶
func CompositeExtractor ¶
func CompositeExtractor(extractor ...TokenExtractor) TokenExtractor
Click to show internal directories.
Click to hide internal directories.