Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OAuthService.silentRefreshPostMessageEventListener executes tryLogin() inadvertently in the main frame #1409

Open
yusselparedes opened this issue Apr 24, 2024 · 0 comments

Comments

@yusselparedes
Copy link

Describe the bug
OAuthService.silentRefreshPostMessageEventListener executes tryLogin() inadvertently in the main frame.

If you have sessionChecksEnabled = true or if you have browser extensions like Angular DevTools doing window.postMessage() the tryLogin call is done with customHashFragment: undefined

In most of the cases tryLogin() is ignored, but if for any reason you have in the current url query parameters used in the tryLogin like state or code things start to mess up.

Expected behavior
Filter messages not intended for the silentRefreshPostMessageEventListener before executing tryLogin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant