Patch Blazor config example (#18519)

pull/18529/head
Luke Latham 2020-05-28 06:16:43 -05:00 committed by GitHub
parent 6d1232d4bb
commit 4daa576c1a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 5 deletions

View File

@ -5,7 +5,7 @@ description: Learn about Blazor hosting model configuration, including how to in
monikerRange: '>= aspnetcore-3.1'
ms.author: riande
ms.custom: mvc
ms.date: 05/19/2020
ms.date: 05/27/2020
no-loc: [Blazor, "Identity", "Let's Encrypt", Razor, SignalR]
uid: blazor/hosting-model-configuration
---
@ -213,9 +213,9 @@ builder.Configuration.AddJsonStream(stream);
```json
{
"AzureAD": {
"Authority": "https://login.microsoftonline.com/",
"ClientId": "aeaebf0f-d416-4d92-a08f-e1d5b51fc494"
"Local": {
"Authority": "{AUTHORITY}",
"ClientId": "{CLIENT ID}"
}
}
```
@ -224,7 +224,7 @@ builder.Configuration.AddJsonStream(stream);
```csharp
builder.Services.AddOidcAuthentication(options =>
builder.Configuration.Bind("AzureAD", options);
builder.Configuration.Bind("Local", options.ProviderOptions);
```
#### Logging configuration