OAuth 2.0 Web Server Flow
Prior to Mobile SDK 11.0, an intermediary authorization screen prompts the user to approve or deny the authorization request on each login attempt. With the upgrade to Web Server Flow in 11.0, this screen is shown only the first time a user authorizes the connected app (assuming the app is configured to allow the user to self-authorize). This behavior change is unlikely to impact day-to-day use, but it could impact areas such as automated tests, should they be written to anticipate this intermediary screen in the login flow.
For more information on using Web Server Flow, visit OAuth 2.0 Web Server Flow for Web App Integration.
Opting Out for User-Agent Flow
To opt out of your Web Server Flow in Mobile SDK 11.0 and on, you can revert to User-Agent Flow in the SalesforceSDKManager.
- Android
-
1SalesforceSDKManager.getInstance().setUseWebServerAuthentication(false) - iOS
- Swift
-
1SalesforceManager.shared.useWebServerAuthentication = false - Objective-C
-
1[SalesforceSDKManager sharedManager].useWebServerAuthentication = NO;