Open stlsw opened 2 years ago
I finally figure it out and hope it will help others who stuck here.
just have to change var result = await HttpContext.AuthenticateAsync(CookieAuthenticationDefaults.AuthenticationScheme);
to var result = await HttpContext.AuthenticateAsync("Identity.Application");
it probably due to because my app uses aspnet identity core. cheers
Thanks for your amazing project and guide on Dev.to. It is running perfectly fine, but I noticed your Login is under controller instead of PageModel, I'm trying to figure out the cookie issue after user logging in successfully in PageModel and it will go into login loops and
var result = await HttpContext.AuthenticateAsync(CookieAuthenticationDefaults.AuthenticationScheme);
this will return nothing.After I disabled PFCK, the authentication shows "Unprotect ticket failed" and System.Security.Cryptography.CryptographicException: The payload was invalid.
Does it mean Identity Pages can not work with Openiddict to act as an Authorization Server ?
The below code is Login Page.