如何实施Firebase自定义身份验证后端? [英] How to implement Firebase custom authentication backend?
问题描述
我想要自定义Firebase身份验证,其中用户管理下级用户的角色.我需要有关如何实现自己的后端身份验证系统的理解方面的指导.文档无处不在提到将用户名和密码发送到您的后端,这将生成自定义令牌".这个后端是什么?我在哪里追求?我的知识领域是firebase,firebase函数,angular 2/4,ionic2,供本次讨论...谢谢
I want custom firebase authentication where a user manages the roles of subordinate users. I need guidance on understanding on how to implement my own backend authentication system. Everywhere the documentation keeps mentioning that 'send the username and password to your backend that will generate a custom token'. What is this backend? where do I pursue this? My knowledge domain is firebase, firebase functions, angular 2/4, ionic2 for this discussion... thanks
推荐答案
使用Firebase进行自定义身份验证的一种简单方法是使用外部身份提供程序. Auth0是此类提供程序的一个示例.
An easy way to do custom auth with Firebase is using an external identity provider. Auth0 is an example of such a provider.
指南:
https://shusson.info/post/usingfirebaseandauth0together
代码:
https://github.com/shusson/firebase-custom-auth
这篇关于如何实施Firebase自定义身份验证后端?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!