mirror of
https://gitlab.com/fabinfra/fabaccess/borepin.git
synced 2025-03-12 14:51:44 +01:00
Fixed: v0.3 Changes
This commit is contained in:
parent
fbdbc90f1d
commit
45fc0c382e
@ -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
|
||||
{
|
||||
|
@ -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
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user