public class OAuthClient : AuthBase
{
private const string NullExceptionStr = @"Exception 401 ClientId or secret cann't be empty or null";
private const string BaseAddressExceptionStr = @"Exception 402 baseAddress cann't be empty or null";
private const string ClientIdException = @"Exception 403 clientId or secret is not match";
private readonly string _clientId = null;
private readonly string _secret = null;
private string _accessToken = null;
private OAuthType Type;
internal bool _validate = false;
public OAuthClient(string clientId, string secret, string baseAddress, OAuthType type)
{
this._clientId = clientId;
this._secret = secret;
Type = type;
if (string.IsNullOrWhiteSpace(clientId) && string.IsNullOrWhiteSpace(secret))