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
- I've created firebase app and generated config data in
firebaseConfig
. - Since I'm developing locally, I've added
localhost
to the list ofAuthorized domains
list in firebase console. - Google, Apple, Email logins are enabled. As they always were because of my mobile application.
- Service account credentials file is downloaded, stored, pointed at in django.
- I ran local server through
python manage.py runserver
- I added login button in my login template.
- 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.
I'm not entirely sure what other info to give at this point, but if I'm missing something please let me know.