I have an IdentityServer4 application running with ASP.NET Identity. I want to use that so users from another application can login through my remote identity server.
<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.
2 Things to note for this issue:
Example:
Secret secret = new Secret("secret".Sha256(), "Description");
secret.Type = "SharedSecret";