Use CS3 user object fields to store UID and GID

This commit is contained in:
Ishank Arora
2021-06-16 18:05:40 +02:00
parent 36971ea28b
commit 6168ee7095
6 changed files with 27 additions and 90 deletions
+2 -2
View File
@@ -57,10 +57,10 @@ func (m accountResolver) ServeHTTP(w http.ResponseWriter, req *http.Request) {
if u == nil && claims != nil {
var claim, value string
switch {
case claims.Email != "":
claim, value = "mail", claims.Email
case claims.PreferredUsername != "":
claim, value = "username", claims.PreferredUsername
case claims.Email != "":
claim, value = "mail", claims.Email
case claims.OcisID != "":
//claim, value = "id", claims.OcisID
default: