auth0-samples / auth0-aspnetcore-mvc-samples

Auth0 Integration Samples for ASP.NET Core MVC Web Applications
https://auth0.com/docs/quickstart/webapp/aspnet-core
MIT License
152 stars 199 forks source link

Roles in ID token? #57

Closed woeterman94 closed 4 years ago

woeterman94 commented 4 years ago

Why are the roles in the id token?

auth0.users.updateAppMetadata(user.user_id, user.app_metadata) .then(function() { context.idToken['https://schemas.quickstarts.com/roles'] = user.app_metadata.roles; callback(null, user, context); })

I thought we were supposed to send an access_token to the api?