Minor changes are by default collapsed in the page history.
No changes
The page does not exist yet.
Failed to load changes
Версия от на
Leave Collaboration
Are you sure you want to leave the realtime collaboration and continue editing alone? The changes you save while editing alone will lead to merge conflicts with the changes auto-saved by the realtime editing session.
При попытке использования дефолтного шаблона приложения и класса контекста, отличного от унаследованного от ApiAuthorizationDbContext(Как описан в решении выше), возникает ошибка: app.UseIdentityServer(); System.MissingMethodException: "Method not found: 'System.Collections.Generic.ICollection`1<IdentityServer4.Models.Scope> IdentityServer4.Models.ApiResource.get_Scopes()'." Может быть это связано с тем, что в стороннем контексте помимо класса пользователя указывается класс роли. Дополнение https://github.com/dotnet/aspnetcore/issues/23352 Нужно использовать версию Identity Server 3.*, тогда работает
Для шаблона ASP.NET Core React 1) Создаем проект из шаблона с авторизацией 2) Добавляем шаблон Identity, генерируются формы в коде для возможности изменения их вида.
ASP.NET Core IdentityServer custom ApiAuthorizationDbContext
https://stackoverflow.com/questions/58208894/asp-net-core-identity-custom-apiauthorizationdbcontext
Решение
https://github.com/dotnet/aspnetcore/blob/master/src/Identity/ApiAuthorization.IdentityServer/src/Data/ApiAuthorizationDbContext.cs
app.UseIdentityServer();
System.MissingMethodException: "Method not found: 'System.Collections.Generic.ICollection`1<IdentityServer4.Models.Scope> IdentityServer4.Models.ApiResource.get_Scopes()'."
Может быть это связано с тем, что в стороннем контексте помимо класса пользователя указывается класс роли.
Дополнение
https://github.com/dotnet/aspnetcore/issues/23352
Нужно использовать версию Identity Server 3.*, тогда работает
Для шаблона ASP.NET Core React
1) Создаем проект из шаблона с авторизацией
2) Добавляем шаблон Identity, генерируются формы в коде для возможности изменения их вида.
keyclock