AzureAD / microsoft-authentication-library-for-js

Microsoft Authentication Library (MSAL) for JS
http://aka.ms/aadv2
MIT License
3.66k stars 2.65k forks source link

Guard does not set the valid token #1365

Closed Stefan185 closed 4 years ago

Stefan185 commented 4 years ago

Library

Description

I am using the Beta 4 with ng9 - latest version. I have two portals with the same b2c tenent.

I have a simple href link to http://localhost:4200 from one portal to the other one. If the target is same window it work. With the target _blank the target page is call, but the token will not be set. The guard redirects correctly to the redirectpage http://localhost:4200/oidc-signin

Targetpage: http://localhost:4200/oidc-signin#state=c395df86-6746-4ee3-ad8a-791f9147d45d&client_info=ey...&id_token=ey...

Strg-F5 changes nothing.

Everything is fine, when I create a new tab with this url.

What could be the reason?

jasonnutter commented 4 years ago

@Stefan185 This is a known issue with the core msal library, which we plan to have fixed soon.

jasonnutter commented 4 years ago

Closing as duplicate, will be fixed with #1413