Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -32,13 +32,15 @@ wb.open(authorization_request_url, new=True)
|
|
32 |
access_token = client_instance.acquire_token_by_authorization_code(
|
33 |
code=AUTHORIZATION_KEY,
|
34 |
scopes=SCOPES)
|
35 |
-
access_token_id = access_token['access_token']
|
36 |
-
headers = {'Authorization': 'Bearer ' + access_token_id}
|
37 |
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
|
|
|
|
|
|
|
|
42 |
|
43 |
# URLs used in this sample app to demonstrate MS Graph in Python
|
44 |
# https://portal.azure.com/#view/Microsoft_AAD_RegisteredApps/ApplicationMenuBlade/~/Authentication/appId/d36c689d-3c61-4be6-a230-c09fc54cf80d/objectId/ece93996-1d7c-4b39-abc5-de51487073ed/isMSAApp~/false/defaultBlade/Overview/appSignInAudience/AzureADandPersonalMicrosoftAccount/servicePrincipalCreated~/true
|
|
|
32 |
access_token = client_instance.acquire_token_by_authorization_code(
|
33 |
code=AUTHORIZATION_KEY,
|
34 |
scopes=SCOPES)
|
|
|
|
|
35 |
|
36 |
+
|
37 |
+
#access_token_id = access_token['access_token']
|
38 |
+
#headers = {'Authorization': 'Bearer ' + access_token_id}
|
39 |
+
|
40 |
+
#endpoint = base_url + 'me'
|
41 |
+
#response = requests.get(endpoint, headers=headers)
|
42 |
+
#st.write(response)
|
43 |
+
#st.write(response.json)
|
44 |
|
45 |
# URLs used in this sample app to demonstrate MS Graph in Python
|
46 |
# https://portal.azure.com/#view/Microsoft_AAD_RegisteredApps/ApplicationMenuBlade/~/Authentication/appId/d36c689d-3c61-4be6-a230-c09fc54cf80d/objectId/ece93996-1d7c-4b39-abc5-de51487073ed/isMSAApp~/false/defaultBlade/Overview/appSignInAudience/AzureADandPersonalMicrosoftAccount/servicePrincipalCreated~/true
|