Steps:
- Go to auth0 dashboard
- Select Users & Roles
- Click on a user
This will bring me to a specific users dashboard page
- Click the dropdown ‘SIGN IN AS USER’ at the top
- Select the application I want to sign in to
- Select the correct Callback URL from the dropdown http://localhost:8080/auth/signed-in
- Set the scope to ‘openid profile email’
- Then copy the url for client side app and paste it into the browser
Problem:
The callback url it redirects to is:
http://localhost:8080/auth/signed-in#access_token={opaque token}&scope=openid&expires_in=7200&token_type=Bearer
This doesn’t look like a valid access_token and it does not have the id_token.
When I login normally and auth0 redirects to the callback url it looks like this:
http://localhost:8080/auth/signed-in#access_token={token is here}
Question
How do I get a id_token and legit access_token from auth0 when logging in as a user?