oAuth2 Issue in Salesforce PhoneGap iPhone Application (Remote Access Application Authorization Issue)

前端 未结 1 820
孤城傲影
孤城傲影 2021-01-29 01:47

I have created an iPhone application using PhoneGap. I have followed code from this tutorial:

Building PhoneGap Mobile Applications Powered by Database.com

I hav

相关标签:
1条回答
  • 2021-01-29 02:14

    So https://login.salesforce.com/services/oauth2/success is a stub URL for callbacks - and that is the screen you are seeing there, and the access_token variable is your session ID for the user. So the OAuth flow is working correctly.

    In the code, you might check to see if:

    oauthResponse.access_token
    

    Is getting set correctly. If so it looks like:

    sfw.login( setupHomeView );
    

    Is what should tell it to move from that page to the next UI page.

    You might also check out the Force.com Mobile SDK: http://developer.force.com/MobileSDK

    It also includes PhoneGap and has a great OAuth wrapper built in.

    0 讨论(0)
提交回复
热议问题