Documentation ¶
Index ¶
- Constants
- Variables
- type AuthOIDC
- func (ao *AuthOIDC) Authenticate(pctx *auth.AuthContext, creds *auth.Credentials) (*auth.AuthContext, bool)
- func (ao *AuthOIDC) CredentialType() string
- func (ao *AuthOIDC) FederationCallback(data interface{}) error
- func (ao *AuthOIDC) Name() string
- func (ao *AuthOIDC) Realm() string
- func (ao *AuthOIDC) Type() string
- type Config
- type TokenValueMapping
Constants ¶
View Source
const ( Type = "authoidc" DefaultName = "authoidc" DefaultRealm = "default realm" )
Variables ¶
View Source
var Log *logrus.Entry = logging.GetLogger("authoidc").WithField("pkg", "auth/backend/authoidc")
Functions ¶
This section is empty.
Types ¶
type AuthOIDC ¶
func (*AuthOIDC) Authenticate ¶
func (ao *AuthOIDC) Authenticate(pctx *auth.AuthContext, creds *auth.Credentials) (*auth.AuthContext, bool)
func (*AuthOIDC) CredentialType ¶
func (*AuthOIDC) FederationCallback ¶
type Config ¶
type Config struct { Name string Realm string Timeout int `yaml:"timeout"` ClientId string `yaml:"clientID"` ClientSecret string `yaml:"clientSecret"` Scopes []string `yaml:"scopes"` AuthFlowTimeout int `yaml:"authFlowTimeout"` MaxPendingAuthAttempts int `yaml:"maxPendingAuthAttempts"` RedirectURL string `yaml:"redirectURL"` ProviderURL string `yaml:"providerURL"` ValueMappings TokenValueMapping `yaml:"valueMappings"` Principals []string CriticalOptions map[string]string `yaml:"criticalOptions"` Extensions map[string]string }
var Defaults *Config = &Config{ Name: DefaultName, Realm: DefaultRealm, Scopes: []string{"openid", "email", "profile"}, AuthFlowTimeout: 240, MaxPendingAuthAttempts: 1000, ValueMappings: TokenValueMapping{ SubjectNameField: "name", SubjectNameTemplate: "{{.}}", PrincipalsField: "email", PrincipalTemplate: "{{.}}", }, Timeout: 15, }
Click to show internal directories.
Click to hide internal directories.