Note that sub-topic isn't an extension of tutorial (#18947)

pull/18934/head
Kirk Larkin 2020-06-24 23:56:52 +01:00 committed by GitHub
parent d0e54e113a
commit e5d81ff9ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -226,6 +226,9 @@ Test the app:
## Add claims to Identity using IUserClaimsPrincipalFactory<ApplicationUser>
> [!NOTE]
> This section isn't an extension of the previous tutorial. To apply the following steps to the app built using the tutorial, see [this GitHub issue](https://github.com/dotnet/AspNetCore.Docs/issues/18797).
Additional claims can be added to ASP.NET Core Identity by using the `IUserClaimsPrincipalFactory<T>` interface. This class can be added to the app in the `Startup.ConfigureServices` method. Add the custom implementation of the class as follows:
```csharp