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 ¶
func (bac *BasicAuthConfigurer) Apply(f security.Feature, ws security.WebSecurity) error
type BasicAuthEntryPoint ¶
type BasicAuthEntryPoint struct {
security.DefaultAuthenticationErrorHandler
}
func NewBasicAuthEntryPoint ¶
func NewBasicAuthEntryPoint() *BasicAuthEntryPoint
func (*BasicAuthEntryPoint) Commence ¶
func (h *BasicAuthEntryPoint) Commence(c context.Context, r *http.Request, rw http.ResponseWriter, err error)
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 (f *BasicAuthFeature) EntryPoint(entrypoint security.AuthenticationEntryPoint) *BasicAuthFeature
func (*BasicAuthFeature) Identifier ¶
func (f *BasicAuthFeature) Identifier() security.FeatureIdentifier
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
Click to show internal directories.
Click to hide internal directories.