Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -11,6 +11,13 @@ endpoint = base_url + 'me'
|
|
| 11 |
SCOPES = ['User.Read','User.Export.All']
|
| 12 |
|
| 13 |
# Authenticate with Auth Code
|
| 14 |
-
client_instance = msal.ConfidentialClientApplication(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
|
| 16 |
|
|
|
|
| 11 |
SCOPES = ['User.Read','User.Export.All']
|
| 12 |
|
| 13 |
# Authenticate with Auth Code
|
| 14 |
+
client_instance = msal.ConfidentialClientApplication(
|
| 15 |
+
client_id=APPLICATION_ID_KEY, client_credential=CLIENT_SECRET_KEY, authority_url=authority_url
|
| 16 |
+
)
|
| 17 |
+
|
| 18 |
+
authorization_request_url = client_instance.get_authorization_request_url(SCOPES)
|
| 19 |
+
st.write('Connecting to MSGraph with url:' + authorization_request_url)
|
| 20 |
+
webbrowser.open(authorization_request_url, new=True)
|
| 21 |
+
|
| 22 |
|
| 23 |
|