在没有WebView的情况下使用用户名和密码对mgtwitterengine进行身份验证

在没有WebView的情况下使用用户名和密码对mgtwitterengine进行身份验证

问题描述:

我正在使用Ben Gottlieb的MGTwitterEngine和OAuth(https://github.com/bengottlieb/Twitter-OAuth-iPhone)的实现. 使用他的实现时,我将获得带有Twitter登录屏幕的Web视图,并且必须登录并授予该应用程序. 我可以自己进行身份验证吗?因此,请不要使用Web视图,而应使用代码并在表单中键入用户名和密码来完成所有操作.

I am using Ben Gottlieb his implementation of MGTwitterEngine and OAuth (https://github.com/bengottlieb/Twitter-OAuth-iPhone). When I use his implementation, I get a webview with a twitter loginscreen, and I have to login and grant the application. Is it possible to do the authentication myself? So don't use the webview, but do it all in code, with username and password typed in a form.

这可以通过使用Twitter的xAuth身份验证机制来完成.但是,这并不像您需要征询Twitter权限才能使用xAuth一样简单.

This can be done by using Twitter's xAuth authentication mechanism. This is however not as simple as you need to ask Twitter permission to use xAuth.