Skip to content

Commit 5be3d80

Browse files
@W-21933885: [MSDK Android] App Attestation Implementation (Adapt To Refactored Salesforce Org)
1 parent 082b018 commit 5be3d80

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -789,7 +789,9 @@ open class SalesforceSDKManager protected constructor(
789789
}
790790
return OAuthAuthorizationAttestation(
791791
attestationId = deviceId,
792-
integrityToken = googlePlayIntegrityTask.getResult().token()
792+
attestationData = Base64.getEncoder().encodeToString(
793+
googlePlayIntegrityTask.getResult().token().encodeToByteArray()
794+
)
793795
).toBase64String()
794796
}
795797

@@ -798,12 +800,12 @@ open class SalesforceSDKManager protected constructor(
798800
* @param attestationId The attestation id used when creating the Salesforce
799801
* Mobile App Attestation API Challenge. This is intended to be the
800802
* Salesforce Mobile SDK device id
801-
* @param integrityToken The token provided by the Google Play Integrity API
803+
* @param attestationData The token provided by the Google Play Integrity API
802804
*/
803805
@Serializable
804806
internal data class OAuthAuthorizationAttestation(
805807
val attestationId: String,
806-
val integrityToken: String,
808+
val attestationData: String,
807809
) {
808810

809811
/**

0 commit comments

Comments
 (0)