I am trying to get a token for with the read:users permission using the React SDK. Whenever I call getTokenSilently({ scope: readUsers, audience: ... }) I get a consent required error. The React App is first party and I do not have localhost anywhere in my approved URLs & I am running the app from http://127.0.0.1. I have also made sure to assign the scope to the user in the dashboard as well as enabling RBAC and checking the Add Permissions in the Access Token switch. In addition, I have tried logging in with Allow Skipping User Consent both checked and unchecked. After all of this I still can’t get the app to even request user consent for the read:users permission. Does anyone have any suggestions on things to try or see anything that I might be missing?
Skipping consent is only allowed for verifiable first-party apps. You can get around this by modifying your /etc/hosts file. Here is a doc that explains it in further details.
If this doesn’t work then let us know and we can continue to troubleshoot.
Thanks for the reply! Actually, I am trying to get the get the consent dialog to show up for an app that is first party (I switched off the Skip Ask User Consent toggle in settings).