You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: aspnetcore/security/blazor/webassembly/hosted-with-azure-active-directory-b2c.md
+8-1Lines changed: 8 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -65,7 +65,7 @@ Follow the guidance in [Tutorial: Register an application in Azure Active Direct
65
65
1. In **Azure Active Directory** > **App registrations**, select **New registration**.
66
66
1. Provide a **Name** for the app (for example, **Blazor Client AAD B2C**).
67
67
1. For **Supported account types**, select the multi-tenant option: **Accounts in any organizational directory or any identity provider. For authenticating users with Azure AD B2C.**
68
-
1. Leave the **Redirect URI** drop down set to **Web**, and provide the following redirect URI: `https://localhost:{PORT}/authentication/login-callback`. The default port for an app running on Kestrel is 5001. For IIS Express, the randomly generated port can be found in the Server app's properties in the **Debug** panel.
68
+
1. Leave the **Redirect URI** drop down set to **Web** and provide the following redirect URI: `https://localhost:{PORT}/authentication/login-callback`. The default port for an app running on Kestrel is 5001. If the app is run on a different Kestrel port, use the app's port. For IIS Express, the randomly generated port for the app can be found in the Server app's properties in the **Debug** panel. Since the app doesn't exist at this point and the IIS Express port isn't known, return to this step after the app is created and update the redirect URI. A remark appears in the [Create the app](#create-the-app) section to remind IIS Express users to update the redirect URI.
69
69
1. Confirm that **Permissions** > **Grant admin concent to openid and offline_access permissions** is enabled.
70
70
1. Select **Register**.
71
71
@@ -110,6 +110,13 @@ To specify the output location, which creates a project folder if it doesn't exi
110
110
>
111
111
> Additionally, the scope set up by the Hosted Blazor template might have the App ID URI host repeated. Confirm that the scope configured for the `DefaultAccessTokenScopes` collection is correct in `Program.Main` (*Program.cs*) of the *Client app*.
112
112
113
+
> [!NOTE]
114
+
> In the Azure portal, the *Client app's***Authentication** > **Platform configurations** > **Web** > **Redirect URI** is configured for port 5001 for apps that run on the Kestrel server with default settings.
115
+
>
116
+
> If the *Client app* is run on a random IIS Express port, the port for the app can be found in the *Server app's* properties in the **Debug** panel.
117
+
>
118
+
> If the port wasn't configured earlier with the *Client app's* known port, return to the *Client app's* registration in the Azure portal and update the redirect URI with the correct port.
119
+
113
120
## Server app configuration
114
121
115
122
*This section pertains to the solution's **Server** app.*
Copy file name to clipboardExpand all lines: aspnetcore/security/blazor/webassembly/hosted-with-azure-active-directory.md
+8-1Lines changed: 8 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -62,7 +62,7 @@ Follow the guidance in [Quickstart: Register an application with the Microsoft i
62
62
1. In **Azure Active Directory** > **App registrations**, select **New registration**.
63
63
1. Provide a **Name** for the app (for example, **Blazor Client AAD**).
64
64
1. Choose a **Supported account types**. You may select **Accounts in this organizational directory only** (single tenant) for this experience.
65
-
1. Leave the **Redirect URI** drop down set to **Web**, and provide the following redirect URI: `https://localhost:{PORT}/authentication/login-callback`. The default port for an app running on Kestrel is 5001. For IIS Express, the randomly generated port can be found in the Server app's properties in the **Debug** panel.
65
+
1. Leave the **Redirect URI** drop down set to **Web** and provide the following redirect URI: `https://localhost:{PORT}/authentication/login-callback`. The default port for an app running on Kestrel is 5001. If the app is run on a different Kestrel port, use the app's port. For IIS Express, the randomly generated port for the app can be found in the Server app's properties in the **Debug** panel. Since the app doesn't exist at this point and the IIS Express port isn't known, return to this step after the app is created and update the redirect URI. A remark appears in the [Create the app](#create-the-app) section to remind IIS Express users to update the redirect URI.
66
66
1. Disable the **Permissions** > **Grant admin concent to openid and offline_access permissions** check box.
67
67
1. Select **Register**.
68
68
@@ -98,6 +98,13 @@ To specify the output location, which creates a project folder if it doesn't exi
98
98
> [!NOTE]
99
99
> Pass the App ID URI to the `app-id-uri` option, but note a configuration change might be required in the client app, which is described in the [Access token scopes](#access-token-scopes) section.
100
100
101
+
> [!NOTE]
102
+
> In the Azure portal, the *Client app's***Authentication** > **Platform configurations** > **Web** > **Redirect URI** is configured for port 5001 for apps that run on the Kestrel server with default settings.
103
+
>
104
+
> If the *Client app* is run on a random IIS Express port, the port for the app can be found in the *Server app's* properties in the **Debug** panel.
105
+
>
106
+
> If the port wasn't configured earlier with the *Client app's* known port, return to the *Client app's* registration in the Azure portal and update the redirect URI with the correct port.
107
+
101
108
## Server app configuration
102
109
103
110
*This section pertains to the solution's **Server** app.*
Copy file name to clipboardExpand all lines: aspnetcore/security/blazor/webassembly/standalone-with-azure-active-directory-b2c.md
+8-1Lines changed: 8 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,7 +29,7 @@ Follow the guidance in [Tutorial: Register an application in Azure Active Direct
29
29
1. In **Azure Active Directory** > **App registrations**, select **New registration**.
30
30
1. Provide a **Name** for the app (for example, **Blazor Standalone AAD B2C**).
31
31
1. For **Supported account types**, select the multi-tenant option: **Accounts in any organizational directory or any identity provider. For authenticating users with Azure AD B2C.**
32
-
1. Leave the **Redirect URI** drop down set to **Web**, and provide the following redirect URI: `https://localhost:{PORT}/authentication/login-callback`. The default port for an app running on Kestrel is 5001. For IIS Express, the randomly generated port can be found in the app's properties in the **Debug** panel.
32
+
1. Leave the **Redirect URI** drop down set to **Web** and provide the following redirect URI: `https://localhost:{PORT}/authentication/login-callback`. The default port for an app running on Kestrel is 5001. If the app is run on a different Kestrel port, use the app's port. For IIS Express, the randomly generated port for the app can be found in the app's properties in the **Debug** panel. Since the app doesn't exist at this point and the IIS Express port isn't known, return to this step after the app is created and update the redirect URI. A remark appears later in this topic to remind IIS Express users to update the redirect URI.
33
33
1. Confirm that **Permissions** > **Grant admin concent to openid and offline_access permissions** is enabled.
To specify the output location, which creates a project folder if it doesn't exist, include the output option in the command with a path (for example, `-o BlazorSample`). The folder name also becomes part of the project's name.
60
60
61
+
> [!NOTE]
62
+
> In the Azure portal, the app's **Authentication** > **Platform configurations** > **Web** > **Redirect URI** is configured for port 5001 for apps that run on the Kestrel server with default settings.
63
+
>
64
+
> If the app is run on a random IIS Express port, the port for the app can be found in the app's properties in the **Debug** panel.
65
+
>
66
+
> If the port wasn't configured earlier with the app's known port, return to the app's registration in the Azure portal and update the redirect URI with the correct port.
Copy file name to clipboardExpand all lines: aspnetcore/security/blazor/webassembly/standalone-with-azure-active-directory.md
+8-1Lines changed: 8 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,7 @@ Register a AAD app in the **Azure Active Directory** > **App registrations** are
21
21
22
22
1. Provide a **Name** for the app (for example, **Blazor Standalone AAD**).
23
23
1. Choose a **Supported account types**. You may select **Accounts in this organizational directory only** for this experience.
24
-
1. Leave the **Redirect URI** drop down set to **Web**, and provide the following redirect URI: `https://localhost:{PORT}/authentication/login-callback`. The default port for an app running on Kestrel is 5001. For IIS Express, the randomly generated port can be found in the app's properties in the **Debug** panel.
24
+
1. Leave the **Redirect URI** drop down set to **Web** and provide the following redirect URI: `https://localhost:{PORT}/authentication/login-callback`. The default port for an app running on Kestrel is 5001. If the app is run on a different Kestrel port, use the app's port. For IIS Express, the randomly generated port for the app can be found in the app's properties in the **Debug** panel. Since the app doesn't exist at this point and the IIS Express port isn't known, return to this step after the app is created and update the redirect URI. A remark appears later in this topic to remind IIS Express users to update the redirect URI.
25
25
1. Disable the **Permissions** > **Grant admin concent to openid and offline_access permissions** check box.
To specify the output location, which creates a project folder if it doesn't exist, include the output option in the command with a path (for example, `-o BlazorSample`). The folder name also becomes part of the project's name.
47
47
48
+
> [!NOTE]
49
+
> In the Azure portal, the app's **Authentication** > **Platform configurations** > **Web** > **Redirect URI** is configured for port 5001 for apps that run on the Kestrel server with default settings.
50
+
>
51
+
> If the app is run on a random IIS Express port, the port for the app can be found in the app's properties in the **Debug** panel.
52
+
>
53
+
> If the port wasn't configured earlier with the app's known port, return to the app's registration in the Azure portal and update the redirect URI with the correct port.
Copy file name to clipboardExpand all lines: aspnetcore/security/blazor/webassembly/standalone-with-microsoft-accounts.md
+8-1Lines changed: 8 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,7 @@ Register a AAD app in the **Azure Active Directory** > **App registrations** are
21
21
22
22
1. Provide a **Name** for the app (for example, **Blazor Standalone AAD Microsoft Accounts**).
23
23
1. In **Supported account types**, select **Accounts in any organizational directory**.
24
-
1. Leave the **Redirect URI** drop down set to **Web**, and provide the following redirect URI: `https://localhost:{PORT}/authentication/login-callback`. The default port for an app running on Kestrel is 5001. For IIS Express, the randomly generated port can be found in the app's properties in the **Debug** panel.
24
+
1. Leave the **Redirect URI** drop down set to **Web** and provide the following redirect URI: `https://localhost:{PORT}/authentication/login-callback`. The default port for an app running on Kestrel is 5001. If the app is run on a different Kestrel port, use the app's port. For IIS Express, the randomly generated port for the app can be found in the app's properties in the **Debug** panel. Since the app doesn't exist at this point and the IIS Express port isn't known, return to this step after the app is created and update the redirect URI. A remark appears later in this topic to remind IIS Express users to update the redirect URI.
25
25
1. Disable the **Permissions** > **Grant admin concent to openid and offline_access permissions** check box.
To specify the output location, which creates a project folder if it doesn't exist, include the output option in the command with a path (for example, `-o BlazorSample`). The folder name also becomes part of the project's name.
44
44
45
+
> [!NOTE]
46
+
> In the Azure portal, the app's **Authentication** > **Platform configurations** > **Web** > **Redirect URI** is configured for port 5001 for apps that run on the Kestrel server with default settings.
47
+
>
48
+
> If the app is run on a random IIS Express port, the port for the app can be found in the app's properties in the **Debug** panel.
49
+
>
50
+
> If the port wasn't configured earlier with the app's known port, return to the app's registration in the Azure portal and update the redirect URI with the correct port.
0 commit comments