最佳实践 - 商店Twitter的凭据或不? [英] Best practices - store Twitter credentials or not?
问题描述
我希望能够给我的用户在我的网站上的个人资料显示其最近的鸣叫的能力。
I'd like to be able to give my users the ability to display their recent tweets on their profile on my website.
我有一个PHP Twitter的包装,并了解如何进行API调用等,但我只是想知道如何管理用户信息。
I have a PHP twitter wrapper and understand how to make API calls etc, but I'm just wondering how to manage the user information.
什么是这里的最佳实践?我希望他们能够一次输入凭据,但我想每个人存储用户名/密码,自己不去做的最好方式。
What is the best practice here? I want them to be able to enter their credentials once, but I would imagine storing everyones username/password myself isn't the best way to go about it.
- 有没有一种方法,使经过身份验证的通话一次,并拥有Twitter记住了吗?
- 我应该保存的用户名/密码,然后显示鸣叫时,只需打个电话?
在这里任何意见将是巨大的。
Any advice here would be great.
感谢您,
推荐答案
使用OAuth,无需要求用户提供密码:
Use OAuth, no need to ask users for their passwords:
http://apiwiki.twitter.com/Authentication
我想大家会/也许应该同意,存储用户名叽叽喳喳/密码是不好的,我不能相信他们曾经创造一个情况下,你需要它。
I think everyone would/should probably agree that storing the twitter usernames/passwords is bad, I can't believe they ever created a situation where you needed it.
这篇关于最佳实践 - 商店Twitter的凭据或不?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!