auth0

package
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 28, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth0ScopeValidator

type Auth0ScopeValidator struct {
	// contains filtered or unexported fields
}

func (*Auth0ScopeValidator) Handler

func (a *Auth0ScopeValidator) Handler() mux.MiddlewareFunc

type Auth0TokenValidator

type Auth0TokenValidator struct {
	// contains filtered or unexported fields
}

func (*Auth0TokenValidator) Handler

func (a *Auth0TokenValidator) Handler() mux.MiddlewareFunc

type Auth0ValidatorFactory

type Auth0ValidatorFactory struct{}

func (*Auth0ValidatorFactory) NewAuth0ScopeValidator

func (*Auth0ValidatorFactory) NewAuth0TokenValidator

func (a *Auth0ValidatorFactory) NewAuth0TokenValidator(config auth0_config.Config) (IAuth0TokenValidator, error)

type CustomAuth0Claims

type CustomAuth0Claims struct {
	Scope string `json:"scope"`
}

func (CustomAuth0Claims) HasAllScopes

func (c CustomAuth0Claims) HasAllScopes(expectedScopes []string) bool

func (CustomAuth0Claims) Validate

func (c CustomAuth0Claims) Validate(ctx context.Context) error

type IAuth0ScopeValidator

type IAuth0ScopeValidator interface {
	Handler() mux.MiddlewareFunc
}

type IAuth0TokenValidator

type IAuth0TokenValidator interface {
	Handler() mux.MiddlewareFunc
}

type IAuth0ValidatorFactory

type IAuth0ValidatorFactory interface {
	NewAuth0ScopeValidator(config subrouter_config.AuthorizationConfig) IAuth0ScopeValidator
	NewAuth0TokenValidator(config auth0_config.Config) (IAuth0TokenValidator, error)
}

func NewAuth0ValidatorFactory

func NewAuth0ValidatorFactory() IAuth0ValidatorFactory

type ICustomAuth0Claims

type ICustomAuth0Claims interface {
	Validate(context.Context) error
	HasAllScopes([]string) bool
}

Jump to

Keyboard shortcuts

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