Код: Выделить всё
app.UseAuthentication();
app.UseAuthorization();
< /code>
Я добавил: < /p>
app.Use(async (context, next) =>
{
if (context.User.Identity?.IsAuthenticated == true && MyAppSession.User == null)
{
string UserIdentity = context.User.Identity.Name!.ToString().ToLower();
... add user to session ...
}
await next();
});
< /code>
Я начал тестировать, прежде чем понял, что еще не реализовал /signin-oidc < /code>, но приложение уже работает без /signin-oidc < /code>. Я ожидаю увидеть что-то вроде https://myapp.com/signin-oidc Подробнее здесь: https://stackoverflow.com/questions/796 ... n-oidc-url
Мобильная версия