I am tring to set up openid authentification with jwt Token between a VueJs Front and API in .net core.
But i’m having a error in the .net core api “signature validation failed. Unable to match ‘kid’”.
Which token do i send to .net core ? id_token or access_token ?
What am i doing wrong ?
Sample code
//Url in vueJs
const authUrl = https://${okta.urlOrga}/oauth2/v1/authorize?client_id=${okta.clientId} &response_type=id_token &nonce=1234567 &scope=openid email groups &state=test &redirect_uri=${window.location.href}
Hmmm, it sounds like you don’t have a default Authorization server setup. Can you please email developers@okta.com and ask them to configure this for your organization?
If you have a default authorization server, it’s strange that you’re getting a 404. I’m not sure what could be causing this issue, unless you’re somehow getting the authorization endpoint wrong. You should be able to get the endpoint URLs from your org’s .well-known/oauth-authorization-server. For example: https://dev-158606.oktapreview.com/oauth2/default/.well-known/oauth-authorization-server
This is usually because the backend integration is checking an authorization server that doesn’t have the public key (identified by a kid) that the access token is reporting in the header of the JWT. I have some additional troubleshooting steps in the other post.
Let me know if that get’s this resolved for you, thanks!
Tom