generator

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2023 License: MIT Imports: 10 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 AuthenticatorNoop

type AuthenticatorNoop struct{}

func (*AuthenticatorNoop) CreateAuthenticator

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

type AuthenticatorOpenIdConnect

type AuthenticatorOpenIdConnect struct {
	C *OpenIdConfiguration
}

func (*AuthenticatorOpenIdConnect) CreateAuthenticator

type AuthenticatorType

type AuthenticatorType string
const (
	AuthenticatorTypeNoop          AuthenticatorType = "noop"
	AuthenticatorTypeOpenIdConnect AuthenticatorType = "openIdConnect"
)

type Generator

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

func NewGenerator

func NewGenerator() *Generator

func (*Generator) Generate

func (g *Generator) Generate() ([]rule.Rule, error)

func (*Generator) LoadOpenAPI3Doc

func (g *Generator) LoadOpenAPI3Doc(ctx context.Context, d *openapi3.T) error

type JWTAuthenticatorConfig

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

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