mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-01-26 15:02:52 -05:00
add ocis.id and numeric id claims
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
This commit is contained in:
7
changelog/unreleased/add-ocisid-claim.md
Normal file
7
changelog/unreleased/add-ocisid-claim.md
Normal file
@@ -0,0 +1,7 @@
|
||||
Enhancement: add `ocis.id` and numeric id claims
|
||||
|
||||
We added an `ocis.id` claim to the OIDC standard claims. It allows the idp to send a stable identifier that can be exposed to the outside world (in contrast to sub, which might change whens the IdP changes).
|
||||
|
||||
In addition we added `uidnumber` and `gidnumber` claims, which can be used by the IdP as well. They will be used by storage providers that integrate with an existing LDAP server.
|
||||
|
||||
https://github.com/owncloud/ocis-pkg/pull/50
|
||||
@@ -170,4 +170,14 @@ type StandardClaims struct {
|
||||
// TODO add address claim https://openid.net/specs/openid-connect-core-1_0.html#AddressClaim
|
||||
Address map[string]interface{} `json:"address,omitempty"`
|
||||
KCIdentity map[string]string `json:"kc.identity,omitempty"`
|
||||
|
||||
// To integrate with an existing LDAP server the IdP can send the numeric user and group id:
|
||||
|
||||
// UIDNumber is a unique numerical id that will be used when setting acls on a storage that integrates with the OS/LDAP
|
||||
UIDNumber string `json:"uidnumber,omitempty"`
|
||||
// GIDNumber is a unique numerical id that will be used when setting acls on a storage that integrates with the OS/LDAP
|
||||
GIDNumber string `json:"gidnumber,omitempty"`
|
||||
|
||||
// OcisID is a unique, persistent, non reassignable user id
|
||||
OcisID string `json:"ocis.id,omitempty"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user