-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
URL query parameters do not get removed in htu field #1842
Labels
bug
Something isn't working
Comments
Thanks for reporting @joachimvh , we'll fix this soon. |
Any news? |
diegoaraujo
added a commit
to diegoaraujo/solid-client-authn-js
that referenced
this issue
Jan 25, 2022
diegoaraujo
added a commit
to diegoaraujo/solid-client-authn-js
that referenced
this issue
Jan 25, 2022
3 tasks
NSeydoux
pushed a commit
that referenced
this issue
Jan 26, 2022
NSeydoux
added a commit
that referenced
this issue
Jan 26, 2022
This fixes issue #1842. The HTU field is now build by addition rather than by substraction: the origin and path from the target URL are concatenated to build the DPoP header `htu` claim, rather than stripping elements from the target URL. Co-authored-by: Diego Albuquerque <[email protected]>
This was released in 1.11.4 and onwards, sorry we didn't follow up properly on this. We've also just done a fix for the Closing as this is done. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Search terms you've used
htu
Impacted package
Which packages do you think might be impacted by the bug ?
Bug description
The
htu
field of the access token is generated here. Actual code of the removeHashUsernameAndPassword function is as follows:The issue is that the above code does not clear the query parameters of the URL.
http://example.com/?query
remains unchanged after going through that function, but thehtu
parameter is defined asTo Reproduce
See CommunitySolidServer/Recipes#3
Or just run the code above with any URL containing a query parameter.
Expected result
htu: http://example.com/
Actual result
htu: http://example.com/?query
The text was updated successfully, but these errors were encountered: