Skip to content

Re-enable DPoP pool server test; fix L1 user-agent marker expectation - #4143

Merged
wmathurin merged 1 commit into
forcedotcom:devfrom
wmathurin:dpop-pool-server-test
Aug 25, 2026
Merged

Re-enable DPoP pool server test; fix L1 user-agent marker expectation#4143
wmathurin merged 1 commit into
forcedotcom:devfrom
wmathurin:dpop-pool-server-test

Conversation

@wmathurin

Copy link
Copy Markdown
Contributor

Summary

  • W-23864247 is fixed server-side. The pool login server was previously rejecting valid dpop_jkt token exchanges with invalid_dpop_proof; the server fix is confirmed and the test is now re-enabled.
  • L1 marker fix. Pool server login routes through production login infrastructure (login.salesforce.com), so the user-agent carries the L1 (production) marker, not L4 (My Domain). Added a useLoginPoolHost: Bool = false parameter to the public assertRevokeAndRefreshWorks overload that selects kLoginServerProduction instead of kLoginServerMyDomain when true.
  • README updated. The test-table row for test_givenDPoP_whenLoginViaPoolServer_thenTokenTypeIsDPoP no longer notes a skip; updated to describe the expected behavior.

Changes

  • DPoPLoginTests.swift — removed XCTSkip block; passed useLoginPoolHost: true to assertRevokeAndRefreshWorks
  • BaseAuthFlowTester.swift — added useLoginPoolHost parameter; uses kLoginServerProduction (L1) when true
  • README.md — updated test-table row

Test plan

  • test_givenDPoP_whenLoginViaPoolServer_thenTokenTypeIsDPoP verified passing at 126.6s on iPhone 17 iOS 26.1 simulator
  • No other DPoP tests regressed (all other assertRevokeAndRefreshWorks callers pass useLoginPoolHost as false by default, so L4 behavior is unchanged)

W-23864247 (pool login server rejecting valid dpop_jkt) is fixed server-side.
Removes the XCTSkip, adds useLoginPoolHost param to assertRevokeAndRefreshWorks,
and uses kLoginServerProduction (L1) instead of kLoginServerMyDomain (L4) when
routing through the pool server. Updates the README test table accordingly.
@github-actions

Copy link
Copy Markdown
TestsPassed ☑️SkippedFailed ❌️
SalesforceSDKCore iOS ^18 Test Results1001 ran1000 ✅1 ❌
TestResult
SalesforceSDKCore iOS ^18 Test Results
SalesforceRestAPITests.testUploadProfilePhotoCommunity❌ failure

@sfdctaka sfdctaka left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@codecov

codecov Bot commented Aug 24, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 71.59%. Comparing base (1c2dd30) to head (e487661).
⚠️ Report is 6 commits behind head on dev.

Additional details and impacted files
@@            Coverage Diff             @@
##              dev    #4143      +/-   ##
==========================================
- Coverage   71.77%   71.59%   -0.18%     
==========================================
  Files         254      254              
  Lines       22804    22804              
==========================================
- Hits        16367    16327      -40     
- Misses       6437     6477      +40     
Components Coverage Δ
Analytics 70.78% <ø> (ø)
Common 70.79% <ø> (-0.19%) ⬇️
Core 67.32% <100.00%> (-0.26%) ⬇️
SmartStore 73.45% <ø> (ø)
MobileSync 88.84% <ø> (ø)
see 5 files with indirect coverage changes
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@wmathurin
wmathurin merged commit ada8024 into forcedotcom:dev Aug 25, 2026
22 of 24 checks passed
@github-actions

Copy link
Copy Markdown
TestsPassed ☑️Skipped ⚠️Failed ❌️
AuthFlowTester UI Test Results all109 ran73 ✅4 ⚠️32 ❌
TestResult
AuthFlowTester UI Test Results all
AuthFlowTesterUITests.xctest
LoginForAdminTests.testLoginForAdmin_WebServerFlowEnabled()❌ failure
MultiUserLoginTests.testFlagDiversity_BeaconNonHybridJwtVsHybridOpaque()❌ failure
MultiUserLoginTests.testAdvancedAuthUser_HasBWFlag_RegularAuthUser_DoesNot()❌ failure
MultiUserLoginTests.testBeaconAndNonBeacon_MultiUser()❌ failure
AdvancedAuthBeaconLoginTests.testBeaconJwt_SubsetScopes()❌ failure
AdvancedAuthBeaconLoginTests.testBeaconJwt_DefaultScopes()❌ failure
AdvancedAuthBeaconLoginTests.testBeaconOpaque_AllScopes()❌ failure
AdvancedAuthBeaconLoginTests.testBeaconOpaque_DefaultScopes()❌ failure
AdvancedAuthBeaconLoginTests.testBeaconOpaque_SubsetScopes()❌ failure
AdvancedAuthBeaconLoginTests.testBeaconJwt_AllScopes()❌ failure
WelcomeLoginTests.testWelcomeDiscovery_AdvancedAuthLoginHost_DynamicConfig()❌ failure
WelcomeLoginTests.testWelcomeDiscovery_AdvancedAuthLoginHost()❌ failure
RefreshTokenMigrationWithRestartTests.testMigrateCAToBeacon_WithRestart()❌ failure
RefreshTokenMigrationWithRestartTests.testMigrateBeaconScopeAddition_WithRestart()❌ failure
RefreshTokenMigrationWithRestartTests.testMigrateMultipleUsers_WithRestart()❌ failure
LoginWithRestartTests.testBeaconJwt_SubsetScopes_DynamicConfiguration_WithRestart()❌ failure
LoginWithRestartTests.testAdvancedAuth_WithRestart()❌ failure
LoginWithRestartTests.testBeaconOpaque_DefaultScopes_WithRestart()❌ failure
LoginWithRestartTests.testBeaconJwt_DefaultScopes_DynamicConfiguration_WithRestart()❌ failure
RefreshTokenMigrationTests.testMigrateCAToBeacon()❌ failure
RefreshTokenMigrationTests.testMigrateCAToBeaconAndBack()❌ failure
RefreshTokenMigrationTests.testFlagDiversity_MigratedBeaconJwtVsNonHybridOpaque()❌ failure
RefreshTokenMigrationTests.testMigrateBeaconToCA()❌ failure
RefreshTokenMigrationTests.testMigrateBeacon_AddMoreScopes()❌ failure
RefreshTokenMigrationTests.testMigrateBeaconOpaqueToJWTAndBack()❌ failure
RefreshTokenMigrationTests.testMigrateCAUserAgentToBeaconWebServer()❌ failure
BeaconLoginTests.testBeaconOpaque_SubsetScopes()❌ failure
BeaconLoginTests.testBeaconJwt_SubsetScopes()❌ failure
BeaconLoginTests.testBeaconJwt_DefaultScopes()❌ failure
BeaconLoginTests.testBeaconOpaque_AllScopes()❌ failure
BeaconLoginTests.testBeaconOpaque_DefaultScopes()❌ failure
BeaconLoginTests.testBeaconJwt_AllScopes()❌ failure

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants