简体   繁体   English

使用 Firebase 验证 Django/Appengine 项目

[英]Authenticate a Django/Appengine project using Firebase

I currently have google and facebook authentication for my application.我目前对我的应用程序进行了 google 和 facebook 身份验证。 I would like to add firebase-auth as the backend for my Django/appengine backend.我想添加 firebase-auth 作为我的 Django/appengine 后端的后端。 The tutorial i followed ( https://cloud.google.com/appengine/docs/standard/python/authenticating-users-firebase-appengine ) only show how to use it for a python Flask backend.我遵循的教程( https://cloud.google.com/appengine/docs/standard/python/authenticating-users-firebase-appengine )只展示了如何将它用于 python Flask 后端。

Does anyone know how to set up firebase in a Django backend that uses appengine?有谁知道如何在使用 appengine 的 Django 后端设置 firebase?

You should follow the same logic mentioned in the tutorial that you indicated here.您应该遵循您在此处指出的教程中提到的相同逻辑。 As per the documentation informs:根据文档通知:

The sample app uses Flask because of its simplicity and ease of use, but the concepts and technologies explored are applicable regardless of which framework you use.示例应用程序使用 Flask 是因为它简单易用,但无论您使用哪种框架,所探索的概念和技术都适用。

So, the concepts are the same for any framework, which should work for you using Django.因此,任何框架的概念都是相同的,这应该适用于使用 Django 的您。 Since there isn't a specific tutorial for the use of Django, I recommend you take a look at the below article, to better understand the integration of Firebase and Django, so you can implement it on your由于没有专门的Django使用教程,建议大家看看下面的文章,更好的理解Firebase和Django的集成,可以在自己的机器上实现

Let me know if the information helped you!如果这些信息对您有帮助,请告诉我!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM