How to solve the Duende.IdentityServer.Validation.ClientSecretValidator Client secret validation failed for client: xxxxxx when using migration tool?
Error Details:
The error indicates that the Client Secret provided in the Orchestrator configuration does not match the hashed value stored in the database. This discrepancy prevents successful client secret validation.
Resolution:
Verify and update the Client Secret in the database to match the one configured in orchestrator.dll.config.
Follow these steps:
- Retrieve the Hashed Value:
- Perform the following SQL query to retrieve the hashed value of the Client Secret:
DECLARE @secret varchar(MAX) = 'your_actual_client_secret'; SELECT HASHBYTES('SHA2_256', @secret) AS 'HashedSecret' FOR XML PATH('');
- Replace 'your_actual_client_secret' with the Client Secret value configured in Orchestrator.dll.config.
- Update the Database ( Take a backup of your database before making any changes):
- Compare the retrieved hashed value with the one stored in the database
- If they do not match, update the database entry to reflect the correct hashed value.
- Restart the migration tool.