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(); TcpRpcClient rpcClient = new TcpRpcClient();
rpcClient.InjectMidlayer((tcpstream) => rpcClient.InjectMidlayer((tcpstream) =>
{ {
var sslStream = new SslStream(tcpstream, false, new RemoteCertificateValidationCallback(RemoteCertificateValidationCallback)); var sslStream = new SslStream(tcpstream, false, new RemoteCertificateValidationCallback(RemoteCertificateValidationCallback));
try try
{ {

View File

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