Auth0 Home Blog Docs

identifier when invoking hosted page to add authorization extension role/group?



I would like to issue invitations to users so they can signup to my hosted page on auth0, and when they register I’d like to add an Authentication Extension group and role so that they’re available in the issued JWT when they log in. They can use either username/password or facebook/gmail login.

I’m not sure how to best accomplish this with my current setup—I’m launching the hosted page from auth0-js via auth0-lock, and I assume that I will need to add another rule which adds the correct role and group to the new user record. Is there a way to pass a unique identifier in via auth0-js so that I can look the group and role up in my API from a Rule? Should I pass this identifier via the scope? Or is there a better way to do this?


Did you ever figure this out?