mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
06641cd15a
This adds the missing preferred username claim to the ID Token for OIDC. Fixes #2798
29 lines
673 B
Go
29 lines
673 B
Go
package oidc
|
|
|
|
var scopeDescriptions = map[string]string{
|
|
"openid": "Use OpenID to verify your identity",
|
|
"email": "Access your email addresses",
|
|
"profile": "Access your display name",
|
|
"groups": "Access your group membership",
|
|
}
|
|
|
|
var audienceDescriptions = map[string]string{}
|
|
|
|
// Scope strings.
|
|
const (
|
|
ScopeOpenID = "openid"
|
|
ScopeProfile = "profile"
|
|
ScopeEmail = "email"
|
|
ScopeGroups = "groups"
|
|
)
|
|
|
|
// Claim strings.
|
|
const (
|
|
ClaimGroups = "groups"
|
|
ClaimDisplayName = "name"
|
|
ClaimPreferredUsername = "preferred_username"
|
|
ClaimEmail = "email"
|
|
ClaimEmailVerified = "email_verified"
|
|
ClaimAltEmails = "alt_emails"
|
|
)
|