Skip to content

Commit 8ca9f43

Browse files
@W-16336722: [MSDK Android] QR Code Log In Using External QR Code Reader Does Not Display Main Activity (#2625)
1 parent a3d8d41 commit 8ca9f43

5 files changed

Lines changed: 204 additions & 122 deletions

File tree

libs/SalesforceSDK/src/com/salesforce/androidsdk/app/SalesforceSDKManager.kt

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,18 @@ open class SalesforceSDKManager protected constructor(
215215
*/
216216
val loginActivityClass: Class<out Activity> = nativeLoginActivity ?: webviewLoginActivityClass
217217

218+
/**
219+
* For Salesforce Identity API UI Bridge support, the overriding front door bridge URL to
220+
* use in place of the default initial login URL
221+
*/
222+
var frontDoorBridgeUrl: String? = null
223+
224+
/**
225+
* For Salesforce Identity API UI Bridge support, the overriding front door bridge URL's
226+
* optional web server flow code verifier
227+
*/
228+
var frontDoorBridgeCodeVerifier: String? = null
229+
218230
/** The class for the account switcher activity */
219231
var accountSwitcherActivityClass = AccountSwitcherActivity::class.java
220232

@@ -951,6 +963,9 @@ open class SalesforceSDKManager protected constructor(
951963

952964
val accountToLogout = account ?: clientMgr.account
953965

966+
frontDoorBridgeUrl = null
967+
frontDoorBridgeCodeVerifier = null
968+
954969
isLoggingOut = true
955970
val mgr = AccountManager.get(appContext)
956971
var refreshToken: String? = null

libs/SalesforceSDK/src/com/salesforce/androidsdk/rest/ClientManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ public void getRestClient(Activity activityContext, RestClientCallback restClien
103103
Account acc = getAccount();
104104
Bundle options = loginOptions.asBundle();
105105

106-
// No account found - let's add one - the AuthenticatorService add account method will start the login activity
106+
// No account found - let's add one - the AuthenticatorService add account method will start the login activity using either the default login URL or the Salesforce SDK manager's front door URL for Salesforce Identity API UI Bridge
107107
if (acc == null) {
108108
SalesforceSDKLogger.i(TAG, "No account of type " + accountType + " found");
109109
final Intent i = new Intent(activityContext,

0 commit comments

Comments
 (0)