Skip to content

Commit 3ce962d

Browse files
author
Tiago Brenck
committed
Added step to update the client application URLs
1 parent a86b48e commit 3ce962d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

6-Deploy-to-Azure/README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,16 @@ This project has one WebApp / Web API projects. To deploy them to Azure Web Site
2525
1. Click on **Application settings** in the left menu of the App service and add the copied Sql connection string in the **Connection strings** section as `DefaultConnection`.
2626
1. Choose `SQLAzure` in the **Type** dropdown. **Save** the setting.
2727

28+
### Update the client application URLs
29+
30+
1. Navigate back to to the [Azure portal](https://portal.azure.com).
31+
In the left-hand navigation pane, select the **Azure Active Directory** service, and then select **App registrations**.
32+
1. In the resultant screen, select the `WebApp-OpenIDConnect-DotNet-code-v2` application.
33+
1. In the **Authentication** tab, update the Logout URL fields with the address of your service, for example [https://WebApp-OpenIDConnect-DotNet-code-v2-contoso.azurewebsites.net](https://WebApp-OpenIDConnect-DotNet-code-v2-contoso.azurewebsites.net)
34+
1. From the *Branding* menu, update the **Home page URL**, to the address of your service, for example [https://WebApp-OpenIDConnect-DotNet-code-v2-contoso.azurewebsites.net](https://WebApp-OpenIDConnect-DotNet-code-v2-contoso.azurewebsites.net). Save the configuration.
35+
1. Add the same URL in the list of values of the *Authentication -> Redirect URIs* menu. If you have multiple redirect urls, make sure that there a new entry using the App service's Uri for each redirect url.
36+
1. If your application calls a web api, make sure to apply the necessary changes on `appsettings.json` so it calls the published API URL instead of `localhost`.
37+
2838
### Publishing the sample
2939

3040
1. From the **Overview** tab of the App Service, download the publish profile by clicking the **Get publish profile** link and save it. Other deployment mechanisms, such as from source control, can also be used.

0 commit comments

Comments
 (0)