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 (a *Auth0ValidatorFactory) NewAuth0ScopeValidator(config subrouter_config.AuthorizationConfig) IAuth0ScopeValidator
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
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
Click to show internal directories.
Click to hide internal directories.