Skip to content
Snippets Groups Projects
Commit 876d7d80 authored by jeffreywescott's avatar jeffreywescott
Browse files

support 'user_id' in addition to 'id' and 'ID' for service identifier

parent 279c9f3f
No related branches found
No related tags found
No related merge requests found
......@@ -103,6 +103,10 @@ class CustomOAuth
if identity?.ID and not identity.id
identity.id = identity.ID
# Fix Auth0-like identities having 'user_id' instead of 'id'
if identity?.user_id and not identity.id
identity.id = identity.user_id
console.log 'id:', JSON.stringify identity, null, ' '
serviceData =
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment