Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrTokenClaimsFailed = errors.New("failed to parse token claims")
View Source
var ErrTokenScopesMismatch = errors.New("one or more required scopes not found")
View Source
var ErrTokenVerificationFailed = errors.New("failed to verify token")
Functions ¶
This section is empty.
Types ¶
type OAuthValidator ¶
type OAuthValidator struct { IssuerUrl string RequiredScopes []string // contains filtered or unexported fields }
func NewOAuthValidator ¶
func (*OAuthValidator) Health ¶
func (v *OAuthValidator) Health(_ context.Context) (rsp models.ServiceHealthResp)
func (*OAuthValidator) ValidateJWT ¶
type PassthroughValidator ¶
type PassthroughValidator struct{}
func (PassthroughValidator) Health ¶
func (v PassthroughValidator) Health(_ context.Context) (rsp models.ServiceHealthResp)
func (PassthroughValidator) ValidateJWT ¶
Click to show internal directories.
Click to hide internal directories.