Documentation ¶
Index ¶
- func NewAuthenticator(opts ...OpenAPIAuthenticatorOpt) openapi3filter.AuthenticationFunc
- func NewBasicAuthenticator(store dbx.Database[ports.ReadTx, ports.ReadWriteTx]) openapi3filter.AuthenticationFunc
- func NoopBasicAuthenticator(ctx context.Context, input *openapi3filter.AuthenticationInput) error
- type OpenAPIAuthenticatorOpt
- type OpenAPIAuthenticatorOpts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAuthenticator ¶
func NewAuthenticator(opts ...OpenAPIAuthenticatorOpt) openapi3filter.AuthenticationFunc
NewAuthenticator returns a new authenticator.
func NewBasicAuthenticator ¶
func NewBasicAuthenticator(store dbx.Database[ports.ReadTx, ports.ReadWriteTx]) openapi3filter.AuthenticationFunc
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 ¶
func (o *OpenAPIAuthenticatorOpts) Conigure(opts ...OpenAPIAuthenticatorOpt)
Conigure the OpenAPI authenticator.
Click to show internal directories.
Click to hide internal directories.