Documentation ¶
Index ¶
- Variables
- type ClientAuthConfigurer
- type ClientAuthFeature
- func (f *ClientAuthFeature) AllowForm(allowForm bool) *ClientAuthFeature
- func (f *ClientAuthFeature) ClientSecretEncoder(clientSecretEncoder passwd.PasswordEncoder) *ClientAuthFeature
- func (f *ClientAuthFeature) ClientStore(clientStore oauth2.OAuth2ClientStore) *ClientAuthFeature
- func (f *ClientAuthFeature) ErrorHandler(errorHandler *auth.OAuth2ErrorHandler) *ClientAuthFeature
- func (f *ClientAuthFeature) Identifier() security.FeatureIdentifier
- type MWOption
- type MWOptions
- type Middleware
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 Configure ¶
func Configure(ws security.WebSecurity) *ClientAuthFeature
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 ¶
func (f *ClientAuthFeature) Identifier() security.FeatureIdentifier
Standard security.Feature entrypoint
type MWOption ¶
type MWOption struct { Authenticator security.Authenticator SuccessHandler security.AuthenticationSuccessHandler }
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
Click to show internal directories.
Click to hide internal directories.