Notes on Firebase auth for Flutter Web

Flutter Web and Firebase Authentication with Google. Issue "not a valid origin"

Notes to self...

Despite registering the IntelliJ web server origin in the client OAuth2 settings in the Cloud Console,  (for example http://localhost:53006),  sign in with Google produces the error:

Error: PlatformException(idpiframe_initialization_failed, Not a valid origin
Not sure why the origin did not take in the console,  possibly because of firebase integration with google cloud? 

Stackoverflow to the rescue: 

https://stackoverflow.com/questions/65132622/firebase-google-signin-localhost-not-whitelisted 

This configures Intellij to run the web server on port localhost:5000, which *is* auotmatically registered by firebase as a valid origin for local development.

Comments

Popular posts from this blog

Introducing ds-operator, the ForgeRock Directory Services Operator for Kubernetes

Automating OpenDJ backups on Kubernetes

OAM R2 REST APIs for Policy Management