Updated OAuth2 (markdown)

Lauri Ojansivu 2019-03-14 02:47:52 +02:00
parent 2b7c2ba647
commit d12deba3d4

@ -154,6 +154,10 @@ If you need more info, they are at bottom of the page Advanced Settings / Endpo
Rule Name: Encrich Wekan login Rule Name: Encrich Wekan login
``` ```
function (user, context, callback) { function (user, context, callback) {
// Only use this rule for Auth0 Dashboard / Applications / Application name
if(context.clientName !== 'Auth0-Application-Name'){
return callback(null, user, context);
}
user.user_metadata = user.user_metadata || {}; user.user_metadata = user.user_metadata || {};
var ns = "https://boards.example.com/"; var ns = "https://boards.example.com/";
context.idToken[ns + "id"] = user.user_id; context.idToken[ns + "id"] = user.user_id;