<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
0D51Y00008pcujeSAAOkta Classic EngineIntegrationsAnswered2024-04-16T11:51:37.000Z2020-06-30T17:53:03.000Z2020-08-05T20:48:17.000Z

znm48 (znm48) asked a question.

Error while resolving signing key for kid

Hi

I am using Okta Angular Singin Widget and NodeJS backend with Okta Jwt Verifier to authenticate user to the backend.

The whole workflow works perfectly fine in my localhost where a user logs in using Signin Widget and make a backend call with id_token (Bearer). on the backend Okta Jwt verifier successfully verifies it.

However in the dev environment i am getting this error "Error while resolving signing key for kid <<token>>" and i am not sure what the problem is.

I have both urls added as trusted origin, and issuer is same in both backend & frontend.

 

Angular Signinwidget:

this.signIn = new OktaSignIn({

baseUrl: environment.oktaConfig.issuer.split('/oauth2')[0], // just the BASE URL https://dev-xxx.okta.com

clientId: environment.oktaConfig.clientId,

redirectUri: environment.oktaConfig.redirectUri,

authParams: {

pkce: environment.oktaConfig.pkce,

responseMode: 'query',

issuer: environment.oktaConfig.issuer, // Complete URL with auth server i.e. http://dev-xx.okta.com/oauth2/default

display: 'page',

scopes: environment.oktaConfig.scopes,

tokenManager: environment.oktaConfig.tokenManager

},

})

 

Backend:

const OKTA_JWT_VERIFIER = new OktaJwt({

issuer: config.oktaConfig.issuer, // Complete URL with auth server i.e. http://dev-xx.okta.com/oauth2/default

clientId: config.oktaConfig.clientId,

url: config.oktaConfig.issuer.split('/oauth2')[0]

});

const OKTA_AUDIENCE = config.oktaConfig.audience; // api://default

 


This question is closed.
Loading
Error while resolving signing key for kid