Fixed: v0.3 Changes

This commit is contained in:
TheJoKlLa 2022-03-16 00:37:08 +01:00
parent fbdbc90f1d
commit 45fc0c382e
2 changed files with 8 additions and 6 deletions

View File

@ -291,7 +291,6 @@ namespace Borepin.Service.BFFH
TcpRpcClient rpcClient = new TcpRpcClient();
rpcClient.InjectMidlayer((tcpstream) =>
{
var sslStream = new SslStream(tcpstream, false, new RemoteCertificateValidationCallback(RemoteCertificateValidationCallback));
try
{

View File

@ -56,10 +56,6 @@ namespace FabAccessAPI
throw new AuthenticationFailedException(response.Failed.AdditionalData.ToArray());
}
}
if(response.Successful != null)
{
return response.Successful.Session;
}
if(response.Challenge != null)
{
byte[]? additional = saslMechanism.GetResponse(response.Challenge.ToArray());
@ -71,8 +67,15 @@ namespace FabAccessAPI
}
}
if (response.Successful != null)
{
return response.Successful.Session;
}
else
{
throw new AuthenticationFailedException();
}
}
#endregion
}
}