Skip to content

Commit

Permalink
updated error description for invalid_client error (#141)
Browse files Browse the repository at this point in the history
* updated error description for invalid_client error
* AUT-1568 updated error message description for invalid_client error

---------

Co-authored-by: elenaschwan <[email protected]>
  • Loading branch information
ImogenCraigmile and elenaschwan authored Dec 21, 2023
1 parent 68e3862 commit 036d2c4
Showing 1 changed file with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -596,14 +596,13 @@ Content-Type: application/json
<td class="tg-0pky"><span style="font-weight:400;font-style:normal;text-decoration:none;color:#000;background-color:transparent">The request is missing a parameter so the server cannot proceed with the request. This error may also be returned if the request includes an unsupported parameter or repeats a parameter. </span><br><span style="font-weight:400;font-style:normal;text-decoration:none;color:#000;background-color:transparent">Review your parameters and check they are supported and not repeated.</span></td>
</tr>
<tr>
<td class="tg-0pky"><span style="font-weight:400;font-style:normal;text-decoration:none;color:#000;background-color:transparent">invalid_client</span></td>
<td class="tg-0pky"><span style="font-weight:400;font-style:normal;text-decoration:none;color:#000;background-color:transparent">Client authentication failed, which could be caused by the request containing an invalid client ID. </span><br><span style="font-weight:400;font-style:normal;text-decoration:none;color:#000;background-color:transparent">To resolve, check your client ID matches the client ID you had when you <a href="/before-integrating/manage-your-service-s-configuration/#register-your-service-to-use-gov-uk-one-login"><span>registered your service to use GOV.UK One Login</span></a>.
</span></td>
<td class="tg-0pky"><span style="font-weight:400;font-style:normal;text-decoration:none;color:#000;background-color:transparent">invalid_client</span></td>
<td class="tg-0pky"><span style="font-weight:400;font-style:normal;text-decoration:none;color:#000;background-color:transparent">Client authentication failed, which could be caused by the request containing an invalid <span style="font-weight:400;font-style:normal;text-decoration:none;color:#A71D5D;background-color:#F5F5F5">client_ID</span> or an issue in validating the signature of the <span style="font-weight:400;font-style:normal;text-decoration:none;color:#A71D5D;background-color:#F5F5F5">client_assertion</span>. </span><br><br><span style="font-weight:400;font-style:normal;text-decoration:none;color:#000;background-color:transparent">To resolve, check: </span><ul><li>your <span style="font-weight:400;font-style:normal;text-decoration:none;color:#A71D5D;background-color:#F5F5F5">client_ID</span> matches the <span style="font-weight:400;font-style:normal;text-decoration:none;color:#A71D5D;background-color:#F5F5F5">client_ID</span> you had when you <a href="/before-integrating/manage-your-service-s-configuration/#register-your-service-to-use-gov-uk-one-login"><span>registered your service to use GOV.UK One Login</span></a></li><li>you have signed your <span style="font-weight:400;font-style:normal;text-decoration:none;color:#A71D5D;background-color:#F5F5F5">client_assertion</span> JWT with the private key generated when you <a href="/before-integrating/manage-your-service-s-configuration/#register-your-service-to-use-gov-uk-one-login"><span>registered your service to use GOV.UK One Login</span></a></li><li>your service uses a <a href="https://oidc.account.gov.uk/.well-known/openid-configuration"><span>key signing algorithm which GOV.UK One Login supports</span></a></li></ul></td>
</tr>
<tr>
<td class="tg-0pky"><span style="font-weight:400;font-style:normal;text-decoration:none;color:#000;background-color:transparent">invalid_grant</span></td>
<td class="tg-0pky"><span style="font-weight:400;font-style:normal;text-decoration:none;color:#000;background-color:transparent">The authorisation code is invalid or expired. This is also the error which would return if the redirect URL given in the authorisation request does not match the URL provided in this access token request.</span></td>
</tr>
<td class="tg-0pky"><span style="font-weight:400;font-style:normal;text-decoration:none;color:#000;background-color:transparent">invalid_grant</span></td>
<td class="tg-0pky"><span style="font-weight:400;font-style:normal;text-decoration:none;color:#000;background-color:transparent">The authorisation code is invalid or expired. This is also the error which would return if the redirect URL given in the authorisation request does not match the URL provided in this access token request.</span></td>
</tr>
<tr>
<td class="tg-0pky"><span style="font-weight:400;font-style:normal;text-decoration:none;color:#000;background-color:transparent">unauthorized_client</span></td>
<td class="tg-0pky"><span style="font-weight:400;font-style:normal;text-decoration:none;color:#000;background-color:transparent">The application is successfully authenticated, but it's not registered to use the requested <a href="https://oauth.net/2/grant-types/"><span>grant type</span></a>.
Expand Down Expand Up @@ -686,7 +685,7 @@ Content-Type: application/json
</tr>
<tr>
<td class="tg-0pky"><span style="font-weight:400;font-style:normal;text-decoration:none;color:#000;background-color:transparent">invalid_client</span></td>
<td class="tg-0pky"><span style="font-weight:400;font-style:normal;text-decoration:none;color:#000;background-color:transparent">Client authentication failed, which could be caused by the request containing an invalid client ID. </span><br><span style="font-weight:400;font-style:normal;text-decoration:none;color:#000;background-color:transparent">To resolve, check your client ID matches the client ID you had when you <a href="/before-integrating/manage-your-service-s-configuration/#register-your-service-to-use-gov-uk-one-login"><span>registered your service to use GOV.UK One Login</span></a>.
<td class="tg-0pky"><span style="font-weight:400;font-style:normal;text-decoration:none;color:#000;background-color:transparent">Client authentication failed, which could be caused by the request containing an invalid <span style="font-weight:400;font-style:normal;text-decoration:none;color:#A71D5D;background-color:#F5F5F5">client_ID</span> or an issue in validating the signature of the <span style="font-weight:400;font-style:normal;text-decoration:none;color:#A71D5D;background-color:#F5F5F5">client_assertion</span>. </span><br><br><span style="font-weight:400;font-style:normal;text-decoration:none;color:#000;background-color:transparent">To resolve, check: </span><ul><li>your <span style="font-weight:400;font-style:normal;text-decoration:none;color:#A71D5D;background-color:#F5F5F5">client_ID</span> matches the <span style="font-weight:400;font-style:normal;text-decoration:none;color:#A71D5D;background-color:#F5F5F5">client_ID</span> you had when you <a href="/before-integrating/manage-your-service-s-configuration/#register-your-service-to-use-gov-uk-one-login"><span>registered your service to use GOV.UK One Login</span></a></li><li>you have signed your <span style="font-weight:400;font-style:normal;text-decoration:none;color:#A71D5D;background-color:#F5F5F5">client_assertion</span> JWT with the private key generated when you <a href="/before-integrating/manage-your-service-s-configuration/#register-your-service-to-use-gov-uk-one-login"><span>registered your service to use GOV.UK One Login</span></a></li><li>your service uses a <a href="https://oidc.account.gov.uk/.well-known/openid-configuration"><span>key signing algorithm which GOV.UK One Login supports</span></a></li></ul></td>
</span></td>
</tr>
<tr>
Expand Down

0 comments on commit 036d2c4

Please sign in to comment.