We have the same issue with multiple SAML sso providers in multiple projects(incl. production), regular providers such as google work as expected. All other browsers except for Firefox also work.
Steps to reproduce:
- I've set up an "Identity Provider" in GCP "Identity Platform" called "{my-provider-id}".
- Calling firebase to authenticate:
import firebase from "firebase/compat/app";
import "firebase/compat/auth";
// ...
const SAMLProvider = new firebase.auth.SAMLAuthProvider({my-provider-id});
await firebase.auth().signInWithPopup(SAMLProvider);
- I enter my credentials and log in to {my-provider}
- I get redirected back to "https://{my-project}.firebaseapp.com/__/auth/handler" and this results in the following error: "Unable to process request due to missing initial state. This may happen if browser sessionStorage is inaccessible or accidentally cleared."
The same thing happens with another sso provider in our production project.
I have tried searching for the cause of this for several hours now and the fact that it is working in chrome, safari as expected leads me to think this might be an issue with firebase auth and not our own end, please do advise how to troubleshoot this further or whether this is something you can reproduce on your end as well. Thank you
