-
Jose Martin Cortes Rivera
- PowerServer
- Wednesday, 14 October 2026 11:02 PM UTC
Hi Appeon Support,
We are using PowerServer 2025 R2 with .NET 10 and JWT authentication.
Our application successfully authenticates using SetHttpRequestHeader("Authorization", "Bearer " + token) before calling BeginSession().
However, when we call SetHttpRequestHeader() again during an active session, subsequent DataWindow operations fail with R0240 Unauthorized, even if we set exactly the same JWT token.
We have confirmed that:
The initial JWT authentication works correctly.
A newly generated JWT is valid (HTTP 200 from our Web API).
DataWindow operations continue working if we do not update the HTTP header.
Calling SetHttpRequestHeader() again during an active session causes R0240, even with the original token.
Our question: Does PowerServer 2025 R2 support updating the Authorization header after BeginSession()? If so, what is the recommended procedure for renewing a JWT without closing the application or losing open DataWindow windows?
Thank you for your assistance.
Best regards
Martin Cortes
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.