I am using the JWT token in my restful service

I am using the JWT token in my restful service.
I need an Authorization header tag in Radzen requests.

I create a global property on the LoginTest page. And set a value.

How can I use that value in the HTTP requests?
When I add it data source, radzen generates code, but it is not working.

How can I use my global property in the HTTP request header?


Hi @spookyCol,

Indeed expressions are not supported here, only static value. We will research if we can add support for this in some of our next updates.

Hi @spookyCol,

The best option I can offer you to access GlobalService in the HttpHandler is the following:

  1. Add additional GlobalService property to your HttpHandler and use desired global property in the headers (you should add the handler file to Radzen application ignore list):

  2. Extend the service class with additional constructor to pass the GlobalService:

  3. The final result: