MV10 / mv10.github.io

McGuireV10's personal blog
MIT License
4 stars 2 forks source link

Persistent Login with IdentityServer4 - Forty Years of Code #52

Open utterances-bot opened 4 years ago

utterances-bot commented 4 years ago

Persistent Login with IdentityServer4 - Forty Years of Code

Users expect a persistent login to “just work” as soon as they reach the website, and landing pages rely on user authentication to vary what the user sees (“Register / Login” versus “Account / Logout”). This is relatively simple to add to an IdentityServer4 client and id provider.

https://mcguirev10.com/2018/01/12/persistent-login-with-identityserver.html

DXInfinity commented 4 years ago

Excellent article, that's just what I need. But there's a concern.. how will it work for cookie-disabled clients? Seems it will try to reauthenticate on each page request. The same is for search engine crawlers.

patelvasu43 commented 4 years ago

Recently I getting issue on External Provider Using identity server 4 with asp.net core 3.1 sdk.

I am getting issue in Chrome and IE edge as external provider login not working. Always I am getting AuthenticateResult.Succeeded as false.

In CallBack Action ,I am retrieving AuthenticateResult using below code var result = await HttpContext.AuthenticateAsync(IdentityConstants.ExternalScheme);

let me know if you have any resolution on this issue. In Firefox browser, it is working. Issue look like same Site probably but I am not sure.