You need to sign in to do that
Don't have an account?

Integration problem - REST API
Hi,
I am able to succesfully Integrate by test web app using REST API via connector.
I am able to log in to Salesforce account via my salesforce login and able to extract information.
However, when I try to connect to salesforce directly from the browser after I logged in from my test app, it is still asking me to enter my credentials.
Usually it should auto-login as I am already logged in to the same salesforce account via my test app.
Any idea as to why is this hapenning?
https://<instance>.salesforce.com
Instance is the pod on which your org is created. You can find out your instance by looking at the URL after you are logged in.
If it says :
https://ap1.salesforce.com
Your instance is ap1.
Hope this helps.
Regards,
Satish Kumar
Please mark my answer as a solution if it was helpful so it is available to others as a proper solution.
If you felt I went above and beyond, please give me Kudos by clicking on the star icon.
All Answers
You can however do this:
If you are logged in via your app, you can retrieve the Session ID through the app and can use it to login through the browser with the following link.
https://<instance>.salesforce.com/secur/frontdoor.jsp?sid=<The Session ID>
Hope this helps.
Regards,
Satish Kumar
Please mark my answer as a solution if it was helpful so it is available to others as a proper solution.
If you felt I went above and beyond, please give me Kudos by clicking on the star icon.
Hi Satish,
Thanks for the response. My app is a browser based web application. So, it should work ideally. It works for Gmail or facebook properly but with salesforce I am facing the issue.
Let me explain once again my problem:
Open Browser tab
Login to my browser based web app
Now from the web app, login to salesforce account using salesforce user name/ pwd
open new tab in the browser
try login to www.salesforce.com - It is asking for the authentication once again.Why?
I am not sure how should I redirect the path to "https://<instance>.salesforce.com/secur/frontdoor.jsp?sid=<The Session ID>" whenever the user try to open the salesforce.com directly.
Same valid for the logout scenario.
Please help.
Hi Satish,
Thanks. I got the reason behind the problem that I was facing.
Looks like the behaviour with salesforce is little different than any other app like gmail/facebook. If I logged in to www.salesforce.com from the browser tab successfully and than I again open www.salesfoce.com from another tab in the same browser, it is asking to validate the user credentials again.
This is not the case if I open Gmail or facebook.
Any idea as to why salesforce.com behave this way?
Thanks
https://<instance>.salesforce.com
Instance is the pod on which your org is created. You can find out your instance by looking at the URL after you are logged in.
If it says :
https://ap1.salesforce.com
Your instance is ap1.
Hope this helps.
Regards,
Satish Kumar
Please mark my answer as a solution if it was helpful so it is available to others as a proper solution.
If you felt I went above and beyond, please give me Kudos by clicking on the star icon.
Hi Satish,
Thank you for the information. Could you please also help me out with one more thing?
I want to know if there is any other way to get the `Consumer Key` and `Consumer Secret` for my commercial app? Currently I have created the "connected app" and used the Consumer Key and Consumer Secret information received. But this is something I cannot use for the commercial version. Also, with this method, I am unable to get the data when login from SF account different from the one used to create the Connected App.
Thanks in advance.