Exemplo n.º 1
0
        private async Task <bool> CanConnectUsingJsonWebToken(Connection connection)
        {
            var headers = Authorization.Bearer(connection.JsonWebToken);

            return(await CanConnect(connection, headers));
        }
Exemplo n.º 2
0
        private async Task <bool> CanConnectUsingBasic(Connection connection)
        {
            var headers = Authorization.Basic(connection.Username, connection.Password);

            return(await CanConnect(connection, headers));
        }