简体   繁体   English

在Ionic中处理用户身份验证+推送通知的最佳方法

[英]Best way to handle User authentication + Push Notifiations in Ionic

Parse ? 解析 Auth0? Auth0? Firebase ? 火力基地 Ionic Platform? 离子平台?

I'm so lost... Can anyone help me? 我很迷路...有人可以帮助我吗?

If you are looking for a "backend in a box" then If you are creating an API meant to be consumed by an Ionic application, JWT is probably what you are looking for. 如果您正在寻找“盒子里的后端”,那么如果您要创建一个供Ionic应用程序使用的API,那么JWT可能就是您所需要的。 Parse, Auth0 etc may help. 解析,Auth0等可能会有所帮助。 I have not used them. 我没有用过。 However, if you are building your own backend it will be dependent on what server side framework you are using. 但是,如果您要构建自己的后端,则将取决于您使用的服务器端框架。 It's safe to say that JWT is a good approach on the client side(angular/ionic), but you will need a serverside authentication and account system such as Passport for Node, Devise for Rails etc.. Either of those will handle basic authentication and account management. 可以肯定地说,JWT是客户端(角度/离子)方面的一种好方法,但是您将需要服务器端身份验证和帐户系统,例如Passport for Node,Devise for Rails等。这两种方法都可以处理基本身份验证和帐户管理。 You will need a JWT layer as well to produce and manage tokens for the client. 您还将需要一个JWT层来为客户端生成和管理令牌。 You can also create a homebrew system if you choose to but the frameworks I mentioned make things quite a bit easier. 如果愿意,您还可以创建一个自制系统,但是我提到的框架使事情变得容易得多。

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

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