fcornelius / django-firebase-auth Goto Github PK
View Code? Open in Web Editor NEWDjango DRF authentication provider for Google's Firebase Authentication Service
License: BSD 3-Clause "New" or "Revised" License
Django DRF authentication provider for Google's Firebase Authentication Service
License: BSD 3-Clause "New" or "Revised" License
pip install django-firebase-authCollecting django-firebase-auth
Could not find a version that satisfies the requirement django-firebase-auth (from versions: )
No matching distribution found for django-firebase-auth
I have the task to migrate the django auth part 1.8~1.11 to firebase auth, with the Strangler Pattern https://docs.microsoft.com/en-us/azure/architecture/patterns/strangler has the main rule, the first thing that I think is make a custom provider for allauth django plugin. but don’t know is this is the right path to go.
Using the Strangler Pattern mean, that the User will login in the current app in production (django), but at the same time with firebase auth app in development, and vice versa. I have some advances, mostly in the firebase part.
The To-Do that I have:
[Done] Migrate the current users with the firebase-tools, Current users can login with the same password in firebase. firebase/firebase-tools#1088
[ ] Login firebase and the same time in django and vice versa.
I have the idea that the custom provider will link the local and social accounts on django with the firebase custom provider, this part is not clear yet to me.
Basically I’m very noob with django and python. So I need some insights to get and define the right tasks for the next spring.
Hi, I know this is not an issue at all. But I need to know how to test/add a user using your code.
You said in step #4
Create your users with the Firebase user ID as user ID. Inside your views, you can access the user reference like you're used to with request.user
I have tried to replace the id to firebase uid but ids should be numeric. Do I have to create a new field on my databse ? Also I don't get how to use firebase token in django ? Can you provide more detail ? please ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.