6

I have a number of hyperlinks for logging into various orgs that look like:

https://www.salesforce.com/login.jsp?pw={password}&un={username}

When I left work on Friday they were working fine. Today when I tried to use one I was redirected to https://login.salesforce.com rather than being logged in.

Why have these links stopped working?

  • 1
    Ah, I see now the www subdomain as opposed to the login subdomain. – bigassforce Mar 6 '16 at 20:21
6

I think this is still supported if you drop the login.jsp and put the query string after the slash:

https://login.salesforce.com/?un=daniel@example.com&pw=hunter12

Note to other readers wrapping the login process in this way, be VERY particular to use HTTPS!

  • 2
    Interesting, I didn't know the login.jsp part could be omitted. The note about https is definitely important. – Daniel Ballinger Mar 6 '16 at 21:14
4

I believe this is related to Knowledge Article 000229717 - www.salesforce.com API Endpoint Retirement.

Essentially, you need to use https://login.salesforce.com for production and developer edition orgs.

https://login.salesforce.com/login.jsp?pw={password}&un={username}


Since this will likely come up in the near future, I'm also liking to Knowledge Article - 000271648 Logging of Unencrypted Uniform Resource Identifiers (URI)

Salesforce is moving to eliminate the ability for customer credentials to be entered into URIs. Once the plan to retire this capability is finalized, we will share those details and timing with customers.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.