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计划的措施如下:
- Using the above link as a guide, bind a custom URI scheme to your iPhone application (i.e. "myapp://").
- 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
- 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).
- 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.
- Safari will recognize that the URI uses a scheme that is bound to your application and launch your app.
- 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.
- Finally, with an Access Token you will be able to access Protected Resources from the OAuth Service Provider.
这是否更有意义?