Richard,
Hi, you need follow the example, the example contains the code for the GetLogonIdentity
And so you can use HttpContext.Current to get the logon user info ,
such as context.Identity.User.Name , or custom cookie context.Response.Cookies["User"]
and then return the new AppChatIdentity()
Regards , Terry.