private void ValidateClientAuthAccessRequestState() { if (AccessTokenUrl.IsNullOrBlank()) { throw new ArgumentException("You must specify an access token URL"); } if (ConsumerKey.IsNullOrBlank()) { throw new ArgumentException("You must specify a consumer key"); } if (ConsumerSecret.IsNullOrBlank()) { throw new ArgumentException("You must specify a consumer secret"); } if (ClientUsername.IsNullOrBlank() || ClientPassword.IsNullOrBlank()) { throw new ArgumentException("You must specify user credentials"); } }
private void ValidateAccessRequestState() { if (AccessTokenUrl.IsNullOrBlank()) { throw new ArgumentException("You must specify an access token URL"); } if (ConsumerKey.IsNullOrBlank()) { throw new ArgumentException("You must specify a consumer key"); } if (ConsumerSecret.IsNullOrBlank()) { throw new ArgumentException("You must specify a consumer secret"); } if (Token.IsNullOrBlank()) { throw new ArgumentException("You must specify a token"); } }
private void ValidateProtectedResourceState() { if (ConsumerKey.IsNullOrBlank()) { throw new ArgumentException("You must specify a consumer key"); } if (ConsumerSecret.IsNullOrBlank()) { throw new ArgumentException("You must specify a consumer secret"); } /* * if (Token.IsNullOrBlank()) * { * throw new ArgumentException("You must specify a token"); * } * * if (TokenSecret.IsNullOrBlank()) * { * throw new ArgumentException("You must specify a token secret"); * } */ }