Invalid_client using OpenIdConnect in client application

前端 未结 2 779
旧时难觅i
旧时难觅i 2021-01-18 05:00

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.

<
相关标签:
2条回答
  • 2021-01-18 05:32

    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.

    0 讨论(0)
  • 2021-01-18 05:37

    2 Things to note for this issue:

    1. In the client application ,'ClientSecret' should be the 'unencryptedvalue' - plaintext.('secret' in following example)
    2. 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";
    
    0 讨论(0)
提交回复
热议问题