Skip to content

Commit

Permalink
Use OIDC compliant profile from Auth0
Browse files Browse the repository at this point in the history
  • Loading branch information
sholladay committed Apr 11, 2018
1 parent bbacc7a commit 90eaaee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/providers/auth0.js
Expand Up @@ -28,7 +28,7 @@ exports = module.exports = function (options) {

const profile = await get(`${auth0BaseUrl}/userinfo`); // https://auth0.com/docs/user-profile/normalized
credentials.profile = {
id: profile.user_id,
id: profile.sub,
email: profile.email,
displayName: profile.name,
name: {
Expand Down
2 changes: 1 addition & 1 deletion test/providers/auth0.js
Expand Up @@ -39,7 +39,7 @@ describe('auth0', () => {
Hoek.merge(custom, mock.provider);

const profile = {
user_id: 'auth0|1234567890',
sub: 'auth0|1234567890',
name: 'steve smith',
given_name: 'steve',
family_name: 'smith',
Expand Down

0 comments on commit 90eaaee

Please sign in to comment.