auth

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAuthenticator

NewAuthenticator returns a new authenticator.

func NewBasicAuthenticator

NewBasicAuthenticator returns a new basic authenticator.

func NoopBasicAuthenticator

func NoopBasicAuthenticator(ctx context.Context, input *openapi3filter.AuthenticationInput) error

NoopBasicAuthenticator is a no-op basic authenticator.

Types

type OpenAPIAuthenticatorOpt

type OpenAPIAuthenticatorOpt func(*OpenAPIAuthenticatorOpts)

OpenAPIAuthenticatorOpt is a function that sets an option on the OpenAPI authenticator.

func WithBasicAuthenticator

func WithBasicAuthenticator(auth openapi3filter.AuthenticationFunc) OpenAPIAuthenticatorOpt

WithBasicAuthenticator sets the basic authenticator.

type OpenAPIAuthenticatorOpts

type OpenAPIAuthenticatorOpts struct {
	BasicAuthenticator openapi3filter.AuthenticationFunc
}

OpenAPIAuthenticatorOpts are the OpenAPI authenticator options.

func OpenAPIAuthenticatorDefaultOpts

func OpenAPIAuthenticatorDefaultOpts() OpenAPIAuthenticatorOpts

func (*OpenAPIAuthenticatorOpts) Conigure

Conigure the OpenAPI authenticator.

Jump to

Keyboard shortcuts

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