The Appview for the kipclip.com atproto bookmarking service

Login fails on strict PDS #5

Closed rtw.run
Closed opened by rtw.run

Love the app, use it all the time to save things I find interesting. I recently started self-hosting my PDS using vlpds (github:jazware/vlpds). It's very strict in following the spec, and since I migrated I haven't been able to log in with the error:

Pushed Authorization Request failed: {"error":"invalid_dpop_proof","error_description":"DPoP proof required"}

I think the main issue is that you POST to /oauth/par with no DPoP header and only generate it later. Bluesky's reference PDS is pretty lenient, but it seems that vlpds is not (and vlpds is following the spec more closely.)

The fix looks to be generating a new key before the first post and then keeping it in state to be reused for the token exchange.

Yeah I think you're right, thanks for reporting this! With my eurosky pds hosted identity it did still work so I did not notice. Will look into this

Thanks for reporting this! The fix is deployed in Kipclip v0.28.7.

I verified that your PDS now accepts the pushed authorization request from production and Kipclip redirects to its authorization page. The regression test also verifies that the same DPoP key is used for token exchange.

Kipclip PR #32 · OAuth client PR #1

Sign up or Sign in to add to the discussion.