An easy-to-host PDS on the ATProtocol, iPhone and MacOS. Maintain control of your keys and data, always.
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

test: fix nonce_retry mock to include use_dpop_nonce body (C2 followup)

The nonce_retry_sends_exactly_two_requests test was failing because the mock
returned a bare 400+DPoP-Nonce with no JSON body. After the C2 fix, execute_with_retry
checks the response body for {"error":"use_dpop_nonce"} before retrying; empty body
caused the code to return Err(NotAuthenticated) instead of triggering the retry.

authored by

Malpercio and committed by
Tangled
61866af9 d3aa9501

+3 -1
+3 -1
apps/identity-wallet/src-tauri/src/oauth_client.rs
··· 392 392 393 393 let mock = server.mock(|when, then| { 394 394 when.method(GET).path("/resource"); 395 - then.status(400).header("DPoP-Nonce", "test-server-nonce"); 395 + then.status(400) 396 + .header("DPoP-Nonce", "test-server-nonce") 397 + .json_body(serde_json::json!({"error": "use_dpop_nonce"})); 396 398 }); 397 399 398 400 let keypair = DPoPKeypair::get_or_create().expect("keypair must exist");