You are not logged in.
Pages: 1
In the code comments about TSQLRestClientURI.SessionUser (copied below) it gives an example of how to get the TSQlAuthUser fully filled out. Running the example gives me the error: 'Class TSQLAuthUser missing in model.' - I assume because TSQLAuthUser table is not visible client side. Could TSQLRestClientURI.SessionUser get the DisplayName and ID field filled out by default?
/// the current user as set by SetUser() method
// - returns nil if no User is currently authenticated
// - only available fields by default are LogonName and PasswordHashHexa:
// you can run code similar to the following to fill all needed properties:
// ! if fClient.SessionUser<>nil then
// ! begin
// ! fClient.Retrieve('LogonName=?',[],[fClient.SessionUser.LogonName],
// ! fClient.SessionUser); // fill ID, DisplayName, GroupRights
// ! fClient.RetrieveBlobFields(fClient.SessionUser); // optional Data
// ! end;
property SessionUser: TSQLAuthUser read fSessionUser;
Offline
Pages: 1