public override void Authenticate(IWampSessionClient client, string signature, AuthenticateExtraData extra) { IWampClientProxy <TMessage> wampClient = client as IWampClientProxy <TMessage>; IWampSessionAuthenticator authenticator = wampClient.Authenticator; try { authenticator.Authenticate(signature, extra); if (authenticator.IsAuthenticated) { OnClientAuthenticated(wampClient, wampClient.HelloDetails); } else { SendAbort(client, new WampAuthenticationException(new AbortDetails(), WampErrors.AuthorizationFailed)); } } catch (WampAuthenticationException ex) { SendAbort(client, ex); } }
public void Authenticate(string signature, AuthenticateExtraData extra) { mAuthenticator.Authenticate(signature, extra); }