英文:
Can i only use the auth on firebase?
问题
我是一名初级开发者,正在尝试使用Flutter构建一个小型的全栈应用程序。我想在Spring Boot和PostgreSQL中创建后端,但我在登录方面遇到了一些问题,所以我考虑只使用Firebase进行身份验证,这是一个好主意吗?如果是的话,是否可行?
我尝试在Firebase网站上查找信息,但没有成功。
英文:
i'm a junior developer and i'm trying to build a small full stack app using flutter, i want to create my backend in springboot and PostgreSQL but i'm having some problems with my login, so i thought aout using firebase for my auth only, is it a good idea? and if so, is it possible?
I tried looking in the firebase website, but to no avail
答案1
得分: 1
这项服务完全可以与Firebase向所有人提供的免费套餐资源一起使用。我已经核实了,Spark计划允许您每天使用电子邮件、社交登录和匿名会话进行3000个活跃会话。
他们的文档非常清晰,可以帮助您处理一切。这是Firebase身份验证文档的链接。
如今,在我们的平台上对最终用户进行身份验证的最佳方式是使用OAuth 2.1协议,然后是其授权代码流。如果您遵循他们的文档,Firebase身份验证将提供此方法给您。强烈建议您如果不了解最佳实践,以及您的应用程序需要保持安全性,就不要尝试创建自己的身份验证方式。
出于学习目的,我建议您了解如何处理Firebase身份验证,并在将来尝试实现自己的方式并进行比较。
在Flutter中,您可以使用此包:https://pub.dev/packages/firebase_auth
英文:
It's totally possible to use this service with your free tier resources that Firebase gives to everyone. I've checked and on the Spark plan you can have 3000 daily active sessions using Email, Social logins and anonymous sessions.
Their docs are very clean and can help you with everything. Here is the link to the Firebase Authentication docs.
Today, the best way to authenticate final users on our platforms is using OAuth 2.1 protocol following by its Authorization Code Flow. This will be the method that Firebase Authentication will give to you if you follow their docs. It's highly recommended that you don't try to create your own way to authenticate if you are not aware about the best practices and your application needs to be secure.
For study purposes, I recommend that you understand how to deal with Firebase Authentication and on the future try to implement your own way and compare themselves.
On flutter you can use this package: https://pub.dev/packages/firebase_auth
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论