/// <summary> /// Shows the authorization form and uses the specified URL for authorization. /// </summary> /// <returns>The authorization code.</returns> public static string ShowDialog(Uri authUri) { var dialog = new OAuth2AuthorizationDialog { AuthorizationUri = authUri }; dialog.ShowDialog(); return(dialog.AuthorizationCode); }
/// <summary> /// Shows the authorization form and uses the specified URL for authorization. /// </summary> /// <returns>The authorization code.</returns> public static string ShowDialog(Uri authUri) { var dialog = new OAuth2AuthorizationDialog { AuthorizationUri = authUri }; dialog.ShowDialog(); return dialog.AuthorizationCode; }