Created
July 1, 2017 00:17
-
-
Save lmazuel/b920fe953ea19af048728c1634e07a40 to your computer and use it in GitHub Desktop.
device code SDK
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
context = adal.AuthenticationContext(authority_url, api_version=None) | |
code = context.acquire_user_code(RESOURCE, clientid) | |
print(code['message']) | |
credentials = AdalAuthentication( | |
context.acquire_token_with_device_code, | |
resource, | |
code, | |
clientid | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment