mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 15:30:13 +01:00
Updated OAuth2 (markdown)
parent
2b7c2ba647
commit
d12deba3d4
1 changed files with 4 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue