From 45fc0c382ebab3519daed97a1d98c82e57acad2f Mon Sep 17 00:00:00 2001 From: TheJoKlLa Date: Wed, 16 Mar 2022 00:37:08 +0100 Subject: [PATCH] Fixed: v0.3 Changes --- Borepin/Borepin/Service/BFFH/BFFHService.cs | 1 - FabAccessAPI/Auth.cs | 13 ++++++++----- 2 files changed, 8 insertions(+), 6 deletions(-) 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 }