首页
注册
登录
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请
登录
V2EX
›
API
REST(API)的Login如何实现
cabinw
·
cabinw
·
2012-10-23 12:12:31 +08:00
· 5354 次点击
这是一个创建于 4498 天前的主题,其中的信息可能已经有所发展或是发生改变。
我用Tornado,基本的登陆方式为session,secure_cookie那一套,但是这不合适纯API的调用,那么纯API可以用什么方式登陆或者说认证呢?
Amazon的方法:
http://docs.amazonwebservices.com/AmazonS3/latest/dev/RESTAuthentication.html
一篇Secure REST(API)的分析:
http://www.thebuzzmedia.com/designing-a-secure-rest-api-without-oauth-authentication/
Stackoverflow的一个讨论:
http://stackoverflow.com/questions/4608225/how-do-i-implement-login-in-a-restful-web-service
API
rest
登陆
2 条回复
•
1970-01-01 08:00:00 +08:00
1
luin
2012-10-23 12:41:05 +08:00
我直接用的HTTP Basic Auth,走HTTPS协议...
2
Livid
MOD
2012-10-23 12:51:51 +08:00
如果需要比 HTTP Basic Auth 更复杂的方案,那么就用 OAuth + HTTPS 吧。
关于
·
帮助文档
·
博客
·
API
·
FAQ
·
实用小工具
·
1433 人在线
最高记录 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 23ms ·
UTC 17:12
·
PVG 01:12
·
LAX 09:12
·
JFK 12:12
Developed with
CodeLauncher
♥ Do have faith in what you're doing.