This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function setRolesToUser(user, context, callback) { | |
// Roles should only be set to verified users. | |
if (!user.email || !user.email_verified) { | |
return callback(null, user, context); | |
} | |
user.app_metadata = user.app_metadata || {}; | |
// You can add a Role based on what you want | |
// In this case I check domain | |
const addRolesToUser = function (user) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[adapter] | |
[enforcer.security] | |
[[enforcer.security.tokenService]] | |
# changed localhost to host.docker.internal | |
issuer = "https://host.docker.internal:9444/oauth2/token" | |
[[enforcer.security.tokenService]] | |
# changed localhost to host.docker.internal | |
issuer = "https://host.docker.internal:9444/publisher" |