+ Start a Discussion
binaryfundamentalsbinaryfundamentals 

How to match up a REST authentication request to the response SFDC provides to the callback page

If I initiate a REST authentication request 


$url = SFDC_LOGIN_URI."/services/oauth2/authorize?response_type=code&client_id=$id&redirect_uri=".urlencode(SFDC_CALLBACK_URI);

header("Location: ". $url); 

 

When SFDC invokes my callback page I get a code.  

 

Question is; If I have multiple users in my application invoking the code above.  Is it possible to match up each authentication request with the callback response that SFDC provides?

 

I tried appending a session Id to the redirect_uri in my code but SFDC throws an error that the URI did not match.

forecast_is_cloudyforecast_is_cloudy

I'm not sure I fully understand your question. Specifically, can you please expand on "Is it possible to match up each authentication request with the callback response that SFDC provides?". Do you mean that you need to know which user is making the authentication request when you get a callback from Salesforce to you Callback URL?