Improved error messaging on failed authentication with Client Identifier #1604
Labels
difficulty:low
effort:medium
☀️ enhancement
New feature or request
good first issue
Good for newcomers
Feature description
It would be useful to have better error messaging around some cases when authentication fails due to the contents of the Client Identifier Document. The particular error that I found confusing was when I tried (incorrectly) to use a the following Client Id Document containing relative URIs:
The error message I receive is "The client registration
client_id
field must match the client WebID"; which is a little confusing when they do match so far as the json-ld spec is concerned. For those kinds if error messages I think anisValidUri
check should be applied first and the error message should indicate whether theclient_id
field contains an absolute uri and note that one is required.This should be done for all other fields that required absolute URIs (which I believe are all of them so far as the spec is concerned).
The text was updated successfully, but these errors were encountered: