You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -229,29 +228,40 @@ open class SalesforceSDKManager protected constructor(
229
228
val loginActivityClass:Class<outActivity> = nativeLoginActivity ?: webViewLoginActivityClass
230
229
231
230
/**
232
-
* The Google Cloud Project ID used to for the client implementation of the
233
-
* Salesforce App Attestation External Client App Plugin. When using App
231
+
* The client side implementation of the Salesforce App Attestation External
232
+
* Client App Plugin or null with app attestation is disabled.
233
+
*/
234
+
var appAttestationClient:AppAttestationClient?=null
235
+
236
+
/**
237
+
* Updates the Salesforce App Attestation ECA Plugin Client for the selected
238
+
* login server and matching Google Cloud Project ID. When using App
234
239
* Attestation, this value must match the linked Google Cloud Project ID
235
240
* for the app in Google Play Console's Play Integrity API and provided to
236
241
* the Salesforce App Attestation External Client App Plugin.
237
242
*
238
-
* When null, App Attestation and Google Play Integrity will be ignored by
239
-
* the Salesforce Mobile SDK.
240
-
*/
241
-
var appAttestationGoogleCloudProjectId:Long?=null
242
-
set(value) {
243
-
field = value
244
-
245
-
val loginHost = loginServerManager.selectedLoginServer?.url?.toUri()?.host
246
-
if (loginHost ==null) {
247
-
w(javaClass.name, "Cannot initialize Salesforce App Attestation Client since the selected login server URL doesn't have a host. Authentication may malfunction.")
248
-
return
249
-
}
243
+
* @param selectedLoginServerHost The selected login server configured with
244
+
* the Salesforce App Attestation ECA Plugin
245
+
* @param googleCloudProjectId The Google Cloud Project ID or null to
246
+
* disable Salesforce App Attestation
247
+
*/
248
+
funupdateAppAttestationClient(
249
+
selectedLoginServerHost:String,
250
+
googleCloudProjectId:Long? = null
251
+
) {
252
+
// TODO: Needs Coverage x4. ECJ20260417
253
+
// val loginHost = selectedLoginServer.url.toUri().host
254
+
// TODO: Needs Coverage x1. ECJ20260417
255
+
// if (loginHost == null) {
256
+
// w(javaClass.name, "Cannot initialize Salesforce App Attestation Client since the selected login server URL doesn't have a host. Authentication may malfunction.")
0 commit comments