Browse Source

inflate OpenID UID to case-sensitive on lookup

master
Garrett Mills 2 years ago
parent
commit
084ec7bbc1
Signed by: garrettmills GPG Key ID: D2BF5FBA8298F246
  1. 11
      app/classes/oidc/CoreIDAdapter.js

11
app/classes/oidc/CoreIDAdapter.js

@ -19,6 +19,7 @@ class CoreIDAdapter {
}
if ( payload.uid ) {
payload.originalUid = payload.uid
payload.uid = payload.uid.toLowerCase()
}
@ -38,6 +39,11 @@ class CoreIDAdapter {
).limit(1).next()
if (!result) return undefined
if ( result?.payload?.originalUid ) {
result.payload.uid = result.payload.originalUid
}
return result.payload
}
@ -58,6 +64,11 @@ class CoreIDAdapter {
).limit(1).next()
if (!result) return undefined
if ( result?.payload?.originalUid ) {
result.payload.uid = result.payload.originalUid
}
return result.payload
}

Loading…
Cancel
Save