forcedotcom/SalesforceMobileSDK-iOS — pull request #118 by khawkins (2012-09-10 23:49:01+00:00)
Title: Offline-friendly native authentication workflow

What I thought would be simple turned into heart surgery. But this should provide for a much easier authentication management paradigm, across native and hybrid. At a high level.

- Authentication management all happens through one place now: `SFAccountManager`. No one else owns an SFOAuthCoordinator anymore.

- In addition to the actual credentials being persisted across app launches, credentials configuration data (instanceUrl, login domain, etc.) is persisted now too, and as such will be available regardless of authentication state, presuming it was ever populated.

- The original intent: in native apps, if refresh authentication fails due to being offline, it's just quietly logged, and the app moves on. At this point, if the app is offline and the user has no credentials, it will still generate an error dialog right away; support for deferred authentication will be in a future release.