Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( JWKSUriExtensionName = "x-authenticator-jwks-uri" IssuerExtensionName = "x-authenticator-issuer" AudienceExtensionName = "x-authenticator-audience" )
Functions ¶
This section is empty.
Types ¶
type Authenticator ¶
type Authenticator interface {
CreateAuthenticator(s *openapi3.SecurityRequirement) (*rule.Handler, error)
}
func NewAuthenticatorFromSecurityScheme ¶ added in v0.7.0
func NewAuthenticatorFromSecurityScheme(s *openapi3.SecuritySchemeRef, cfg *config.AuthenticatorRuleConfig) (Authenticator, error)
type AuthenticatorDefault ¶ added in v0.7.0
type AuthenticatorDefault struct {
// contains filtered or unexported fields
}
func NewAuthenticatorDefault ¶ added in v0.7.0
func NewAuthenticatorDefault(s *openapi3.SecuritySchemeRef, cfg *config.AuthenticatorRuleConfig) (*AuthenticatorDefault, error)
func (*AuthenticatorDefault) CreateAuthenticator ¶ added in v0.7.0
func (a *AuthenticatorDefault) CreateAuthenticator(s *openapi3.SecurityRequirement) (*rule.Handler, error)
type AuthenticatorNoop ¶
type AuthenticatorNoop struct{}
func NewAuthenticatorNoop ¶
func NewAuthenticatorNoop() (*AuthenticatorNoop, error)
func (*AuthenticatorNoop) CreateAuthenticator ¶
func (*AuthenticatorNoop) CreateAuthenticator(s *openapi3.SecurityRequirement) (*rule.Handler, error)
type AuthenticatorType ¶
type AuthenticatorType string
const ( AuthenticatorTypeNoop AuthenticatorType = "noop" AuthenticatorTypeOpenIdConnect AuthenticatorType = "openidconnect" AuthenticatorTypeOAuth2 AuthenticatorType = "oauth2" AuthenticatorTypeHttp AuthenticatorType = "http" )
type OpenIdConfiguration ¶
Click to show internal directories.
Click to hide internal directories.