Skip to content

Commit 0353d39

Browse files
authored
Add remark on ME-ID authority in server API config (dotnet#32163)
1 parent 4dbc373 commit 0353d39

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

aspnetcore/blazor/security/blazor-web-app-with-oidc.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -539,6 +539,12 @@ Configure the project in the <xref:Microsoft.AspNetCore.Authentication.JwtBearer
539539
jwtOptions.Authority = "https://login.microsoftonline.com/a3942615-d115-4eb7-bc84-9974abcf5064/v2.0/";
540540
```
541541

542+
The preceding example pertains to an app registered in a tenant with an AAD B2C tenant type. If the app is registered in an ME-ID tenant, the authority should match the issurer (`iss`) of the JWT returned by the identity provider:
543+
544+
```csharp
545+
jwtOptions.Authority = "https://sts.windows.net/a3942615-d115-4eb7-bc84-9974abcf5064/";
546+
```
547+
542548
### Minimal API for weather data
543549

544550
Secure weather forecast data endpoint in the project's `Program` file:

aspnetcore/toc.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -580,8 +580,6 @@ items:
580580
uid: blazor/security/server/static-server-side-rendering
581581
- name: Interactive server-side rendering threats
582582
uid: blazor/security/server/interactive-server-side-rendering
583-
- name: Blazor Web App with OIDC
584-
uid: blazor/security/blazor-web-app-oidc
585583
- name: Account confirmation and password recovery
586584
uid: blazor/security/server/account-confirmation-and-password-recovery
587585
- name: Additional scenarios
@@ -612,6 +610,8 @@ items:
612610
uid: blazor/security/webassembly/meid-groups-roles
613611
- name: Graph API
614612
uid: blazor/security/webassembly/graph-api
613+
- name: Blazor Web App with OIDC
614+
uid: blazor/security/blazor-web-app-oidc
615615
- name: Content Security Policy
616616
uid: blazor/security/content-security-policy
617617
- name: State management

0 commit comments

Comments
 (0)