JWT SSO not working

We have enabled JWT SSO in our account for our users to log in the developers portal and implemented our side of it. Users are successfully sent to our Website to authenticate, but the problem is that every time we redirect back to Freshdesk with the token and the state in the URL we always get an authorization error saying the state or nonce was not passed but it has.

After successful login we redirect users to: https://ourcompany.freshworks.com/sp/OIDC/XXX/implicit?state=XXX&id_token=XXX where the URL is the one provided in the redirect URL at the freshworks security settings, state is the state passed to our app through the query URL form freshworks and id_token is the JWT generated according to the docs. We’ve verified the state matches the one received, and we have validated the token with the signature set in the security setting and we’ve verified it includes the nonce received, so at this point we have no clue of what we might be doing wrong.

Any help would be highly appreciated.

1 Like

Hello Nelio,

Welcome to the Freshworks Developer Community :tada:

I believe we would need to understand your problem better before finding a way to help you.

  1. When you say “developers portal,” can you please expand on what portal you are referring to, with perhaps a URL of the same?
  2. Could you share briefly how you have enabled JWT SSO for your account - maybe a screenshot might help? Also, is this “account” you refer to your Freshdesk account?
  3. Does the JWT SSO work for any other logins within the Freshworks ecosystem?
  4. Do you have some logs to share with us from your end as well?

Please do help us with these details so we could visualize the problem better.

1 Like

I am facing same issue and getting these errors


We will need to know bit more details to help you out.

Do you mind elaborating a little bit more? Are you trying to log in to freshdev.io ?

Hi, Could you please help me out with the above issue.I am facing the same issue.Let me know how did you resolve above issue.

A post was split to a new topic: Constraint validation failed in SSO with JWT for Freshdesk