clientauth

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: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	FeatureId = security.FeatureId("OAuth2ClientAuth", security.FeatureOrderOAuth2ClientAuth)
)
View Source
var Module = &bootstrap.Module{
	Name:       "oauth2 auth - client auth",
	Precedence: security.MinSecurityPrecedence + 20,
	Options: []fx.Option{
		fx.Invoke(register),
	},
}

Functions

This section is empty.

Types

type ClientAuthConfigurer

type ClientAuthConfigurer struct {
}

func (*ClientAuthConfigurer) Apply

func (c *ClientAuthConfigurer) Apply(feature security.Feature, ws security.WebSecurity) (err error)

type ClientAuthFeature

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

We currently don't have any stuff to configure

func New

func New() *ClientAuthFeature

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

func (*ClientAuthFeature) AllowForm

func (f *ClientAuthFeature) AllowForm(allowForm bool) *ClientAuthFeature

AllowForm with "true" also implicitly enables Public Client (client that with empty secret)

func (*ClientAuthFeature) ClientSecretEncoder

func (f *ClientAuthFeature) ClientSecretEncoder(clientSecretEncoder passwd.PasswordEncoder) *ClientAuthFeature

func (*ClientAuthFeature) ClientStore

func (f *ClientAuthFeature) ClientStore(clientStore oauth2.OAuth2ClientStore) *ClientAuthFeature

* Setters *

func (*ClientAuthFeature) ErrorHandler

func (f *ClientAuthFeature) ErrorHandler(errorHandler *auth.OAuth2ErrorHandler) *ClientAuthFeature

func (*ClientAuthFeature) Identifier

Standard security.Feature entrypoint

type MWOption

type MWOption struct {
	Authenticator  security.Authenticator
	SuccessHandler security.AuthenticationSuccessHandler
}

type MWOptions

type MWOptions func(*MWOption)

type Middleware

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

func NewClientAuthMiddleware

func NewClientAuthMiddleware(opts ...MWOptions) *Middleware

func (*Middleware) ClientAuthFormHandlerFunc

func (mw *Middleware) ClientAuthFormHandlerFunc() http.HandlerFunc

func (*Middleware) ErrorTranslationHandlerFunc

func (mw *Middleware) ErrorTranslationHandlerFunc() gin.HandlerFunc

Jump to

Keyboard shortcuts

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