UiPath.IdentityServer.Web.Controllers.UI.ErrorController Got An IS4 Error With Id "xx", Details: {"Error":"unauthorized_client", "ErrorDescription":"Unknown Client Or Client Not Enabled", "RequestId":"xx", "ClientId":"xx"}

Error fix for " UiPath.IdentityServer.Web.Controllers.UI.ErrorController Got an IS4 error with id "xx", details: {"Error":"unauthorized_client", "ErrorDescription":"Unknown client or client not enabled", "RequestId":"xx", "ClientId":"xx"} " .

  1. Log into the SQL database and right click on the identity.Clients table
  2. Click on Select TOP 1000
  3. Note down the clientID for ClientName Orchestrator.S2S and Orchestrator.OpenID
  4. Open the Orchestrator UiPath.Orchestrator.dll.config(2020.10) or web.config file(2020.4) in a text document and verify the following:
    1. The key IdentityServer.Integration.ClientId value matches the Orchestrator.S2S clientId from the database. If it does not, copy the database value into the orchestrator.dll.config/web.config
    2. The key IdentityServer.OpenIdConnect.ClientId value matches the Orchestrator.OpenId clientId from the database. If it does not, copy the database value into the uipath.orchestrator.dll.config/web.config
    3. Verify IdentityServer.Integration.ClientSecret value as well in the uipath.orchestrator.dll.config/web.config file
    4. Verify ExternalAuth.System.OpenIdConnect.ClientSecret value as well in the uipath.orchestrator.dll.config/web.config file
  5. The value from [identity].[ClientSecrets] is a hashed value of the configuration one
    image.png
    Copy the configuration value and rehash it using
    https://cryptii.com/pipes/fpEyXg
  6. Perform iisreset and reload the Orchestrator website
  7. Update the value from the right side in the [identity].[ClientSecrets] and the affected functionality should start working.
  8. In case of connecting robots, the robots will need to be recreated for the Secret to reseed.