-
Notifications
You must be signed in to change notification settings - Fork 25.1k
Closed
Description
Description
After dotnet/blazor-samples#533 is worked, place app settings config in a new section of this article.
BlazorWebAppEntra project:
{
"AzureAd": {
"CallbackPath": "/signin-oidc",
"ClientId": "{CLIENT ID}",
"Domain": "{DIRECTORY NAME}.onmicrosoft.com",
"Instance": "https://login.microsoftonline.com/",
"ResponseType": "code",
"TenantId": "{TENANT ID}"
},
"DownstreamApi": {
"BaseUrl": "{BASE ADDRESS}",
"Scopes": [ "{APP ID URI}/Weather.Get" ]
}
}The MinimalApiJwt project already uses Program file-based configuration. For the article section ...
"Authentication": {
"Schemes": {
"Bearer": {
"Authority": "https://sts.windows.net/{TENANT ID (WEB API)}/",
"ValidAudiences": [ "{APP ID URI (WEB API)}" ]
}
}
},Remove the following lines from the Program file ...
- jwtOptions.Authority = "{AUTHORITY}";
- jwtOptions.Audience = "{AUDIENCE}";Page URL
Content source URL
Document ID
58758d13-94c9-e208-e0f6-16676834413c
Platform Id
1c89a093-14c3-881b-7297-49c7c6cb4ea1
Article author
Metadata
- ID: 58758d13-94c9-e208-e0f6-16676834413c
- PlatformId: 1c89a093-14c3-881b-7297-49c7c6cb4ea1
- Service: aspnet-core
- Sub-service: blazor
Metadata
Metadata
Assignees
Type
Projects
Status
Done