AuthorizationManager AutoLogout ?

Home Forums kbmMW AuthorizationManager AutoLogout ?

Viewing 1 reply thread
  • Author
    Posts
    • #54861
      chmichael
      Participant

      Hello,

      Can you add a AutoLogout on AuthorizationManager ?

      Currently i use the following:

      procedure TCommonServer.TransportDisconnected(Sender: TObject;
      Info: IkbmMWCustomTransportInfo);
      var
      indyinfo: IkbmMWTCPIPIndyMessagingServerTransportInfo;
      vLogin: TkbmMWAuthorizationLogin;
      begin
      vgThreadLock.BeginWrite;

      if (not GetGlobalFlag(gfShuttingDown)) and
      (Length(TkbmMWTCPIPIndyMessagingServerTransportInfo(Info).NodeID) > 0) then
      begin
      vLogin := AuthorizationManager.Logins.Get(TkbmMWTCPIPIndyMessagingServerTransportInfo(Info).NodeID, ‘USER’,
      TkbmMWTCPIPIndyMessagingServerTransportInfo(Info).IP + ‘:’ + TkbmMWTCPIPIndyMessagingServerTransportInfo(Info).Port.ToString);

      if Assigned(vLogin) then
      begin
      AuthorizationManager.Logout(vLogin.Token);
      AuthorizationManager.DeleteActor(TkbmMWTCPIPIndyMessagingServerTransportInfo(Info).NodeID);
      end;
      end;

      vgThreadLock.EndWrite;
      end;

      Thank you

      • This topic was modified 3 months, 3 weeks ago by chmichael.
    • #54863
      kimbomadsen
      Keymaster

      Hi,

      You could choose to leave the user logged in, and rely on the automatic inactivity logout.

      best regards

      Kim/C4D

      • #54864
        chmichael
        Participant

        Hello Kim,

        I know about that but i do not want it that way.

        Thank you

Viewing 1 reply thread
  • You must be logged in to reply to this topic.