AuthorizationManager Login event does not fire ?

Home Forums kbmMW AuthorizationManager Login event does not fire ?

Viewing 1 reply thread
  • Author
    Posts
    • #54752
      Babis Michael
      Participant

      Hello,

      I’ve updated to the latest version of kbmMW and the OnLogin events does not seem to fire ? Also having 2 login events is useless you should keep the Onlogin2 event which covers all the cases.

      Add this line to SrvDemo and try to connect

      procedure TForm1.kbmMWAuthorizationManager1Login(Sender: TObject;
      const AActorName, ARoleName: string; var APassPhrase: string;
      var AActor: TkbmMWAuthorizationActor; var ARole: TkbmMWAuthorizationRole;
      var AMessage: string);
      begin
      showmessage(aactorname);
      end;

      Thank you

    • #54753
      kimbomadsen
      Keymaster

      Hi,

      There are two sets of events due to backwards compatibility. It is correct that the …2 set is a superset of the old ones.

      Login will only happen if either AuthManager.Login is called explicitely or mwaoAutoLogin is indicated in the AuthorizationManager.Options property, and there is indeed an AuthorizationManager connected to the kbmMWServer instance, and the client making the call should not provide a Token value in its request (typically setup in the client side simpleclient component)

       

      • #54754
        Babis Michael
        Participant

        Hello,

        The Authorization manager SQL Lite demo you have on the demos has mwaoAutoLogin already, i’ve added the “showmessage(AActoraname);” routine on the Login’s event, i connect to the sql lite demo server and it does not execute it! (IOW it should popup a dialog with the Actorname which it tries to connect)

        Can you please take a look ?

        Thank you

        • This reply was modified 5 years, 7 months ago by Babis Michael.
        • #54757
          kimbomadsen
          Keymaster

          Hi,
          Just tried. It does call the OnLogin event as it should do, but not on connect, only when the client is attempting to do a request.

          • #54758
            Babis Michael
            Participant

            Hello,

            Yes, i forgot about the request! ok, then something wrong with my code must be then since a lot of thing have been changed from 5.05, i’ll take a look!

            Thank you

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