Invoking XData server with Basic Auth

Thanks Wagner; its working fine - I've noticed that I didnt get a most updated components, after update everything works well.

How could I use a basic auth in "XDataServer" when I use non-Delphi client and we want to let "http" client to use basic authentication (user / password).

It's just regular HTTP basic authentication. Just add the proper header in the request.

Hello Wagner; thanks for response. What I meant is in our Delphi xData server side? For instant, how could we authenticate and authorize user when using GetCustomer by ID?

http://localhost:2001/tms/api/customers?id=10

I know the client should send a u:p@url form or build that into their client code. What I like to know is in our server side Delphi code - read the header, analyze it before run the method.

Note: we rather to not add a user / password in the payload like: http://localhost:2001/tms/api/customers?u=admin&p=passcode&id=10

Add a BasicAuth middleware:
https://download.tmssoftware.com/business/sparkle/doc/web/basic_authentication_middlewar.html

If you prefer you can use JWT, it's recommended, here you have a full description of how to implement it:
https://download.tmssoftware.com/business/xdata/doc/web/authentication_example_using_j.html