protected string GetAuthorizationURL(string requestTokenURL, string authorizeURL, OAuthInfo authInfo, Dictionary <string, string> customParameters = null, HttpMethod httpMethod = HttpMethod.GET) { string url = OAuthManager.GenerateQuery(requestTokenURL, customParameters, httpMethod, authInfo); string response = SendRequest(httpMethod, url); if (!string.IsNullOrEmpty(response)) { return(OAuthManager.GetAuthorizationURL(response, authInfo, authorizeURL)); } return(null); }
public string GetAuthorizationURL() { Dictionary <string, string> args = new Dictionary <string, string>(); args[OAuthManager.ParameterCallback] = "oob"; // Request activation code to validate authentication string url = OAuthManager.GenerateQuery(_jiraRequestToken.ToString(), args, HttpMethod.Post, AuthInfo); string response = SendRequest(HttpMethod.Post, url); if (!string.IsNullOrEmpty(response)) { return(OAuthManager.GetAuthorizationURL(response, AuthInfo, _jiraAuthorize.ToString())); } return(null); }