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
{{ message }}
Repository navigation
Resource requests to the Enterprise Solid Server: Getting 400, Bad Request #5
I'm trying to make resource requests of the Enterprise Solid Server. I have this working (with the different relevant credentials) for the NSS (e.g., with https://crspybits.solidcommunity.net), but I'm getting 400 http responses and "Bad Request" from the ESS.
I'm able to successfully use /token requests with the ESS to refresh my access token.
I'm attempting to create a new directory/container, and upload a file. In the request below, the access token was successfully refreshed immediately before.
I'm noticing that the DPoP is supposed to have a ath claim:
"ath": hash of the access token (REQUIRED). The value MUST be the
result of a base64url encoding (with no padding) the SHA-256 hash
of the ASCII encoding of the associated access token's value.
"Also, DPoP is opt-in for apps (like with PKCE). As such, it is highly recommended but not required in all circumstances. If you are unsure whether to use DPoP in your authentication flows, then please use DPoP." (see https://forum.solidproject.org/t/the-use-of-dpop-in-the-token-endpoint/4664/8?u=crspybits). I wonder if this indicates that ESS does support DPoP headers, but somehow I'm getting them wrong and it's failing?
Activity
crspybits commentedon Sep 25, 2021
I'm noticing that the DPoP is supposed to have a
athclaim:"ath": hash of the access token (REQUIRED). The value MUST be the
result of a base64url encoding (with no padding) the SHA-256 hash
of the ASCII encoding of the associated access token's value.
https://datatracker.ietf.org/doc/html/draft-ietf-oauth-dpop-03#section-4.3
I see an
athclaim referenced here too: https://github.com/solid/access-token-verifiercrspybits commentedon Sep 25, 2021
https://github.com/arkku/Base64URLEncoding-Swift
crspybits commentedon Sep 25, 2021
This is also here: https://forum.solidproject.org/t/resource-requests-to-the-enterprise-solid-server-getting-400-bad-request/4690/4
crspybits commentedon Sep 26, 2021
From NoelDeMartin/media-kraken#9 (comment) it sounds like there's no way to know if a DPoP (header?) can be used with a server.
"Also, DPoP is opt-in for apps (like with PKCE). As such, it is highly recommended but not required in all circumstances. If you are unsure whether to use DPoP in your authentication flows, then please use DPoP." (see https://forum.solidproject.org/t/the-use-of-dpop-in-the-token-endpoint/4664/8?u=crspybits). I wonder if this indicates that ESS does support DPoP headers, but somehow I'm getting them wrong and it's failing?