Created
April 29, 2020 19:26
-
-
Save arielweinberger/21d3b72bb4f345a410abb7e98a17cc96 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl --location --request POST 'https://YOUR_AUTH0_DOMAIN/oauth/token' \ | |
--header 'Content-Type: application/x-www-form-urlencoded' \ | |
--data-urlencode 'client_id=YOUR_AUTH0_CLIENT_ID' \ | |
--data-urlencode 'username=YOUR_USERNAME' \ | |
--data-urlencode 'password=YOUR_PASSWORD' \ | |
--data-urlencode 'grant_type=password' \ | |
--data-urlencode 'scope=openid' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Here is a working example:
Another option is to use Postman, as mentioned in this comment. Remember to also add your
client_secret
to the Request body (it is not shown in the comment).