basicauth

package
v0.14.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	FeatureId = security.FeatureId("BasicAuth", security.FeatureOrderBasicAuth)
)
View Source
var Module = &bootstrap.Module{
	Name:       "basic auth",
	Precedence: security.MinSecurityPrecedence + 20,
	Options: []fx.Option{
		fx.Invoke(register),
	},
}

Functions

This section is empty.

Types

type BasicAuthConfigurer

type BasicAuthConfigurer struct {
}

func (*BasicAuthConfigurer) Apply

type BasicAuthEntryPoint

type BasicAuthEntryPoint struct {
	security.DefaultAuthenticationErrorHandler
}

func NewBasicAuthEntryPoint

func NewBasicAuthEntryPoint() *BasicAuthEntryPoint

func (*BasicAuthEntryPoint) Commence

type BasicAuthErrorHandler

type BasicAuthErrorHandler struct {
}

func NewBasicAuthErrorHandler

func NewBasicAuthErrorHandler() *BasicAuthErrorHandler

func (*BasicAuthErrorHandler) HandleAuthenticationError

func (h *BasicAuthErrorHandler) HandleAuthenticationError(c context.Context, r *http.Request, rw http.ResponseWriter, err error)

type BasicAuthFeature

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

We currently don't have any stuff to configure

func Configure

func Configure(ws security.WebSecurity) *BasicAuthFeature

func New

func New() *BasicAuthFeature

Standard security.Feature entrypoint, DSL style. Used with security.WebSecurity

func (*BasicAuthFeature) EntryPoint

func (*BasicAuthFeature) Identifier

Standard security.Feature entrypoint

type BasicAuthMiddleware

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

func NewBasicAuthMiddleware

func NewBasicAuthMiddleware(authenticator security.Authenticator, successHandler security.AuthenticationSuccessHandler) *BasicAuthMiddleware

func (*BasicAuthMiddleware) HandlerFunc

func (basic *BasicAuthMiddleware) HandlerFunc() gin.HandlerFunc

Jump to

Keyboard shortcuts

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