Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authenticator ¶
type Authenticator interface {
CreateAuthenticator(s *openapi3.SecurityRequirement) (*rule.Handler, error)
}
type AuthenticatorNoop ¶
type AuthenticatorNoop struct{}
func (*AuthenticatorNoop) CreateAuthenticator ¶
func (*AuthenticatorNoop) CreateAuthenticator(s *openapi3.SecurityRequirement) (*rule.Handler, error)
type AuthenticatorOAuth2 ¶ added in v0.3.0
func NewAuthenticatorOAuth2 ¶ added in v0.3.0
func NewAuthenticatorOAuth2(s *openapi3.SecuritySchemeRef, jwksUri string, issuer string) (*AuthenticatorOAuth2, error)
func (*AuthenticatorOAuth2) CreateAuthenticator ¶ added in v0.3.0
func (a *AuthenticatorOAuth2) CreateAuthenticator(s *openapi3.SecurityRequirement) (*rule.Handler, error)
type AuthenticatorOpenIdConnect ¶
type AuthenticatorOpenIdConnect struct {
C *OpenIdConfiguration
}
func NewAuthenticatorOpenIdConnect ¶
func NewAuthenticatorOpenIdConnect(s *openapi3.SecuritySchemeRef) (*AuthenticatorOpenIdConnect, error)
func (*AuthenticatorOpenIdConnect) CreateAuthenticator ¶
func (a *AuthenticatorOpenIdConnect) CreateAuthenticator(s *openapi3.SecurityRequirement) (*rule.Handler, error)
type AuthenticatorType ¶
type AuthenticatorType string
const ( AuthenticatorTypeNoop AuthenticatorType = "noop" AuthenticatorTypeOpenIdConnect AuthenticatorType = "openIdConnect" AuthenticatorTypeOAuth2 AuthenticatorType = "oauth2" )
type Generator ¶
type Generator struct {
PrefixId string
JwksUris *map[string]string
AllowedIssuers *map[string]string
// contains filtered or unexported fields
}
func NewGenerator ¶
type JWTAuthenticatorConfig ¶
type OpenIdConfiguration ¶
Click to show internal directories.
Click to hide internal directories.