I’ve looked through many, many entries and I cannot seem to put my finger on the exact resolution to what I think is a simple question because there seems to be a few variations to authenticating in Auth0.
I want to get a JWT for a user to send to a partner who with authenticate back to Auth0. I believe in our code all we have to do is a POST request to https://{{domain}}/oauth/token with header ‘content-type: application/x-www-form-urlencoded’ and data:
grant_type=password
username={{user being authenticated, in this case email in Auth0}}
password={{password user being authenticated, in this case password in Auth0}}’
scope=openid
audience=https://{{domain}}/api/v2/
client_id={{client id from Auth0}}
client_secret={{client secret from Auth0}}