Django application with firebase authentication

I have a django application, which works fine. Both when I develop locally, and in production at https://my.domain

Now, I need to add one more page to the application, that will be behind firebase authentication flow. The reason being I've already gotten a pool of users from my mobile application (unrelated to https://my.domain). I want to give access to the same users to their data they generated through my mobile app. My understanding was if they used same firebase ID (either google id, or apple id) as in app, it should be doable.

Problems start pretty much off the bat. Here's what I did

  1. I've created firebase app and generated config data in firebaseConfig. enter image description here
  2. Since I'm developing locally, I've added localhost to the list of Authorized domains list in firebase console.
  3. Google, Apple, Email logins are enabled. As they always were because of my mobile application.
  4. Service account credentials file is downloaded, stored, pointed at in django.
  5. I ran local server through
python manage.py runserver
  1. I added login button in my login template.

enter image description here

  1. When I hit login (through google popup), list of my google accounts open. But after selecting one - it kind of gets stuck for a while and closes.

enter image description here enter image description here

I'm not entirely sure what other info to give at this point, but if I'm missing something please let me know.

Back to Top