authenticator

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2023 License: MIT Imports: 7 Imported by: 0

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 AuthenticatorHttpBearer

type AuthenticatorHttpBearer struct {
	// contains filtered or unexported fields
}

func NewAuthenticatorHttpBearer

func NewAuthenticatorHttpBearer(s *openapi3.SecuritySchemeRef, jwksUri string, issuer string, audience string) (*AuthenticatorHttpBearer, error)

func (*AuthenticatorHttpBearer) CreateAuthenticator

func (a *AuthenticatorHttpBearer) 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 AuthenticatorOAuth2

type AuthenticatorOAuth2 struct {
	// contains filtered or unexported fields
}

func NewAuthenticatorOAuth2

func NewAuthenticatorOAuth2(s *openapi3.SecuritySchemeRef, jwksUri string, issuer string, audience *string) (*AuthenticatorOAuth2, error)

func (*AuthenticatorOAuth2) CreateAuthenticator

func (a *AuthenticatorOAuth2) CreateAuthenticator(s *openapi3.SecurityRequirement) (*rule.Handler, error)

type AuthenticatorOpenIdConnect

type AuthenticatorOpenIdConnect struct {
	// contains filtered or unexported fields
}

func NewAuthenticatorOpenIdConnect

func NewAuthenticatorOpenIdConnect(s *openapi3.SecuritySchemeRef, audience *string) (*AuthenticatorOpenIdConnect, error)

func (*AuthenticatorOpenIdConnect) CreateAuthenticator

type AuthenticatorType

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

type JWTAuthenticatorConfig

type JWTAuthenticatorConfig struct {
	JwksUrls       []string `json:"jwks_urls"`
	TrustedIssuers []string `json:"trusted_issuers"`
	RequiredScope  []string `json:"required_scope"`
	TargetAudience []string `json:"target_audience"`
}

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