Documentation ¶
Index ¶
- Constants
- type AuthContext
- type AuthContextAuthentication
- type AuthContextAuthorization
- type AuthContextExtra
- type AuthContextGlobalCache
- type AuthContextMatch
- type AuthContextMutator
- type AuthContextRule
- type AuthOriginalRequest
- type Condition
- type ConditionContext
- type ConditionContextDebug
- type Mutator
- type MutatorContext
- type MutatorContextDebug
Constants ¶
View Source
const ( AuthActionRedirect = "redirect" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthContext ¶
type AuthContext interface { GetContext() context.Context GetRootConfig() *config.RootConfig GetOriginalRequest() *AuthOriginalRequest GetGlobalCache() *AuthContextGlobalCache GetExtra() *AuthContextExtra GetAuthContextRule() AuthContextRule GetAuthContextMatch() AuthContextMatch GetAuthContextAuthentication() AuthContextAuthentication GetAuthContextAuthorization() AuthContextAuthorization GetAuthContextMutator() AuthContextMutator }
type AuthContextAuthentication ¶
type AuthContextAuthentication interface { GetConfig() *config.OidcProfileConfig CheckAuthentication(rw http.ResponseWriter, r *http.Request, ctx AuthContext) (bool, error) Authenticate(rw http.ResponseWriter, r *http.Request, ctx AuthContext) error }
type AuthContextAuthorization ¶
type AuthContextAuthorization interface {
GetConfig() *config.AuthorizationProfileConfig
}
type AuthContextExtra ¶
type AuthContextGlobalCache ¶
type AuthContextGlobalCache struct {
AuthCallback *cache2go.CacheTable
}
type AuthContextMatch ¶
type AuthContextMatch interface {
GetConfig() *config.MatchProfileConfig
}
type AuthContextMutator ¶
type AuthContextMutator interface {
GetConfig() *config.MutatorProfileConfig
}
type AuthContextRule ¶
type AuthOriginalRequest ¶
type Condition ¶
type Condition interface {
Evaluate(ctx ConditionContext) (bool, error)
}
type ConditionContext ¶
type ConditionContext interface { GetAuthContext() AuthContext GetDebug() ConditionContextDebug }
type ConditionContextDebug ¶
type ConditionContextDebug interface { }
type Mutator ¶
type Mutator interface {
Mutate(rw http.ResponseWriter, ctx MutatorContext) error
}
type MutatorContext ¶
type MutatorContext interface { GetAuthContext() AuthContext GetDebug() MutatorContextDebug }
type MutatorContextDebug ¶
type MutatorContextDebug interface { }
Click to show internal directories.
Click to hide internal directories.