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
""" | |
Username password based authentication with no SRP (secure remote password) | |
STEPS: | |
* Authorize using the /authorize endpoint and get the XSRF-TOKEN | |
* Use the /login endpoint to get the authentication code | |
* Get the access tokens using the /oauth2/token endpoint | |
""" | |
import json | |
import requests |