Skip to content

Commit 13f7af5

Browse files
committed
Add env and debug
1 parent 5122176 commit 13f7af5

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

.openpublishing.publish.config.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -878,6 +878,12 @@
878878
"branch": "docs-snippets",
879879
"branch_mapping": {}
880880
},
881+
{
882+
"path_to_root": "ms-identity-python-webapp",
883+
"url": "https://github.com/Azure-Samples/ms-identity-python-webapp",
884+
"branch": "master",
885+
"branch_mapping": {}
886+
},
881887
{
882888
"path_to_root": "ms-identity-node",
883889
"url": "https://github.com/Azure-Samples/ms-identity-node",

articles/active-directory/develop/includes/web-app/quickstart-python.md

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -74,15 +74,11 @@ You can also use an integrated development environment to open the folder.
7474

7575
1. Create a *.env* file in the root folder of the project using *.env.sample* as a guide.
7676

77-
```python
78-
TENANT_ID=<tenant id>
79-
CLIENT_ID=<client id>
80-
CLIENT_SECRET=<client secret>
81-
```
77+
:::code language="python" source="~/ms-identity-python-webapp/.env.sample":::
8278

83-
* Set the value of `TENANT_ID` to the **Directory (tenant) ID** of the registered application, also available on the overview page.
8479
* Set the value of `CLIENT_ID` to the **Application (client) ID** for the registered application, available on the overview page.
8580
* Set the value of `CLIENT_SECRET` to the client secret you created in **Certificates & Secrets** for the registered application.
81+
* Set the value of `TENANT_ID` to the **Directory (tenant) ID** of the registered application, also available on the overview page.
8682

8783
The environment variables are referenced in *app_config.py*, and are kept in a separate *.env* file to keep them out of source control. The provided *.gitignore* file prevents the *.env* file from being checked in.
8884

@@ -101,7 +97,7 @@ You can also use an integrated development environment to open the folder.
10197
2. Run the app from the command line, specifying the host and port to match the redirect URI:
10298

10399
```shell
104-
python3 -m flask run --host=localhost --port=5000
100+
python3 -m flask run --debug --host=localhost --port=5000
105101
```
106102

107103
> [!IMPORTANT]

0 commit comments

Comments
 (0)