Randomly errors with JWT token

Hanna Edam asked on May 18, 2023 16:39

Hi guys,

We have sometimes this error in Kentico v13.110:

Message: Try reloading the administration interface. The user was not found in the JWT token, nor in the current virtual context URL.

The problem occurs randomly when editing a page builder. There is no rule as to frequency. Refreshing the entire admin panel sometimes helps the page builder load correctly.

From my observations, at some point the 'CMSVirtualContextIdentity' cookie suddenly disappears, which may be what is causing the error.

Cookies from request before error:

Image Text

Cookies from error request:

Image Text

Is there anything specific on the server that I should check?

Recent Answers


Juraj Ondrus answered on May 19, 2023 06:36

Are you using any firewalls, gateways, proxy servers or services like Cloudflare which may be blocking some requests? I assume you are using valid and trusted SSL certificates for the front end and admin domains. And that the admin app is not nested underneath the front end app in IIS (in a virtual app).

0 votesVote for this answer Mark as a Correct answer

Hanna Edam answered on May 19, 2023 08:36

Hi Juraj, We have trusted SSL for both sites. We use one domain and the Admin app is nested underneath the MVC app. It was upgrade from K12.

Image Text

Could this have an effect?

0 votesVote for this answer Mark as a Correct answer

Juraj Ondrus answered on May 19, 2023 09:18

Yes, this setup is not recommended nor supported as .NET will identify the logically nested app and there could be some web.config conflicts or settings inheritance going on. While the front end app is MVC the admin is webforms and this can cause issues. It is recommended to run the apps side-by-side. Either separate domains = separate IIS sites or, if you need to keep single domain, use virtual apps on the same level: domain.com/frontendapp and domain.com/adminapp

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.