mirror of
https://gitlab.com/fabinfra/fabaccess/borepin.git
synced 2025-03-13 07:11:56 +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();
|
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
|
||||||
{
|
{
|
||||||
|
@ -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,8 +67,15 @@ namespace FabAccessAPI
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (response.Successful != null)
|
||||||
|
{
|
||||||
|
return response.Successful.Session;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
throw new AuthenticationFailedException();
|
throw new AuthenticationFailedException();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user