I would like to automate my actions (as a user) on a website that is using Auth0. Some of the actions require me to be authenticated with Auth0 and for that, I need an access token (to call an API). Therefore, I have a simple question, given username and password, is there a way for me to retrieve an access token programmatically?
The website I would like to automate my actions on is using Auth0’s login page hosted on their domain. After clicking
Login on their page, I am getting redirected to their login page, where I provide my username and password. After I submit the form, I am redirected back to the original domain’s
login_successful redirect page and I can find the access token in:
- the URL fragment (the bit after the
- the dev tools network tab’s requests to the API (Authorization header)