public ClientAuthenticator(IClientSaslChannel channel) { if (channel == null) { throw new ArgumentNullException(nameof(channel)); } mechanisms = new Dictionary<string, ISaslMechanism>(); sync = new object(); }
public async Task<AuthOutcome> AuthenticateAsync(IClientSaslChannel channel) { byte[] initialResponse = GetInitialResponse(); await channel.SendAuthRequestAsync(Name, initialResponse); return await channel.ReceiveOutcomeAsync(); }
public async Task<AuthOutcome> AuthenticateAsync(IClientSaslChannel channel) { await channel.SendAuthRequestAsync(Name); return await channel.ReceiveOutcomeAsync(); }