简体   繁体   English

本地移动应用程序身份验证方法的最佳方法

[英]Best approach for authentication method for native mobile apps

I'm pretty confused on what authentication method to use for my android/ios app. 对于我的android / ios应用程序使用哪种身份验证方法,我感到很困惑。

I'm trying to create login for user and maintain session on the app. 我正在尝试为用户创建登录名并维护应用程序上的会话。 If token based authentication is used for session, then it should have expiry time. 如果基于令牌的身份验证用于会话,则它应具有到期时间。

Shall I go ahead with ApiAuth token based authentication or Json Web Token authentication for my native apps. 我是否应该对本机应用程序进行基于ApiAuth令牌的身份验证Json Web令牌身份验证 Please help me to choose. 请帮我选择。

From my experience, we have a substantially complex Rails API which is consumed by both iOS and Android client apps. 根据我的经验,我们有一个相当复杂的Rails API,iOS和Android客户端应用程序都使用该API。 We use JWT for authentication and it's working pretty well. 我们使用JWT进行身份验证,并且运行良好。 There is a jwt ruby gem as well. 还有一个jwt红宝石宝石 It's easy to have expiry time using JWT. 使用JWT到期很容易。 This is also one of the most popular choices of it's kind, so I think you can definitely give this a shot. 这也是同类产品中最受欢迎的选择之一,因此我认为您绝对可以尝试一下。

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

相关问题 Rails身份验证和授权-最佳方法? - Rails Authentication and Authorization - Best approach? Rails 3最佳方法可在一个应用程序中同时使用多个应用程序 - rails 3 best approach multiple apps within one app Rails api和本机移动应用程序身份验证 - Rails api and native mobile app authentication 无需身份验证的安全Rails 3 MultiStep订单的最佳方法 - Best approach for a secure Rails 3 MultiStep Order Form without authentication 区分浏览器请求和移动应用程序请求的最佳方法? - Best way to differentiate between browser requests and requests from mobile apps? 移动应用&lt;-&gt; Rails应用授权/身份验证的最佳解决方案 - Best solution for mobile app <-> Rails app authorization/authentication 在Rails中为公司\\单用户帐户设置身份验证\\授权系统的最佳方法是什么? - What is the best approach to setting up authentication\authorization system for corporate \ single user accounts in Rails? 构建具有多个同步视频流或剪辑的 web 应用程序并链接到移动应用程序的最佳方法是什么? - What is the best approach to building a web application with multiple synchronized video streams or clips, also to be linked to mobile applications? 最佳方法-视图中的条件 - Best approach - Conditions in the view 本地化图像的最佳方法 - Best approach for localize images
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM