Documentation ¶
Index ¶
- Variables
- type AuthorizeEndpointConfigurer
- type AuthorizeEndpointMiddleware
- type AuthorizeFeature
- func (f *AuthorizeFeature) ApprovalPath(approvalPath string) *AuthorizeFeature
- func (f *AuthorizeFeature) ApprovalStore(store auth.ApprovalStore) *AuthorizeFeature
- func (f *AuthorizeFeature) AuthorizeHanlder(authHanlder auth.AuthorizeHandler) *AuthorizeFeature
- func (f *AuthorizeFeature) Condition(condition web.RequestMatcher) *AuthorizeFeature
- func (f *AuthorizeFeature) ErrorHandler(errorHandler *auth.OAuth2ErrorHandler) *AuthorizeFeature
- func (f *AuthorizeFeature) Identifier() security.FeatureIdentifier
- func (f *AuthorizeFeature) Path(path string) *AuthorizeFeature
- func (f *AuthorizeFeature) RequestProcessor(processor auth.AuthorizeRequestProcessor) *AuthorizeFeature
- func (f *AuthorizeFeature) RequestProcessors(processors ...auth.ChainedAuthorizeRequestProcessor) *AuthorizeFeature
- type AuthorizeMWOption
- type AuthorizeMWOptions
Constants ¶
This section is empty.
Variables ¶
View Source
var (
FeatureId = security.FeatureId("OAuth2AuthorizeEndpoint", security.FeatureOrderOAuth2AuthorizeEndpoint)
)
View Source
var Module = &bootstrap.Module{ Name: "oauth2 auth - authorize", Precedence: security.MinSecurityPrecedence + 20, Options: []fx.Option{ fx.Invoke(register), }, }
Functions ¶
This section is empty.
Types ¶
type AuthorizeEndpointConfigurer ¶
type AuthorizeEndpointConfigurer struct { }
func (*AuthorizeEndpointConfigurer) Apply ¶
func (c *AuthorizeEndpointConfigurer) Apply(feature security.Feature, ws security.WebSecurity) (err error)
type AuthorizeEndpointMiddleware ¶
type AuthorizeEndpointMiddleware struct {
// contains filtered or unexported fields
}
func NewAuthorizeEndpointMiddleware ¶
func NewAuthorizeEndpointMiddleware(opts ...AuthorizeMWOptions) *AuthorizeEndpointMiddleware
func (*AuthorizeEndpointMiddleware) ApproveOrDenyHandlerFunc ¶
func (mw *AuthorizeEndpointMiddleware) ApproveOrDenyHandlerFunc() gin.HandlerFunc
func (*AuthorizeEndpointMiddleware) AuthorizeHandlerFunc ¶
func (mw *AuthorizeEndpointMiddleware) AuthorizeHandlerFunc(condition web.RequestMatcher) gin.HandlerFunc
func (*AuthorizeEndpointMiddleware) PreAuthenticateHandlerFunc ¶
func (mw *AuthorizeEndpointMiddleware) PreAuthenticateHandlerFunc(condition web.RequestMatcher) gin.HandlerFunc
type AuthorizeFeature ¶
type AuthorizeFeature struct {
// contains filtered or unexported fields
}
AuthorizeFeature configures authorization endpoints
func Configure ¶
func Configure(ws security.WebSecurity) *AuthorizeFeature
Configure is standard security.Feature entrypoint
func NewEndpoint ¶
func NewEndpoint() *AuthorizeFeature
NewEndpoint is standard security.Feature entrypoint, DSL style. Used with security.WebSecurity
func (*AuthorizeFeature) ApprovalPath ¶
func (f *AuthorizeFeature) ApprovalPath(approvalPath string) *AuthorizeFeature
func (*AuthorizeFeature) ApprovalStore ¶ added in v0.15.0
func (f *AuthorizeFeature) ApprovalStore(store auth.ApprovalStore) *AuthorizeFeature
func (*AuthorizeFeature) AuthorizeHanlder ¶
func (f *AuthorizeFeature) AuthorizeHanlder(authHanlder auth.AuthorizeHandler) *AuthorizeFeature
func (*AuthorizeFeature) Condition ¶
func (f *AuthorizeFeature) Condition(condition web.RequestMatcher) *AuthorizeFeature
func (*AuthorizeFeature) ErrorHandler ¶
func (f *AuthorizeFeature) ErrorHandler(errorHandler *auth.OAuth2ErrorHandler) *AuthorizeFeature
func (*AuthorizeFeature) Identifier ¶
func (f *AuthorizeFeature) Identifier() security.FeatureIdentifier
func (*AuthorizeFeature) Path ¶
func (f *AuthorizeFeature) Path(path string) *AuthorizeFeature
func (*AuthorizeFeature) RequestProcessor ¶
func (f *AuthorizeFeature) RequestProcessor(processor auth.AuthorizeRequestProcessor) *AuthorizeFeature
func (*AuthorizeFeature) RequestProcessors ¶
func (f *AuthorizeFeature) RequestProcessors(processors ...auth.ChainedAuthorizeRequestProcessor) *AuthorizeFeature
type AuthorizeMWOption ¶
type AuthorizeMWOption struct { RequestProcessor auth.AuthorizeRequestProcessor AuthorizeHandler auth.AuthorizeHandler ApprovalMatcher web.RequestMatcher ApprovalStore auth.ApprovalStore }
type AuthorizeMWOptions ¶
type AuthorizeMWOptions func(*AuthorizeMWOption)
Click to show internal directories.
Click to hide internal directories.