You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to send the authorization to an url that contains query params the DPoP verification fails with the following message: [DPoPWebIdExtractor] {Primary} warn: Error verifying WebID via DPoP-bound access token: The DPoP proof htu parameter must be the HTTP request URI without query and fragment parts.
As far as I understand, the htu url is not allowed to contain any query or fragment parts as defined in RFC 9449 section 4.2 .
I noticed that the request url just gets handed through until create_dpop_header in dpop_utils.py. I think it would make sense to remove the query parts there.
I used your code suggestion and applied it here (changing None to an empty string, because the type system required a str): e208e4e
The added test case succeeds when removing the query and fails when keeping the query, so it looks good. If you want, you can test it before I publish the package.
I would try to make a new version next week and publish it to pypi.
Hi,
When trying to send the authorization to an url that contains query params the DPoP verification fails with the following message:
[DPoPWebIdExtractor] {Primary} warn: Error verifying WebID via DPoP-bound access token: The DPoP proof htu parameter must be the HTTP request URI without query and fragment parts.
As far as I understand, the htu url is not allowed to contain any query or fragment parts as defined in RFC 9449 section 4.2 .
I noticed that the request url just gets handed through until create_dpop_header in dpop_utils.py. I think it would make sense to remove the query parts there.
Something like this:
The text was updated successfully, but these errors were encountered: