Search Unity

Salesforce OAUTH2 Authentication

Discussion in 'Scripting' started by ciaravoh, Aug 26, 2016.

Thread Status:
Not open for further replies.
  1. ciaravoh

    ciaravoh

    Joined:
    Dec 16, 2009
    Posts:
    252
    Hello,

    I would like to read data from Salesforce using the REST API. There are several way to authenticate and the one I use today is the user/password authentication that gives a TOKEN. This token cannot be refreshed. You need to re-log when it has expired.

    How can I grant the user and use the "refresh token" when the token has expired ? I create the App in Salesforce, I get the customer ID and client secret, I can successfuly log with user/pass.

    https://help.salesforce.com/apex/HT...s_oauth_refresh_token_flow.htm&language=en_US

    Thank you for your help.
     
  2. ciaravoh

    ciaravoh

    Joined:
    Dec 16, 2009
    Posts:
    252
  3. KelsoMRK

    KelsoMRK

    Joined:
    Jul 18, 2010
    Posts:
    5,539
    This isn't really a Unity-specific question. You'd probably have better luck in the Salesforce developer community.
     
  4. ciaravoh

    ciaravoh

    Joined:
    Dec 16, 2009
    Posts:
    252
    Hello, Of course it's not a Unity-specific question but I'm looking for someone who did already that kind of authentication (OAUTH2 with call back function) in UNITY, which is not the case I'm afraid....

    Thank you.
     
Thread Status:
Not open for further replies.