Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
SOLVED

username instead of userID in SimpleChat and Roster

Avatar

Level 3

Hi,

I'm creating an auth token using php with

$session->getAuthenticationToken($secret, $userId, $userName, $userRole);

In the roster and in the SimpleChat log I see the userID instead of the user name.

Is there a way to change that?

Thanks

1 Accepted Solution

Avatar

Correct answer by
Employee

The correct syntax is getAuthenticationToken($secret, $name, $userID, $userRole) :

/**

  • get an external authentication token

*/

function getAuthenticationToken($accountSecret, $name, $id, $role) {

View solution in original post

2 Replies

Avatar

Correct answer by
Employee

The correct syntax is getAuthenticationToken($secret, $name, $userID, $userRole) :

/**

  • get an external authentication token

*/

function getAuthenticationToken($accountSecret, $name, $id, $role) {