Take the 2-minute tour ×
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It's 100% free, no registration required.

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 at 21:38

1 Answer 1

up vote 10 down vote accepted

Use prompt=login - see the Digging Deeper article.

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

Your Answer

 
discard

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.