Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

We're trying to override the auto-authenticate behavior when kicking off a web server flow in the REST API. Basically, we need to let a user authenticate and capture OAuth tokens to several Salesforce orgs in one session.

The problem is, once they authenticate to one org, the next time we redirect them to authenticate to another, they are re-authenticated automatically to the original org. We need to bring them to the login page each time in order to allow them to authenticate to multiple orgs.

In reading the docs, there doesn't seem to be a url param that will do it. I was hopeful that the immediate flag would accomplish this but it doesn't.

Is there a way to force a login during each flow?

share|improve this question
Check out the Summer '14 release notes for 'Specify an Authorization Endpoint as a Request Parameter' – greenstork Jun 30 '14 at 21:38
up vote 10 down vote accepted

Use prompt=login - see the Digging Deeper article.

share|improve this answer
Yup, that does it. Google took me to some out-dated docs… – Kevin O'Hara Jun 30 '14 at 21:42
Filed a doc bug to fix that! – metadaddy Jul 1 '14 at 0:32

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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