Documentation ¶
Index ¶
- Constants
- type AuthenticationProfile
- func (rule *AuthenticationProfile) Authenticate(rw http.ResponseWriter, r *http.Request, ctx interfaces.AuthContext) error
- func (rule *AuthenticationProfile) AuthenticateCallback(rw http.ResponseWriter, r *http.Request, ctx interfaces.AuthContext) error
- func (rule *AuthenticationProfile) CheckAuthentication(rw http.ResponseWriter, r *http.Request, ctx interfaces.AuthContext) (bool, error)
- func (rule *AuthenticationProfile) FromConfig(profileConfig *config.OidcProfileConfig, name string) []error
- func (rule *AuthenticationProfile) GetConfig() *config.OidcProfileConfig
- func (rule *AuthenticationProfile) IsValid() bool
- type AuthorizationProfile
- func (rule *AuthorizationProfile) Evaluate(ctx interfaces.ConditionContext) (bool, error)
- func (rule *AuthorizationProfile) FromConfig(profileConfig *config.AuthorizationProfileConfig, name string) []error
- func (rule *AuthorizationProfile) GetConfig() *config.AuthorizationProfileConfig
- func (rule *AuthorizationProfile) IsValid() bool
- type MatchProfile
- type MutatorProfile
- func (mut *MutatorProfile) FromConfig(profileConfig *config.MutatorProfileConfig, name string) []error
- func (mut *MutatorProfile) GetConfig() *config.MutatorProfileConfig
- func (mut *MutatorProfile) IsValid() bool
- func (mut *MutatorProfile) Mutate(rw http.ResponseWriter, ctx interfaces.MutatorContext) error
- type Profiles
- func (profs *Profiles) FromConfig(rootConfig *config.RootConfig) []error
- func (profiles *Profiles) GetAuthenticationProfile(ctx interfaces.AuthContext) (*AuthenticationProfile, error)
- func (profiles *Profiles) GetAuthorizationProfile(ctx interfaces.AuthContext) (*AuthorizationProfile, error)
- func (profiles *Profiles) GetMatchProfile(name string) (*MatchProfile, error)
- func (profiles *Profiles) GetMutatorProfile(ctx interfaces.AuthContext) (*MutatorProfile, error)
- func (profiles *Profiles) GetRule(ctx interfaces.ConditionContext) (*Rule, *MatchProfile, error)
- type Rule
- func (rule *Rule) FromConfig(ruleConfig *config.RuleConfig, index int) []error
- func (rule *Rule) GetAuthenticationProfileName() *template.Template
- func (rule *Rule) GetAuthorizationProfileName() *template.Template
- func (rule *Rule) GetConfig() *config.RuleConfig
- func (rule *Rule) GetMatchProfileName() *template.Template
- func (rule *Rule) GetMutatorProfileName() *template.Template
- func (rule *Rule) IsValid() bool
Constants ¶
View Source
const ( COOKIE_ID_TOKEN = "oidcfy.idToken" COOKIE_ACCESS_TOKEN = "oidcfy.accessToken" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthenticationProfile ¶
type AuthenticationProfile struct { Config *config.OidcProfileConfig UsedBy []Rule DiscoveryUrl *template.Template ClientId *template.Template ClientSecret *template.Template Scopes *template.Template LoginTimeout *template.Template CookieDomain *template.Template CookiePath *template.Template CookieSecure *template.Template // contains filtered or unexported fields }
func (*AuthenticationProfile) Authenticate ¶
func (rule *AuthenticationProfile) Authenticate(rw http.ResponseWriter, r *http.Request, ctx interfaces.AuthContext) error
func (*AuthenticationProfile) AuthenticateCallback ¶
func (rule *AuthenticationProfile) AuthenticateCallback(rw http.ResponseWriter, r *http.Request, ctx interfaces.AuthContext) error
func (*AuthenticationProfile) CheckAuthentication ¶
func (rule *AuthenticationProfile) CheckAuthentication(rw http.ResponseWriter, r *http.Request, ctx interfaces.AuthContext) (bool, error)
func (*AuthenticationProfile) FromConfig ¶
func (rule *AuthenticationProfile) FromConfig(profileConfig *config.OidcProfileConfig, name string) []error
func (*AuthenticationProfile) GetConfig ¶
func (rule *AuthenticationProfile) GetConfig() *config.OidcProfileConfig
func (*AuthenticationProfile) IsValid ¶
func (rule *AuthenticationProfile) IsValid() bool
type AuthorizationProfile ¶
type AuthorizationProfile struct { Config *config.AuthorizationProfileConfig UsedBy []Rule Condition interfaces.Condition }
func (*AuthorizationProfile) Evaluate ¶
func (rule *AuthorizationProfile) Evaluate(ctx interfaces.ConditionContext) (bool, error)
func (*AuthorizationProfile) FromConfig ¶
func (rule *AuthorizationProfile) FromConfig(profileConfig *config.AuthorizationProfileConfig, name string) []error
func (*AuthorizationProfile) GetConfig ¶
func (rule *AuthorizationProfile) GetConfig() *config.AuthorizationProfileConfig
func (*AuthorizationProfile) IsValid ¶
func (rule *AuthorizationProfile) IsValid() bool
type MatchProfile ¶
type MatchProfile struct { Config *config.MatchProfileConfig UsedBy []Rule Condition interfaces.Condition }
func (*MatchProfile) Evaluate ¶
func (rule *MatchProfile) Evaluate(ctx interfaces.ConditionContext) (bool, error)
func (*MatchProfile) FromConfig ¶
func (rule *MatchProfile) FromConfig(profileConfig *config.MatchProfileConfig, name string) []error
func (*MatchProfile) GetConfig ¶
func (rule *MatchProfile) GetConfig() *config.MatchProfileConfig
func (*MatchProfile) IsValid ¶
func (rule *MatchProfile) IsValid() bool
type MutatorProfile ¶
type MutatorProfile struct { Config *config.MutatorProfileConfig UsedBy []Rule Mutators []interfaces.Mutator }
func (*MutatorProfile) FromConfig ¶
func (mut *MutatorProfile) FromConfig(profileConfig *config.MutatorProfileConfig, name string) []error
func (*MutatorProfile) GetConfig ¶
func (mut *MutatorProfile) GetConfig() *config.MutatorProfileConfig
func (*MutatorProfile) IsValid ¶
func (mut *MutatorProfile) IsValid() bool
func (*MutatorProfile) Mutate ¶
func (mut *MutatorProfile) Mutate(rw http.ResponseWriter, ctx interfaces.MutatorContext) error
type Profiles ¶
type Profiles struct { MatchProfiles map[string]*MatchProfile AuthenticationProfiles map[string]*AuthenticationProfile AuthorizationProfiles map[string]*AuthorizationProfile MutatorProfiles map[string]*MutatorProfile Rules []*Rule }
func (*Profiles) FromConfig ¶
func (profs *Profiles) FromConfig(rootConfig *config.RootConfig) []error
func (*Profiles) GetAuthenticationProfile ¶
func (profiles *Profiles) GetAuthenticationProfile(ctx interfaces.AuthContext) (*AuthenticationProfile, error)
func (*Profiles) GetAuthorizationProfile ¶
func (profiles *Profiles) GetAuthorizationProfile(ctx interfaces.AuthContext) (*AuthorizationProfile, error)
func (*Profiles) GetMatchProfile ¶
func (profiles *Profiles) GetMatchProfile(name string) (*MatchProfile, error)
func (*Profiles) GetMutatorProfile ¶
func (profiles *Profiles) GetMutatorProfile(ctx interfaces.AuthContext) (*MutatorProfile, error)
func (*Profiles) GetRule ¶
func (profiles *Profiles) GetRule(ctx interfaces.ConditionContext) (*Rule, *MatchProfile, error)
type Rule ¶
type Rule struct { Config *config.RuleConfig MatchProfileName *template.Template AuthenticationProfileName *template.Template AuthorizationProfileName *template.Template MutatorProfileName *template.Template }
func (*Rule) FromConfig ¶
func (rule *Rule) FromConfig(ruleConfig *config.RuleConfig, index int) []error
func (*Rule) GetAuthenticationProfileName ¶
func (*Rule) GetAuthorizationProfileName ¶
func (*Rule) GetConfig ¶
func (rule *Rule) GetConfig() *config.RuleConfig
func (*Rule) GetMatchProfileName ¶
func (*Rule) GetMutatorProfileName ¶
Click to show internal directories.
Click to hide internal directories.