导轨移动应用REST API。会议 [英] Rails REST API for mobile apps. Sessions

查看:66
本文介绍了导轨移动应用REST API。会议的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建一个移动应用,得到了用户和谈判,以自定义Rails的REST API的后端。在登录时我应该创建一个会话?或者我应该只是发送与每个请求的用户名和密码?如果会议是要走的路,怎么通常执行?

I am creating a mobile app that has users and talks to a custom Rails REST API for the backend. Should I create a session when logging in? Or should I just send the username and password with each request? If sessions is the way to go, how is that normally implemented?

推荐答案

简单地生成令牌,并用它们来识别用户

simply generate tokens, and use them to identify users

这篇关于导轨移动应用REST API。会议的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆