public void LbtnOpenIDAddClick(object sender, EventArgs e) { OpenIdClient openID = new OpenIdClient(); openID.Identity = this.TxtOpenIDNew.Text; UserProfile.Current.OpenID = openID.Identity; UserProfile.Current.Save(); //openID.AuthVersion = ProtocolVersion.V2_0; //openID.ReturnUrl = new Uri(string.Format("{0}://{1}:{2}{3}", Request.Url.Scheme, Request.Url.Host, Request.Url.Port, Request.Path)); //openID.BeginAuth(); openID.CreateRequest(false, true); }
protected void OpenIDButtonClick(object sender, EventArgs e) { if (!string.IsNullOrEmpty(this.TxtOpenID.Text)) { OpenIdClient openID = new OpenIdClient(); openID.Identity = this.TxtOpenID.Text; UserProfile.Current.OpenID = openID.Identity; UserProfile.Current.Save(); SimpleRegistration simpleRegistration = new SimpleRegistration(openID); simpleRegistration.RequiredFields = "nickname,email"; simpleRegistration.OptionalFields = "fullname,gender"; openID.CreateRequest(false, true); } else { LitOpenIDMsg.Text = language.GetString("MessageOpenIDMissing"); } }