mirror of
https://github.com/photoprism/photoprism.git
synced 2026-01-23 02:24:24 +00:00
OIDC: Add "address" to the default userinfo request scopes #782
see https://openid.net/specs/openid-connect-core-1_0.html#ScopeClaims Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
parent
5546a56183
commit
e87f32fa5c
10 changed files with 54 additions and 43 deletions
|
|
@ -1,9 +1,12 @@
|
|||
package authn
|
||||
|
||||
// OpenID Connect (OIDC) scope and claim identifiers:
|
||||
// https://openid.net/specs/openid-connect-core-1_0.html#ScopeClaims
|
||||
const (
|
||||
ClaimPreferredUsername = "preferred_username"
|
||||
ClaimEmail = "email"
|
||||
ClaimName = "name"
|
||||
ClaimNickname = "nickname"
|
||||
OidcScopes = "openid email profile"
|
||||
OidcClaimPreferredUsername = "preferred_username"
|
||||
OidcClaimEmail = "email"
|
||||
OidcClaimName = "name"
|
||||
OidcClaimNickname = "nickname"
|
||||
OidcRequiredScopes = "openid email profile"
|
||||
OidcDefaultScopes = "openid email profile address"
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue