Added: Network Security Config

https://devblogs.microsoft.com/xamarin/cleartext-http-android-network-security/
This commit is contained in:
TheJoKlLa
2021-09-19 19:40:00 +02:00
parent e340e1e6eb
commit bc54f708ca
7 changed files with 30 additions and 13 deletions

View File

@ -19,7 +19,7 @@ namespace FabAccessAPI
public TcpRpcClient? RpcClient => _rpcClient;
#region Log
private static readonly log4net.ILog _Log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
//private static readonly log4net.ILog _Log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
#endregion
/// <summary>
@ -30,7 +30,7 @@ namespace FabAccessAPI
{
_rpcClient = rpcClient;
_bootstrapCap = _rpcClient.GetMain<IBootstrap>();
_Log.Debug($"Done bootstraping API connection.");
//_Log.Debug($"Done bootstraping API connection.");
}
/// <summary>
@ -46,7 +46,7 @@ namespace FabAccessAPI
var authCap = await _bootstrapCap.AuthenticationSystem(cancellationToken_);
_auth = new Auth(authCap);
var mechs = await _auth.GetMechanisms();
_Log.Debug($"The Server supports the following auth mechs: {string.Join(", ", mechs)}");
//_Log.Debug($"The Server supports the following auth mechs: {string.Join(", ", mechs)}");
if (!mechs.Contains(mech))
{