I'm trying to go through an oauth flow with my malpercio.dev account. I am getting an…
- User
I'm trying to go through an oauth flow with my malpercio.dev account. I am getting an error "your server rejected the approval the signature could not be verified against your identity's current keys. nothing was granted" what happened?
Assistant
I'll dig into this. The error message is from your own PDS (Custos), so let me find where it's generated and what check is failing.
Assistant
zsh ate the globs — quoting them:
Assistant
That message is the wallet's rendering of a specific server rejection. Let me trace it end to end.
Assistant
Now the key question — what the server accepts as a valid signer. Let me check both sides and the actual DID.
Assistant
Let me gather actual evidence about this specific account rather than guess.
Assistant
The published document is fine — exactly one
#devicekey. So the rejection is elsewhere. Two candidates remain, and one is directly probeable:Assistant
Now I have the decisive facts. Let me compare Custos's cached copy against the live document:
Assistant
Cached and live agree — the document is clean. So let me trace every path that produces this exact error. One of them looks suspicious:
Assistant
Found it.
login_hintis stored verbatim and unresolved. Let me confirm the full path:Assistant
- User
ah ha. it did indeed show
malpercio.devprefilled. when I went back to the site (rpg.actor) and instead input my did, that was prefilled into the input, and then I was able to log in successfully. I think 2 sounds like the right answer Assistant
Confirmed empirically — that's the bug, and your DID-input workaround is exactly the shape the check demands. Before I write anything, I need to check one assumption I made too casually: I claimed option 2 costs no network call. Let me verify what's actually reachable at that point in the handler.
Assistant
Good — everything I need is already on the authoritative path.
CurrentPlcState.also_known_asexists, andweb_authorityalready holds the live document. Let me load the house style before writing Rust.Assistant
Now let me read the existing test scaffolding so the regression test reuses it rather than inventing new helpers.
Assistant
The test scaffolding is a perfect fit —
setupalready inserts ahandlesrow andmount_audit_logalready assertsat://owner.example.com. One last thing the predicate will need:Assistant
Everything checks out. Now let me build the plumbing.
Assistant
Now the predicate itself. First let me confirm how the resolution chain reports a transient failure — that determines the error policy.
Assistant
Confirmed: a DNS outage falls through and yields
Ok(None), not an error. That shapes the policy. Now the predicate:Assistant
That normalization chain is convoluted — let me write it properly:
Assistant
Now the regression tests. Let me model them on the existing successful-approval test:
Assistant
Now the regression tests:
Assistant
Now let me verify it compiles. Per this repo's worktree constraints, cargo runs via the main checkout's devenv:
Assistant
That checked the main checkout, not my worktree — I need to
cdinside the shell:Assistant
I keep sending the same command — let me actually put the
cdinside the shell script:Assistant
I've sent the same command three times without the
cdtaking effect. Let me use--manifest-pathinstead, which sidesteps cwd entirely:Assistant
Compiles clean against the worktree. Now the tests:
Assistant
All 12 pass. But a passing test proves nothing unless it fails without the fix — let me confirm these tests are actually load-bearing:
Assistant
Exactly your production symptom reproduced —
401where200belongs. The two binding tests fail without the fix; the three rejection tests still pass. Reverting the temporary change:Assistant
Now the rest of the gate. Let me check the changelog convention while clippy and the full suite run:
Assistant
Clippy is clean. Now the changelog fragment (CI-gated for this surface), formatting, and the full suite:
Assistant
Now the full PDS suite to make sure nothing else depended on the old behaviour:
Assistant
2283 passed, 0 failed. Let me run the fast repo gates that touch this surface:
Assistant
- User
Please commit and open a pr
Assistant
Committed and opened: malpercio-dev/ezpds#475
Commit
c9529bc8onclaude/oauth-signature-verification-086959— 3 files, +212/−12:- authority.rs —
AuthoritySetcarries the asserted handles alongside the keys, from the same authoritative fetch both branches already did - oauth_consent.rs —
hint_binds_account, the binding moved from step 3 to step 6, four tests changelog.d/oauth-consent-login-hint.fixed.md
The PR body carries the full diagnosis — the misleading error path, the empirical confirmation from your retry, why the check moved past , and the DNS-outage residual — so a reviewer doesn't have to reconstruct it.
- authority.rs —
- User
Coderabbit requested changes
Assistant
Two actionable threads. Let me verify the correctness claim before accepting it — CodeRabbit is confident but not always right.
Assistant
Both claims check out — "Obsign" is the established convention (14 uses in CHANGELOG). Let me prove the case bug with a failing test before fixing it.
Assistant
CodeRabbit is right —
401where200belongs, the same bug class on the other side of the comparison. Applying the fix:Assistant
Now the changelog wording — "Obsign", not "the wallet":
Assistant
Clippy clean, 2284 passing (one more than before). Committing and pushing:
Assistant
Both threads resolved. Let me confirm the state:
Assistant
CodeRabbit flipped to APPROVED. Both threads addressed, replied to, and resolved in
c1be69f1.