I’m also looking for a solution that will include the permissions in the access token on first login without forcing the client to refresh the access token.
@dan.woda Are you able to assist and update the FAQ?
There are several threads on this topic with no clear answer:
I implemented a Login script that retrieves from a legacy database all the information related to users (name, email…), including Roles.
I would like to assign those Roles to the user in the moment it is migrated, so when the Token is generated it will include the permissions for the predefined Role.
Can I assign the Roles on the Login Script? If so, can you provide an example.
If it is not possible. What other option do I have to accomplish this?
I have an application whose end users I like to store in Auth0 “Database” connection.
I want to have end users credentials (username + password) to authenticate them with Auth0. On Successful login, I want Auth0 to return an id_token which has a user role, permissions. Also, I want to know how I can I set these roles and permissions when a user signsup?