<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
0D54z00007lNRadCAGOkta Classic EngineIntegrationsAnswered2022-06-24T23:13:49.000Z2022-06-24T04:39:13.000Z2022-06-24T23:13:49.000Z
'Error while resolving signing key for kid' when verifying access token (Only has problem in prod env)

Hi, 

 

I have encountered a very strange problem. Our api will verify the access token through the verifyAccessToken() method. There is no problem in the non-production environment, but only has problem in the production environment, and there is an error 'Error while resolving signing key' for kid "y3DN20TeyaguPUPdd7behG24NUU_CbChPngb854NIQ8".

 

I spent several days investigating various possibilities, but I still didn't get any results, so I posted this question in the community, I hope you can give me some ideas, the following is the investigation I conducted:

 

1.Check if the kid in error message is exist in OKTA auth server keys list (https://xxxx.okta.com/oauth2/default/v1/keys). Result is: No problem, the kid is exist in keys list.

 

2.Use the OKTA configuration used in the production environment (including: CLIENT_ID, ISSUER) in the local and QA. Result is: After used same configurations and testing, there is no problem with the local and QA, indicating that the configuration of the OKTA production environment is no problem.

 

3.Verify access token in JWT.IO. Result is: Token passed verification, from decode result, the infos are correct.

 

Thank you very much!


This question is closed.
Loading
'Error while resolving signing key for kid' when verifying access token (Only has problem in prod env)