Avatar

Level 1

Just wondered if this is the intended behaviour.  If I supply a username and password to the authenticator as below, then my authenticationResultHandler is called on success or on failure.  However, if I comment out the userName/password and instead provide an authenticationKey, then authenticationResultHandler is only called on failure, but not on success.
 
Is that by design, or an oversight?

Thanks,
DB
 
          public function connect(roomURL:String, userName:String, password:String):void
          {
                 connectSession = new ConnectSession();
                  connectSession.roomURL = roomURL;
                  connectSession.authenticator = new AdobeHSAuthenticator;
                  connectSession.authenticator.userName = userName;
                 connectSession.authenticator.password = password;
       //         connectSession.authenticator.authenticationKey = "exx=eDpCYX...NTU0";
                 connectSession.authenticator.addEventListener(AuthenticationEvent.AUTHENTICATION_FAILURE, authenticationResultHandler);
                  connectSession.authenticator.addEventListener(AuthenticationEvent.AUTHENTICATION_SUCCESS, authenticationResultHandler);
                  connectSession.login();
            }