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();
}
Views
Replies
Total Likes
Hi There,
Nice catch! We did indeed have a bug here (it was gross too.. Our
authentication code is due for a refactoring). I've checked in a fix, which
we'll be deploying in the next release (within a month or so).
Thanks for reporting this - every bug post makes us a little bit stronger!
nigel