Closed AlexH-BoxFish closed 1 year ago
In November 2024 Auth0 will be discontinuing rules in favour of actions. The docs currently say to create a rule with:
function (user, context, callback) { context.idToken['https://shinyproxy.io/shinyproxy_roles'] = user.app_metadata.shinyproxy_roles; callback(null, user, context); }
Which won't work for new Auth0 customers after October this year. Based on their migrate from rules to actions docs this would become a Login / Post Login action:
Login / Post Login
exports.onExecutePostLogin = async (event, api) => { api.idToken.setCustomClaim("https://shinyproxy.io/shinyproxy_roles", user.app_metadata.shinyproxy_roles); };
Which is working for me.
Thanks a lot for reporting this! I have updated the documentation.
In November 2024 Auth0 will be discontinuing rules in favour of actions. The docs currently say to create a rule with:
Which won't work for new Auth0 customers after October this year. Based on their migrate from rules to actions docs this would become a
Login / Post Login
action:Which is working for me.