protected void btnGetLoginUrl_Click(object sender, EventArgs e) { SocialAuthManager manager = new SocialAuthManager(SocialAuth.NET.Core.Utility.GetSocialAuthConfiguration()); Session["socialauth"] = manager; string url = (manager.GetLoginRedirectUrl((PROVIDER_TYPE)Enum.Parse(typeof(PROVIDER_TYPE), lstProviders.SelectedItem.Text), "http://opensource.brickred.com/socialauthdemo/socialauth/validate.sauth")); redirectUrl.NavigateUrl = url; redirectUrl.Text = url; }
/// <summary> /// FormAuthSocialLogin_Load /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void FormAuthSocialLogin_Load(object sender, EventArgs e) { string loginUrl = manager.GetLoginRedirectUrl(provider_type, ""); webBrowser1.Navigate(loginUrl); }