Skip to content

Commit e642ab8

Browse files
author
Shreyas-Microsoft
committed
Update doc and add variable in bicep file
1 parent 96b79e7 commit e642ab8

File tree

4 files changed

+12
-1
lines changed

4 files changed

+12
-1
lines changed

docs/ConfigureAppAuthentication.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ We will add Microsoft Entra ID as an authentication provider to API and Web Appl
7676

7777
- Select **Overview** in the left menu. Copy the Client Id, then paste it in some temporary place.
7878
The copied text will be used for Web Application Environment variable - **APP_WEB_CLIENT_ID**.
79+
- 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**.
7981
![configure_app_registration_web_10](./images/configure_app_registration_web_10.png)
8082

8183
## Step 3: Configure Application Registration - API Application
@@ -115,9 +117,10 @@ Now, we will edit and deploy the Web Application Container with updated Environm
115117
| REACT_APP_MSAL_AUTH_CLIENTID | In Step 2, Client Id for Web |
116118
| REACT_APP_WEB_SCOPE | In Step 2, Scope Name |
117119
| REACT_APP_API_SCOPE | In Step 3, Scope Name |
118-
| REACT_APP_MSAL_AUTH_AUTHORITY | https://login.microsoftonline.com/'TenantId' |
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* |
119121
| REACT_APP_MSAL_POST_REDIRECT_URL | / |
120122
| REACT_APP_MSAL_REDIRECT_URL | / |
123+
| ENABLE_AUTH | true |
121124

122125
Click on **Save as a new revision**.
123126
The updated revision will be activated soon.
21.9 KB
Loading
1.4 KB
Loading

infra/main.bicep

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1084,6 +1084,14 @@ module containerAppFrontend 'br/public:avm/res/app/container-app:0.18.1' = {
10841084
name: 'APP_ENV'
10851085
value: 'prod'
10861086
}
1087+
{
1088+
name: 'REACT_APP_MSAL_POST_REDIRECT_URL'
1089+
value: '/'
1090+
}
1091+
{
1092+
name: 'REACT_APP_MSAL_REDIRECT_URL'
1093+
value: '/'
1094+
}
10871095
]
10881096
resources: {
10891097
cpu: '1'

0 commit comments

Comments
 (0)