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

Getting automatically logged out on localhost after 10-ish seconds in Firefox with Strict tracking protection #229

Closed
Powersource opened this issue Mar 15, 2021 · 8 comments

Comments

@Powersource
Copy link
Member

No description provided.

@Powersource
Copy link
Member Author

Powersource commented Mar 15, 2021

Works in production at least

Idk if we were getting this before but there's an error in the console saying

Partitioned cookie or storage access was provided to “https://auth.platoproject.org/auth/realms/plato/protocol/openid-connect/login-status-iframe.html” because it is loaded in the third-party context and storage partitioning is enabled.

and pointing here https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/Privacy/Storage_access_policy/Errors/CookiePartitionedForeign
https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/Privacy/State_Partitioning#dynamic_state_partitioning
https://blog.mozilla.org/security/2021/01/26/supercookie-protections/

So my current theory is that these heuristics hit us for some reason on localhost. I recently updated firefox on my machine.

Could also be related to fb1a3f8 . At first that was broken (tests didn't even pass) because I hadn't updated the allowed redirect urls in keycloak, but that's done now so you can at least log in, if briefly, now. The issue could be related to some old cache or something around this.

@Powersource
Copy link
Member Author

Screenshot of log

image

Tested and reproduces in private browsing as well

@Powersource
Copy link
Member Author

Doesn't reproduce in chrome

@Powersource
Copy link
Member Author

Only happens on Strict tracking protection in firefox, not Standard.

Tried upgrading react and oidc-react but didn't seem to help #230

@Powersource
Copy link
Member Author

Opened an issue in oidc-client-js DuendeArchive/identity-model-oidc-client-js#1321

@Powersource Powersource changed the title Getting automatically logged out on localhost after 10-ish seconds Getting automatically logged out on localhost after 10-ish seconds in Firefox with Strict tracking protection Mar 15, 2021
@Powersource
Copy link
Member Author

Fixing for now by me disabling Strict tracking protection :P

@aerugo aerugo assigned aerugo and unassigned aerugo Mar 27, 2021
@aerugo
Copy link
Collaborator

aerugo commented Mar 28, 2021

So can we close this?

@Powersource
Copy link
Member Author

mm sure but we should be ready for more strict 3rd party cookie blocking coming and biting us in the future

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

2 participants