Skip to content

Commit

Permalink
Blazor WASM MS accts updates (#28672)
Browse files Browse the repository at this point in the history
  • Loading branch information
guardrex authored Mar 15, 2023
1 parent f401d32 commit c5aedf7
Show file tree
Hide file tree
Showing 7 changed files with 58 additions and 505 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1302,7 +1302,7 @@ export interface InteractiveAuthenticationRequest {

You can import the library by removing the original `<script>` tag and adding a `<script>` tag that loads the custom library. The following example demonstrates replacing the default `<script>` tag with one that loads a library named `CustomAuthenticationService.js` from the `wwwroot/js` folder.

In `wwwroot/index.html` inside the closing `</body>` tag:
In `wwwroot/index.html` before the Blazor script (`_framework/blazor.webassembly.js`) inside the closing `</body>` tag:

```diff
- <script src="_content/Microsoft.Authentication.WebAssembly.Msal/AuthenticationService.js"></script>
Expand Down Expand Up @@ -2533,7 +2533,7 @@ export interface InteractiveAuthenticationRequest {

You can import the library by removing the original `<script>` tag and adding a `<script>` tag that loads the custom library. The following example demonstrates replacing the default `<script>` tag with one that loads a library named `CustomAuthenticationService.js` from the `wwwroot/js` folder.

In `wwwroot/index.html` inside the closing `</body>` tag:
In `wwwroot/index.html` before the Blazor script (`_framework/blazor.webassembly.js`) inside the closing `</body>` tag:

```diff
- <script src="_content/Microsoft.Authentication.WebAssembly.Msal/AuthenticationService.js"></script>
Expand Down Expand Up @@ -3764,7 +3764,7 @@ export interface InteractiveAuthenticationRequest {

You can import the library by removing the original `<script>` tag and adding a `<script>` tag that loads the custom library. The following example demonstrates replacing the default `<script>` tag with one that loads a library named `CustomAuthenticationService.js` from the `wwwroot/js` folder.

In `wwwroot/index.html` inside the closing `</body>` tag:
In `wwwroot/index.html` before the Blazor script (`_framework/blazor.webassembly.js`) inside the closing `</body>` tag:

```diff
- <script src="_content/Microsoft.Authentication.WebAssembly.Msal/AuthenticationService.js"></script>
Expand Down Expand Up @@ -4991,7 +4991,7 @@ export interface InteractiveAuthenticationRequest {

You can import the library by removing the original `<script>` tag and adding a `<script>` tag that loads the custom library. The following example demonstrates replacing the default `<script>` tag with one that loads a library named `CustomAuthenticationService.js` from the `wwwroot/js` folder.

In `wwwroot/index.html` inside the closing `</body>` tag:
In `wwwroot/index.html` before the Blazor script (`_framework/blazor.webassembly.js`) inside the closing `</body>` tag:

```diff
- <script src="_content/Microsoft.Authentication.WebAssembly.Msal/AuthenticationService.js"></script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ In the app's manifest in the Azure portal for **CLIENT** and **SERVER** apps, se
1. Select **Manage** > **Manifest** in the sidebar.
1. Find the `groupMembershipClaims` attribute.
1. Set the value to `All` (`"groupMembershipClaims": "All"`).
1. Select the **Save** button.
1. Select the **Save** button if you made changes.

## Custom user account

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ Record the *Client app* Application (client) ID (for example, `4369008b-21fa-427

In **Authentication** > **Platform configurations** > **Single-page application**:

1. Confirm the **Redirect URI** of `https://localhost/authentication/login-callback` is present.
1. Confirm the redirect URI of `https://localhost/authentication/login-callback` is present.
1. In the **Implicit grant** section, ensure that the checkboxes for **Access tokens** and **ID tokens** are **not** selected.
1. The remaining defaults for the app are acceptable for this experience.
1. Select the **Save** button if you made changes.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,12 @@ Register an AAD app for the *Client app*:
Record the **:::no-loc text="Client":::** app Application (client) ID (for example, `4369008b-21fa-427c-abaa-9b53bf58e538`).

In **Authentication** > **Platform configurations** > **Single-page application (SPA)**:
In **Authentication** > **Platform configurations** > **Single-page application**:

1. Confirm the **Redirect URI** of `https://localhost/authentication/login-callback` is present.
1. Confirm the redirect URI of `https://localhost/authentication/login-callback` is present.
1. In the **Implicit grant** section, ensure that the checkboxes for **Access tokens** and **ID tokens** are **not** selected.
1. The remaining defaults for the app are acceptable for this experience.
1. Select the **Save** button.
1. Select the **Save** button if you made changes.

In **API permissions**:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@ Record the following information:
* AAD B2C instance (for example, `https://contoso.b2clogin.com/`, which includes the trailing slash): The instance is the scheme and host of an Azure B2C app registration, which can be found by opening the **Endpoints** window from the **App registrations** page in the Azure portal.
* AAD B2C Primary/Publisher/Tenant domain (for example, `contoso.onmicrosoft.com`): The domain is available as the **Publisher domain** in the **Branding** blade of the Azure portal for the registered app.

In **Authentication** > **Platform configurations** > **Single-page application (SPA)**:
In **Authentication** > **Platform configurations** > **Single-page application**:

1. Confirm the **Redirect URI** of `https://localhost/authentication/login-callback` is present.
1. Confirm the redirect URI of `https://localhost/authentication/login-callback` is present.
1. In the **Implicit grant** section, ensure that the checkboxes for **Access tokens** and **ID tokens** are **not** selected.
1. The remaining defaults for the app are acceptable for this experience.
1. Select the **Save** button.
1. Select the **Save** button if you made changes.

In **Home** > **Azure AD B2C** > **User flows**:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,12 @@ Record the following information:
* Application (client) ID (for example, `41451fa7-82d9-4673-8fa5-69eff5a761fd`)
* Directory (tenant) ID (for example, `e86c78e2-8bb4-4c41-aefd-918e0565a45e`)

In **Authentication** > **Platform configurations** > **Single-page application (SPA)**:
In **Authentication** > **Platform configurations** > **Single-page application**:

1. Confirm the **Redirect URI** of `https://localhost/authentication/login-callback` is present.
1. Confirm the redirect URI of `https://localhost/authentication/login-callback` is present.
1. In the **Implicit grant** section, ensure that the checkboxes for **Access tokens** and **ID tokens** are **not** selected.
1. The remaining defaults for the app are acceptable for this experience.
1. Select the **Save** button.
1. Select the **Save** button if you made changes.

### Create the Blazor app

Expand Down
Loading

0 comments on commit c5aedf7

Please sign in to comment.