Created
November 1, 2019 11:08
-
-
Save MauRiEEZZZ/14b69d7488a4622ff98d5dfb68f64b4c to your computer and use it in GitHub Desktop.
Blog https://wordpress.com/post/mcpforlife.com/48 option 1 step 4
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_host_uri, api_version=None) | |
code = context.acquire_user_code(keyvault_resource_uri, client_id) | |
print(code['message']) | |
kv_token = context.acquire_token_with_device_code(keyvault_resource_uri, code, client_id) | |
kv_credential = AADTokenCredentials(kv_token, client_id) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment