This file contains hidden or 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
| import json | |
| import os | |
| import time | |
| import yaml | |
| from requests_oauthlib import OAuth2Session | |
| # Azure SDK 必须这么做,因为Azure服务器可能不按顺序返回参数. | |
| os.environ['OAUTHLIB_RELAX_TOKEN_SCOPE'] = '1' | |
| os.environ['OAUTHLIB_IGNORE_SCOPE_CHANGE'] = '1' |