Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removing auth 'concurrency' checks. #51

Merged
merged 1 commit into from
Apr 10, 2012

Conversation

khawkins
Copy link
Contributor

Originally, the OAuth plugin was guarding against the idea of concurrent authentication requests, and raising a fatal error if authentication was attempted when a previous authentication was already in progress. Problem is, there could be any number of scenarios where previous authentication did not complete, such as switching to another login host, losing network connectivity before completing authentication, etc.

Given that authentication concurrency is not nearly as much of an issue as these other "bad app state" scenarios, the code has been updated to remove the check, and simply clean up any previous authentication that might have been in progress.

Originally, the OAuth plugin was guarding against the idea of concurrent authentication requests, and raising a fatal error if authentication was attempted when a previous authentication was already in progress.  Problem is, there could be any number of scenarios where previous authentication did not complete, such as switching to another login host, losing network connectivity before completing authentication, etc.

Given that authentication concurrency is not nearly as much of an issue as these other "bad app state" scenarios, the code has been updated to remove the check, and simply clean up any previous authentication that might have been in progress.
@wmathurin
Copy link
Contributor

Looks fine to me.

tstellanova-sfdc added a commit that referenced this pull request Apr 10, 2012
@tstellanova-sfdc tstellanova-sfdc merged commit 2d758a8 into master Apr 10, 2012
khawkins added a commit that referenced this pull request Jun 14, 2012
khawkins added a commit to khawkins/SalesforceMobileSDK-iOS that referenced this pull request Feb 26, 2014
Merging community into SalesforceMobileSDK repo
mneubrand-sfdc pushed a commit to mneubrand-sfdc/SalesforceMobileSDK-iOS that referenced this pull request Feb 6, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants