- Mark as New
- Follow
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
Nope! ![]()
If you look at the way the authentication token is generated (and ignore the value
) :
authtoken = session.getAuthenticationToken(secret, username, userID, role);
and assume your account is "testaccount" and your userID is 12345
the internal userID used by AFCS is going to be EXT-TESTACCOUNT-12345
(EXT means external 'token', and the exx is supposed to me "external and encoded")
So, when you get a chat message and look at the userID of the sender, you should have something like what I have described, and you can get your squirrelID (or whatever unique ID your backend guys passed in) by parsing the string and getting the last part.
Note that if a user enters a room twice the userID of the second instance will look like <userID>/2 (i.e. EXT-TESTACCOUNT-12345/2) so you may want to cover that case too.
Views
Replies
Total Likes