function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
dipu12dipu12 

How can I use OAuth token to launch Web UI

I got the following from the document found in this url http://wiki.developerforce.com/page/Digging_Deeper_into_OAuth_2.0_on_Force.com

Is this really true. How deos the iPhone app launch page in Safari without requiring login?

 

One difference to note here is that an OAuth access token cannot be used for access to the Force.com Web UI on behalf of the user, either by setting a SID cookie or via the 'front door' URL (e.g. https://na1.salesforce.com/secur/frontdoor.jsp?sid=<sid_value>). This is because the OAuth token is explicitly scoped for API usage only.

Best Answer chosen by Admin (Salesforce Developers) 
Pat PattersonPat Patterson

You can access the Force.com Web UI on behalf of the user, via the front door URL, if you specify 'web' scope when you request the access token. That part of the article is out of date (the first release of OAuth 2.0 did not include scope). I'll go fix it right now - thanks for noticing!

All Answers

Gaurav KheterpalGaurav Kheterpal

I'm not sure if I understand the question right but if you mean to ask how the Salesforce oAuth part works in an iOS app, refer this tutorial - http://www.modelmetrics.com/tomgersic/oauth-2-0-for-salesforce-com/

 

This explains how a WebView is launched to do the oAuth part. I hope this helps.

Pat PattersonPat Patterson

You can access the Force.com Web UI on behalf of the user, via the front door URL, if you specify 'web' scope when you request the access token. That part of the article is out of date (the first release of OAuth 2.0 did not include scope). I'll go fix it right now - thanks for noticing!

This was selected as the best answer