<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
0D54z000079jVRWCA2Okta Classic EngineAuthenticationAnswered2024-03-25T07:20:42.000Z2021-09-07T14:44:56.000Z2022-03-25T15:04:22.000Z

ShubhamG.37457 (Customer) asked a question.

Okta Oauth SDk Error

Can anyone help me with this- how we can resolve Okta Oauth Sdk error- "invalid_client - The client does not have a JWKSet configured, but the client_assertion requires one."

The same thing was working before, but now getting this error.

 

Please help, this is urgent.


  • urbuc (urbuc)

    I had the same problem and it was resolved when my Okta team gave me the correct Client ID.

    For some reason the old Client still works when calling the APIs with a JWT/Token so that doesn't make sense, but this config works for the Okta Client:

     

          _oktaClient = new OktaClient(new OktaClientConfiguration

          {

            OktaDomain = ConfigurationManager.AppSettings["OktaUri"],

            AuthorizationMode = AuthorizationMode.PrivateKey,

            PrivateKey = new JsonWebKeyConfiguration

            {

              P = "5pz...",

              Kty = "RSA",

              Q = "xpP...",

              D = "Wh..",

              E = "A..",

              Kid = "ZGx...",

              Qi = "gA9...",

              Dp = "YcU...",

              Dq = "Yq5y...",

              N = "suK..."

            },

            ClientId = "0oa....",

            Scopes = new List<string>

            {

              "okta.users.read"

            }

          });

    Expand Post
This question is closed.
Loading
Okta Oauth SDk Error