Skip to content

Commit 3589bee

Browse files
Merge pull request #80 from microsoft/psl-update-auth-doc
docs: variable name updation
2 parents 5c47648 + dfa59c8 commit 3589bee

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

docs/ConfigureAppAuthentication.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,16 +69,18 @@ We will add Microsoft Entra ID as an authentication provider to API and Web Appl
6969
3. Grab Scope Name for Impersonation
7070

7171
- Select **Expose an API** in the left menu. Copy the Scope name, then paste it in some temporary place.
72-
The copied text will be used for Web Application Environment variable - **APP_WEB_SCOPE**.
72+
The copied text will be used for Web Application Environment variable - **REACT_APP_WEB_SCOPE**.
7373
![configure_app_registration_web_9](./images/configure_app_registration_web_9.png)
7474

7575
4. Grab Client Id for Web App
7676

7777
- Select **Overview** in the left menu. Copy the Client Id, then paste it in some temporary place.
78-
The copied text will be used for Web Application Environment variable - **APP_WEB_CLIENT_ID**.
78+
The copied text will be used for Web Application Environment variable - **REACT_APP_MSAL_AUTH_CLIENTID**.
7979
- Also copy the Tenant Id, then paste it in some temporary place.
80-
The copied text will be used for Web Application Environment variable - **APP_MSAL_AUTH_AUTHORITY**.
81-
![configure_app_registration_web_10](./images/configure_app_registration_web_10.png)
80+
The copied text will be used for Web Application Environment variable - **REACT_APP_MSAL_AUTH_AUTHORITY**.
81+
> **Note:** For the value of **REACT_APP_MSAL_AUTH_AUTHORITY**, you need to use the full URL: `https://login.microsoftonline.com/<TenantId>`, replacing `<TenantId>` with the value you just copied.
82+
83+
![configure_app_registration_web_10](./images/configure_app_registration_web_10.png)
8284

8385
## Step 3: Configure Application Registration - API Application
8486

@@ -88,7 +90,7 @@ We will add Microsoft Entra ID as an authentication provider to API and Web Appl
8890
![configure_app_registration_api_1](./images/configure_app_registration_api_1.png)
8991

9092
- Select **Expose an API** in the left menu. Copy the Scope name, then paste it in some temporary place.
91-
The copied text will be used for Web Application Environment variable - **APP_API_SCOPE**.
93+
The copied text will be used for Web Application Environment variable - **REACT_APP_API_SCOPE**.
9294
![configure_app_registration_api_2](./images/configure_app_registration_api_2.png)
9395

9496
## Step 4: Add Web Application's Client Id to Allowed Client Applications List in API Application Registration
@@ -117,7 +119,7 @@ Now, we will edit and deploy the Web Application Container with updated Environm
117119
| REACT_APP_MSAL_AUTH_CLIENTID | In Step 2, Client Id for Web |
118120
| REACT_APP_WEB_SCOPE | In Step 2, Scope Name |
119121
| REACT_APP_API_SCOPE | In Step 3, Scope Name |
120-
| REACT_APP_MSAL_AUTH_AUTHORITY | https://login.microsoftonline.com/'TenantId' <br/>*Note: Replace 'TenantId' with the Tenant Id copied in Step 2, point 4* |
122+
| REACT_APP_MSAL_AUTH_AUTHORITY | https://login.microsoftonline.com/'TenantId' <br/>*Note: Add the whole URL above, replacing <TenantId> with the Tenant Id copied in Step 2, point 4. Do not use just the Tenant Id; the full URL is required.* |
121123
| REACT_APP_MSAL_POST_REDIRECT_URL | / |
122124
| REACT_APP_MSAL_REDIRECT_URL | / |
123125
| ENABLE_AUTH | true |

0 commit comments

Comments
 (0)