manfredsteyer / angular-oauth2-oidc

Support for OAuth 2 and OpenId Connect (OIDC) in Angular.
MIT License
1.86k stars 681 forks source link

SSO login happens and after redirection user is not logged in #1403

Open mikij opened 3 months ago

mikij commented 3 months ago

Describe the bug So, this happens to some users in world wide local network. At first we thought it is a problem in network itself but then accidentally we discovered something strange. If user after clicking login button activates native Windows screenshot tool, browser frizzes before redirection (to allows taking a screenshot) and then redirecting to application returns with logged in status. Otherwise in normal flow user stays logged out. I have no idea what can go wrong here and why only for these users it works this way. It is like something happens too fast for these cases and library is not able to catch logged in status from authentication server. I am curious if there is some timeout settings on library side I can use to prevent this to happen. Does something need to be done on server side? Any advice how to overcome this situation will be appreciated.

Desktop (please complete the following information):

mikij commented 3 months ago

We checked with Firefox and it was working without problem. What could be a problem here or any idea how to debug it better?