English 中文(简体)
能否在不使用户进入pin子的情况下对phone进行认证?
原标题:is it possible to authenticate with oauth, on the iphone, without making the user enter a pin?

没有任何实际办法可以看到或读到这一点,让你在不使用户离开 app子或不得不在发布更新之前书写pin。


我的法典就是这样吗?

NSURL *requestTokenURL = [NSURL URLWithString:@"http://twitter.com/oauth/request_token"];

OAMutableURLRequest *request = [[OAMutableURLRequest alloc] 
initWithURL:requestTokenURL 
consumer:_consumer 
token:nil 
realm:nil 
signatureProvider:nil];

[request setHTTPMethod:@"POST"];
[request setOAuthParameterName:@"oauth_callback" withValue:@"myApp:"];
[request prepare];


OADataFetcher *fetcher = [[OADataFetcher alloc] init];

[fetcher fetchDataWithRequest:request
                     delegate:self
            didFinishSelector:@selector(requestTokenTicket:didFinishWithData:)
              didFailSelector:@selector(requestDidFail)];

}

最佳回答

Yup。 你们可以做的是,根据你的申请,在奥乌特——召回的参数上,登记一项习俗性国际倡议。 这就避免了你不得不使用带外背配置,这要求用户手工进入用户,正如你所描述的那样。

• 注册“URI”习俗计划详情,供您阅读:

rel=“nofollow noretinger”>http://iosdevelopertips.com/coa/apping-your-own-application-via-a-custom-url-scheme.html>

http://www.ohchr.org。

采用URI的习俗,当用户授权提出请求时,你可以指示OAuth Service Provider退到您的申请。 这是替代繁琐的“离班背”工作流程的一种选择,需要用户批准请求书,然后发给他们通过你的申请人工进入的比方代码。 更类似于使用乌特的网络应用程序。

采用URI计划的措施如下:

  1. Using the above link as a guide, bind a custom URI scheme to your iPhone application (i.e. "myapp://").
  2. When requesting a Request Token from the OAuth Service Provider, provide a URI that uses your custom scheme as the value of the oauth_callback parameter. For example, oauth_callback=myapp://oauth/callback
  3. When you get a Request Token, direct the user to the Service Providers authorization endpoint URL via the browser (launch Safari, send the user to http://example.com/oauth/authorize?oauth_token=token).
  4. If the user chooses to authorize the Request Token, the Service Provider will redirect them (usually via a 301 HTTP Status header) to the URI you provided in step # 2.
  5. Safari will recognize that the URI uses a scheme that is bound to your application and launch your app.
  6. When the callback is called (again, see the above linked guide for details) you will be able to exchange the authorized OAuth Request Token for an Access Token.
  7. Finally, with an Access Token you will be able to access Protected Resources from the OAuth Service Provider.

这是否更有意义?

问题回答

因此,它赢得了工作......

April 23, 2009 Deprecated (REST): Support for the oauth_callback parameter has been removed due to security vulnerability. (discussion)

您在申请过程中必须人工解脱URL。





相关问题
Code sign Error

I have created a new iPhone application.I have two mach machines. I have created the certificate for running application in iPhone in one mac. Can I use the other mac for running the application in ...

ABPersonViewController Usage for displaying contact

Created a View based Project and added a contact to the AddressBook using ABAddressBookRef,ABRecordRef now i wanted to display the added contact ABPersonViewController is the method but how to use in ...

将音频Clips从Peter改为服务器

我不禁要问,那里是否有任何实例表明从Peit向服务器发送音响。 I m不关心电话或SIP风格的解决办法,只是一个简单的袖珍流程......

• 如何将搜查线重新定位?

我正试图把图像放在搜索条左边。 但是,问题始于这里,搜索条线不能重新布署。

热门标签