diff --git a/Borepin/Borepin/Service/BFFH/BFFHService.cs b/Borepin/Borepin/Service/BFFH/BFFHService.cs index d08ac51..d69d1b5 100644 --- a/Borepin/Borepin/Service/BFFH/BFFHService.cs +++ b/Borepin/Borepin/Service/BFFH/BFFHService.cs @@ -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 { diff --git a/FabAccessAPI/Auth.cs b/FabAccessAPI/Auth.cs index 94d218c..457a091 100644 --- a/FabAccessAPI/Auth.cs +++ b/FabAccessAPI/Auth.cs @@ -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,7 +67,14 @@ namespace FabAccessAPI } } - throw new AuthenticationFailedException(); + if (response.Successful != null) + { + return response.Successful.Session; + } + else + { + throw new AuthenticationFailedException(); + } } #endregion }