You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9-10Lines changed: 9 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,23 +15,22 @@ endpoint: Microsoft Identity platform (formerly Azure AD v2.0)
15
15
16
16
### Overview
17
17
18
-
This sample demonstrates a Python Web Application application calling The Microsoft Graph.
18
+
This sample demonstrates a Python web application that signs-in users with the Microsoft identity platform and calls the Microsoft Graph
19
19
20
-
1. The python web application uses the MicroSoft Authentication Library (MSAL) to obtain a JWT access token from Azure Active Directory (Azure AD):
20
+
1. The python web application uses the Microsoft Authentication Library (MSAL) to obtain a JWT access token from the Microsoft identity platform (formerly Azure AD v2.0):
21
21
2. The access token is used as a bearer token to authenticate the user when calling the Microsoft Graph.
22
22
23
23

24
24
25
25
### Scenario
26
26
27
-
This sample shows how to build a Python web app that uses OAuth2 to get access to Microsoft Graph using MSAL Python.For more information about how th eprotocols work in this scenario and other scenarios, see [Authentication Scenarios for Azure AD](https://docs.microsoft.com/en-us/azure/active-directory/develop/active-directory-authentication-scenarios).
27
+
This sample shows how to build a Python web app that uses OAuth2 to get access to Microsoft Graph using MSAL Python.For more information about how th eprotocols work in this scenario and other scenarios, see [Authentication Scenarios for Azure AD](https://docs.microsoft.com/en-us/azure/active-directory/develop/active-directory-authentication-scenarios).
28
28
29
29
## How to run this sample
30
30
31
31
To run this sample, you'll need:
32
32
33
33
> To run this sample you will need:
34
-
> - An internet connection.
35
34
> -[Python 2.7+](https://www.python.org/downloads/release/python-2713/) or [Python 3+](https://www.python.org/downloads/release/python-364/)
> Given that the name of the sample is quiet long, and so are the names of the referenced NuGet packages, you might want to clone it in a folder close to the root of your hard drive, to avoid file size limitations on Windows.
50
+
> Given that the name of the sample is quiet long, you might want to clone it in a folder close to the root of your hard drive, to avoid file size limitations on Windows.
52
51
53
52
### Step 2: Register the sample application with your Azure Active Directory tenant
54
53
@@ -123,9 +122,9 @@ In the steps below, "ClientID" is the same as "Application ID" or "AppId".
123
122
> Note: if you used the setup scripts, the changes below will have been applied for you
124
123
125
124
1. Open the `app_config.py` file
126
-
1. Find the app key `tenant-name` and replace the existing value with your Azure AD tenant name.
127
-
1. Find the app key `client-secret-obtained-during-app-registration` and replace the existing value with the key you saved during the creation of the `python-webapp` app, in the Azure portal.
128
-
1. Find the app key `client-id-as-obtained-during-app-registration` and replace the existing value with the application ID (clientId) of the `python-webapp` application copied from the Azure portal.
125
+
1. Find the app key `Enter_the_Tenant_Name_Here` and replace the existing value with your Azure AD tenant name.
126
+
1. Find the app key `Enter_the_Client_Secret_Here` and replace the existing value with the key you saved during the creation of the `python-webapp` app, in the Azure portal.
127
+
1. Find the app key `Enter_the_Application_Id_here` and replace the existing value with the application ID (clientId) of the `python-webapp` application copied from the Azure portal.
129
128
130
129
131
130
### Step 4: Run the sample
@@ -170,7 +169,7 @@ This project has adopted the [Microsoft Open Source Code of Conduct](https://ope
170
169
171
170
## More information
172
171
173
-
For more information, see MSAL.Python's [conceptual documentation]("https://msal-python.readthedocs.io/en/latest/"):
172
+
For more information, see MSAL.Python's [conceptual documentation]("https://github.com/AzureAD/microsoft-authentication-library-for-python/wiki"):
174
173
175
174
176
175
For more information about web apps scenarios on the Microsoft identity platform see [Scenario: Web app that calls web APIs](https://docs.microsoft.com/en-us/azure/active-directory/develop/scenario-web-app-call-api-overview)
0 commit comments