How often does the authentication token changes?

Avatar

Avatar

scharles415

Avatar

scharles415

scharles415

14-03-2011

We are using the php library to create authentication token.  We have 20 different rooms but we use one developer/LCCS account. For weeks every time we get the authentication toke from php code, it is the same. Recently it changed. I could not find any documentation on this. Shouldn't I get a different authentication token every time I call the getAuthenticationToken() method? Why do I keep on getting same token for the same room?

  $am = new RTCAccount($accountURL);

      $am->login($devuser, $devpass);

      $session = $am->getSession($room);

      $role = 100;

    $token = $session->getAuthenticationToken($secret, $user, $user, $role);

I am thinking that I need to disconnect the session or something but I can not find any documentation on this.

View Entire Topic

Avatar

Avatar

nzezelj

Avatar

nzezelj

nzezelj

14-03-2011

A bit of documentation on the subject can be found at http://learn.adobe.com/wiki/display/lccs/6.4+Authentication+setup

Yes, your authentication token will always be the same for a particular secret/user/userID/role combo with the same session and the same room.  In order to get a different token for such a combo you would need to get a new session.  But this is intended behaviour.  Do you have a particular worry about token not changing with every getAuthenticationToken() call?

Thanks,

Nikola