Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.

Cyrilic symbols and authentication

Avatar

Level 1

Hello!

I've just encountered a problem with authentication of users, who have cyrilic symbols in their display name.

I generate auth token at server (php):

$id = $user->getId();

$name = $user->getName();

$role = \RTCUserRole::PUBLISHER;

$room = 'some_room_name';

$accountSecret = '*****';

$rtcAcc = $this->getRTCAccount(); //get initialized \RTCAccount object

$token = $rtcAcc->getSession($room)->getAuthenticationToken($accountSecret, $name, $id, $role);

then I send this token to the client via flashvars

On client:

var auth : AdobeHSAuthenticator = new AdobeHSAuthenticator();
   auth.requireRTMFP = true;
   auth.authenticationKey = this.authToken;
   return auth;

And if user's name contains cyrilic symbols, I'm getting the error "Invalid username or password:Login again"

Without cyrilic everithing works fine. What should I do to support cyrilic names also? I think it's quite important for our project.

Thanks

2 Replies

Avatar

Level 1

any suggestions, guys? it's still kinda blocker

Avatar

Level 3

Hi,

I ran a test and was able to authenticate when the user name has cyrilic symbols.  You have to UTF8 encode the name string before calling getAuthenticationToken.

Thanks,
Jamie