public static String getAuthCode(OAuth2Parameters parameters) { MessageBox.Show("About to launch a browser to get the Authorization Code. Please copy and paste the code given into the applciation."); string authorizationUrl = OAuthUtil.CreateOAuth2AuthorizationUrl(parameters); logger.Debug("Auth URL: " + authorizationUrl); Process.Start(authorizationUrl); frmAuthCode frm = new frmAuthCode(); frm.ShowDialog(); return frm.txtAuthCode.Text; }
public static String getAuthCode(OAuth2Parameters parameters) { MessageBox.Show("About to launch a browser to get the Authorization Code. Please copy and paste the code given into the applciation."); string authorizationUrl = OAuthUtil.CreateOAuth2AuthorizationUrl(parameters); logger.Debug("Auth URL: " + authorizationUrl); Process.Start(authorizationUrl); frmAuthCode frm = new frmAuthCode(); frm.ShowDialog(); return(frm.txtAuthCode.Text); }