fix(auth0): Fix the scope to openid email
This commit is contained in:
@ -380,6 +380,8 @@
|
|||||||
domain: config.auth0Domain,
|
domain: config.auth0Domain,
|
||||||
clientID: config.clientID,
|
clientID: config.clientID,
|
||||||
redirectUri: config.callbackURL,
|
redirectUri: config.callbackURL,
|
||||||
|
scope: 'openid email',
|
||||||
|
audience: 'https://' + config.auth0Domain + '/userinfo',
|
||||||
responseType: 'code'
|
responseType: 'code'
|
||||||
}, config.internalOptions);
|
}, config.internalOptions);
|
||||||
|
|
||||||
@ -441,11 +443,11 @@
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
$('#send-email-btn').click(function() {
|
$('#send-email-btn').click(function(){
|
||||||
sendEmail();
|
sendEmail();
|
||||||
});
|
});
|
||||||
|
|
||||||
$('#send-code-btn').click(function() {
|
$('#send-code-btn').click(function(){
|
||||||
login();
|
login();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -178,7 +178,7 @@ export default {
|
|||||||
callbackPath: '/auth/auth0/callback',
|
callbackPath: '/auth/auth0/callback',
|
||||||
successRedirect: successRedirect,
|
successRedirect: successRedirect,
|
||||||
failureRedirect: failureRedirect,
|
failureRedirect: failureRedirect,
|
||||||
scope: ['email'],
|
scope: ['openid email'],
|
||||||
failureFlash: true
|
failureFlash: true
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user