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
I actually get the same result with both localhost and the hosted version. The only difference is if curl or the browser is used. The funny thing is the text error string is (sort of) expected, but I'm not sure why JSON is returned when using curl. Would have to look into it deeper.
But as you can see it is hardcoded to use text/plain there (which we don't have a converter to but causes the backup error handler to be called). We actually want to parse the accept header there (again) so we can set the correct content type. Probably the reason #764 is still open.
Activity
jvherweg commentedon Oct 29, 2021
I actually get the same result with both localhost and the hosted version. The only difference is if curl or the browser is used. The funny thing is the text error string is (sort of) expected, but I'm not sure why JSON is returned when using curl. Would have to look into it deeper.
The reason I always expected text is because the IDP component sends all requests for which it doesn't have a handler matching the path to the OIDC component. So at that point that component is responsible for the error handling. We have inserted some of our code in a callback it provides in such cases: https://github.com/solid/community-server/blob/b42150cf52212ff2d6ba76e0db78faf71b10db89/src/identity/configuration/IdentityProviderFactory.ts#L251-L256
But as you can see it is hardcoded to use
text/plainthere (which we don't have a converter to but causes the backup error handler to be called). We actually want to parse the accept header there (again) so we can set the correct content type. Probably the reason #764 is still open.jvherweg commentedon Oct 29, 2021
Also #810
jvherweg commentedon Jun 10, 2022
Has been fixed as part of #1314.