Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
FeatureId = security.FeatureId("OAuth2AuthToken", security.FeatureOrderOAuth2TokenEndpoint)
)
View Source
var Module = &bootstrap.Module{ Name: "oauth2 auth - token", Precedence: security.MinSecurityPrecedence + 20, Options: []fx.Option{ fx.Invoke(register), }, }
Functions ¶
This section is empty.
Types ¶
type TokenEndpointConfigurer ¶
type TokenEndpointConfigurer struct { }
func (*TokenEndpointConfigurer) Apply ¶
func (c *TokenEndpointConfigurer) Apply(feature security.Feature, ws security.WebSecurity) (err error)
type TokenEndpointMiddleware ¶
type TokenEndpointMiddleware struct {
// contains filtered or unexported fields
}
func NewTokenEndpointMiddleware ¶
func NewTokenEndpointMiddleware(optionFuncs ...TokenEndpointOptionsFunc) *TokenEndpointMiddleware
func (*TokenEndpointMiddleware) TokenHandlerFunc ¶
func (mw *TokenEndpointMiddleware) TokenHandlerFunc() gin.HandlerFunc
type TokenEndpointOptions ¶
type TokenEndpointOptions struct {
Granter *auth.CompositeTokenGranter
}
type TokenEndpointOptionsFunc ¶
type TokenEndpointOptionsFunc func(*TokenEndpointOptions)
type TokenFeature ¶
type TokenFeature struct {
// contains filtered or unexported fields
}
We currently don't have any stuff to configure
func Configure ¶
func Configure(ws security.WebSecurity) *TokenFeature
func NewEndpoint ¶
func NewEndpoint() *TokenFeature
Standard security.Feature entrypoint, DSL style. Used with security.WebSecurity
func (*TokenFeature) AddGranter ¶
func (f *TokenFeature) AddGranter(granter auth.TokenGranter) *TokenFeature
func (*TokenFeature) Identifier ¶
func (f *TokenFeature) Identifier() security.FeatureIdentifier
Standard security.Feature entrypoint
Click to show internal directories.
Click to hide internal directories.