token

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

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

func (*TokenFeature) Path

func (f *TokenFeature) Path(path string) *TokenFeature

* Setters *

Jump to

Keyboard shortcuts

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