Skip to content

Commit b6c4354

Browse files
@W-21933885: [MSDK Android] App Attestation Implementation (Add Code Review Clarification Regarding Attestation Parameter Encoding)
1 parent 484e620 commit b6c4354

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

  • libs/SalesforceSDK/src/com/salesforce/androidsdk/auth

libs/SalesforceSDK/src/com/salesforce/androidsdk/auth/OAuth2.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -583,6 +583,11 @@ public static TokenEndpointResponse makeTokenEndpointRequest(HttpAccess httpAcce
583583
final String challenge = appAttestationClient != null ? appAttestationClient.fetchMobileAppAttestationChallenge() : null;
584584
final String attestationValue = challenge != null ? appAttestationClient.createAppAttestationBlocking(challenge) : null;
585585
if (attestationValue != null) {
586+
// Note: The attestation value is appended to the token endpoint
587+
// query string without Uri.encode by design. The value produced
588+
// by OAuthAuthorizationAttestation.toBase64String() is accepted
589+
// as-is by the Salesforce token endpoint's server-side contract.
590+
// This has been verified end-to-end; do not wrap in Uri.encode.
586591
sb.append(AND).append(ATTESTATION).append(EQUAL).append(attestationValue);
587592
}
588593

0 commit comments

Comments
 (0)