From d12deba3d44b0f9266a2cc42fc076721d1c847a1 Mon Sep 17 00:00:00 2001 From: Lauri Ojansivu Date: Thu, 14 Mar 2019 02:47:52 +0200 Subject: [PATCH] Updated OAuth2 (markdown) --- OAuth2.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/OAuth2.md b/OAuth2.md index 8774cad..cfaa105 100644 --- a/OAuth2.md +++ b/OAuth2.md @@ -154,6 +154,10 @@ If you need more info, they are at bottom of the page Advanced Settings / Endpo Rule Name: Encrich Wekan login ``` 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 || {}; var ns = "https://boards.example.com/"; context.idToken[ns + "id"] = user.user_id;