authenticator

package
v0.7.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 10, 2024 License: MIT Imports: 10 Imported by: 0

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) (*oathkeeper.RuleHandler, 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 (*AuthenticatorDefault) CreateAuthenticator added in v0.7.0

type AuthenticatorNoop

type AuthenticatorNoop struct{}

func NewAuthenticatorNoop

func NewAuthenticatorNoop() (*AuthenticatorNoop, error)

func (*AuthenticatorNoop) CreateAuthenticator

type AuthenticatorType

type AuthenticatorType string
const (
	AuthenticatorTypeNoop          AuthenticatorType = "noop"
	AuthenticatorTypeOpenIdConnect AuthenticatorType = "openidconnect"
	AuthenticatorTypeOAuth2        AuthenticatorType = "oauth2"
	AuthenticatorTypeHttp          AuthenticatorType = "http"
)

type OpenIdConfiguration

type OpenIdConfiguration struct {
	JwksUri string `json:"jwks_uri"`
	Issuer  string `json:"issuer"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL