Skip to content

Commit 2130277

Browse files
Merge pull request #451 from microsoft/psl-appauth-doc-update
docs: AppAuthentication update
2 parents 5b5134a + 3658742 commit 2130277

File tree

2 files changed

+50
-36
lines changed

2 files changed

+50
-36
lines changed

docs/AppAuthentication.md

Lines changed: 15 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,32 @@
1-
## Add Authentication in Azure App Service configuration
1+
# Set Up Authentication in Azure App Service
2+
3+
This document provides step-by-step instructions to configure Azure App Registrations for a front-end application.
4+
5+
## Prerequisites
6+
7+
- Access to **Microsoft Entra ID**
8+
- Necessary permissions to create and manage **App Registrations**
9+
10+
## Step 1: Add Authentication in Azure App Service configuration
211
1. Click on `Authentication` from left menu.
312

413
![Authentication](images/AppAuthentication.png)
514

6-
2. Click on `+ Add Provider` to see a list of identity providers.
15+
2. Click on `+ Add identity provider` to see a list of identity providers.
716

817
![Authentication Identity](images/AppAuthenticationIdentity.png)
918

10-
3. Click on `+ Add Provider` to see a list of identity providers.
19+
3. Click on `Identity Provider` dropdown to see a list of identity providers.
1120

1221
![Add Provider](images/AppAuthIdentityProvider.png)
1322

14-
4. Select the first option `Microsoft Entra Id` from the drop-down list.
23+
4. Select the first option `Microsoft Entra Id` from the drop-down list and select `client secret expiration` under App registration.
24+
> NOTE: If `Create new app registration` is disabled, then go to [Create new app registration](/docs/create_new_app_registration.md) and come back to this step to complete the app authentication.
1525
1626
![Add Provider](images/AppAuthIdentityProviderAdd.png)
1727

1828
5. Accept the default values and click on `Add` button to go back to the previous page with the identity provider added.
1929

2030
![Add Provider](images/AppAuthIdentityProviderAdded.png)
2131

22-
### Creating a new App Registration
23-
1. Click on `Home` and select `Microsoft Entra ID`.
24-
25-
![Microsoft Entra ID](images/MicrosoftEntraID.png)
26-
27-
2. Click on `App registrations`.
28-
29-
![App registrations](images/Appregistrations.png)
30-
31-
3. Click on `+ New registration`.
32-
33-
![New Registrations](images/NewRegistration.png)
34-
35-
4. Provide the `Name`, select supported account types as `Accounts in this organizational directory only(Contoso only - Single tenant)`, select platform as `Web`, enter/select the `URL` and register.
36-
37-
![Add Details](images/AddDetails.png)
38-
39-
5. After application is created sucessfully, then click on `Add a Redirect URL`.
40-
41-
![Redirect URL](images/AddRedirectURL.png)
42-
43-
6. Click on `+ Add a platform`.
44-
45-
![+ Add platform](images/AddPlatform.png)
46-
47-
7. Click on `Web`.
48-
49-
![Web](images/Web.png)
50-
51-
8. Enter the `web app URL` (Provide the app service name in place of XXXX) and Save. Then go back to [Step 4] and follow from _Point 4_ choose `Pick an existing app registration in this directory` from the Add an Identity Provider page and provide the newly registered App Name.
52-
53-
![Add Details](images/WebAppURL.png)
32+
6. You have successfully added app authentication, and now required to log in to access the application.
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Creating a new App Registration
2+
3+
1. Click on `Home` and select `Microsoft Entra ID`.
4+
5+
![Microsoft Entra ID](images/MicrosoftEntraID.png)
6+
7+
2. Click on `App registrations`.
8+
9+
![App registrations](images/Appregistrations.png)
10+
11+
3. Click on `+ New registration`.
12+
13+
![New Registrations](images/NewRegistration.png)
14+
15+
4. Provide the `Name`, select supported account types as `Accounts in this organizational directory only(Contoso only - Single tenant)`, select platform as `Web`, enter/select the `URL` and register.
16+
17+
![Add Details](images/AddDetails.png)
18+
19+
5. After application is created sucessfully, then click on `Add a Redirect URL`.
20+
21+
![Redirect URL](images/AddRedirectURL.png)
22+
23+
6. Click on `+ Add a platform`.
24+
25+
![+ Add platform](images/AddPlatform.png)
26+
27+
7. Click on `Web`.
28+
29+
![Web](images/Web.png)
30+
31+
8. Enter the `web app URL` (Provide the app service name in place of XXXX) and Save. Then go back to [Set Up Authentication in Azure App Service](/docs/AppAuthentication.md) Step 1 page and follow from _Point 4_ choose `Pick an existing app registration in this directory` from the Add an Identity Provider page and provide the newly registered App Name.
32+
33+
E.g. <<https://<< appservicename >>.azurewebsites.net/.auth/login/aad/callback>>
34+
35+
![Add Details](images/WebAppURL.png)

0 commit comments

Comments
 (0)