Invalid_client using OpenIdConnect in client application
ClientSecret should contain the unencrypted value. Take a look at the documentation.
In your case secret.
options.ClientSecret = "secret";
I didn't look further, so if this change doesn't solve it then please let me know.
Please check Client Configuration (clientId), If it matches given client configuration or not.
In my case, issue was related with secret.
2 Things to note for secret issue:
- In the client application ,'ClientSecret' should be the 'unencryptedvalue' - plaintext.('secret' in following example)
- While doing the configuration for all clients, in identity server, please check the secret.Type, it should be 'SharedSecret'.
Example:
Secret secret = new Secret("secret".Sha256(), "Description");
secret.Type = "SharedSecret";