You need to sign in to do that
Don't have an account?
Dumber_Texan2
How do I retrieve the Access Token I am using for my Connected App?
I am getting an invalid token message when making a JSON request. I found this article on refresing tokens.
https://www.salesforce.com/us/developer/docs/api_rest/Content/intro_understanding_refresh_token_oauth.htm
In order to refresh the token, it appears that I have to make a POST request with the current token.
https://login.salesforce.com/services/oauth2/token?grant_type=refresh_token&client_id=MYCLIENTID&client_secret=MYCLIENTSECRET&refresh_token=????
I have searched and searched and searched, but I can not find an article or blog post that explains how to retreive the access token or how to view it.
Any help anyone can provide would be much appreciated.
Thanks,
Brian
https://www.salesforce.com/us/developer/docs/api_rest/Content/intro_understanding_refresh_token_oauth.htm
In order to refresh the token, it appears that I have to make a POST request with the current token.
https://login.salesforce.com/services/oauth2/token?grant_type=refresh_token&client_id=MYCLIENTID&client_secret=MYCLIENTSECRET&refresh_token=????
I have searched and searched and searched, but I can not find an article or blog post that explains how to retreive the access token or how to view it.
Any help anyone can provide would be much appreciated.
Thanks,
Brian
Please look at below link.
http://ashishsharmadevsfdc.blogspot.ae/2014/08/a-quick-salesforce-oauth-20-usage.html
Let us know if it helps you.
1 request to get the Authorization Code
1 request using the Authorization Code to get the Access Token
1 request using the Access Token to get the Refresh Token
If this is true, then the Access Token and the Refresh Token are different. Is this correct?
1 request to get the Authorization Code
https://login.salesforce.com/services/oauth2/authorize?response_type=code&client_id=&redirect_uri=
1 request using the Authorization Code to get the Access Token
https://login.salesforce.com/services/oauth2?code=&grant_type=authorization_code&client_id=&client_secret=&redirect_uri=
1 request using the Access Token to get the Refresh Token
????
Can you help with the 3 requests that I need to make? I'm not sure that any of them are correct. I'm getting some wierd responses back from SalesForce.
Thanks,
Brian