authorize

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

Documentation

Index

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

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) 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 (*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
}

type AuthorizeMWOptions

type AuthorizeMWOptions func(*AuthorizeMWOption)

Jump to

Keyboard shortcuts

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