#1 2016-06-20 09:56:08

DigDiver
Member
Registered: 2013-04-29
Posts: 137

SetUser in TSQLRestClientRedirect problem

Client := TSQLRestClientRedirect.Create(ExistingServer);

Client.SetUser() does not work, because Ctxt.Call^.RestAccessRights is nil in:

procedure TSQLRestServer.SessionCreate(var User: TSQLAuthUser;
  Ctxt: TSQLRestServerURIContext; out Session: TAuthSession);
var i: integer;
begin
  Session := nil;
  if (reOneSessionPerUser in Ctxt.Call^.RestAccessRights^.AllowRemoteExecute) and
     (fSessions<>nil) then

Offline

#2 2016-06-22 07:49:05

DigDiver
Member
Registered: 2013-04-29
Posts: 137

Re: SetUser in TSQLRestClientRedirect problem

I found that call.RestAccessRights is always NIL when I try to use any method via TSQLRestClientRedirect. Maybe I need to make any adjustment in ExistingServer?

Offline

Board footer

Powered by FluxBB