mirror of
https://github.com/esiur/esiur-dotnet.git
synced 2026-07-31 01:40:42 +00:00
PPAP integration
This commit is contained in:
@@ -82,6 +82,22 @@ public class AuthHandshakeTests
|
||||
|
||||
// ---- happy path ------------------------------------------------------------------
|
||||
|
||||
[Fact]
|
||||
public void ProviderAndHandler_UseVersionedPasswordProtocolName()
|
||||
{
|
||||
var provider = new PasswordAuthenticationProvider();
|
||||
var handler = provider.CreateAuthenticationHandler(new AuthenticationContext
|
||||
{
|
||||
Direction = AuthenticationDirection.Initiator,
|
||||
Mode = AuthenticationMode.InitializerIdentity,
|
||||
Domain = "domain",
|
||||
HostName = "host",
|
||||
});
|
||||
|
||||
Assert.Equal("password-sha3-v1", provider.DefaultName);
|
||||
Assert.Equal(provider.DefaultName, handler.Protocol);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void InitializerIdentity_Handshake_Derives_Matching_SessionKeys()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user