I cannot get the email address returned in the GetExtension method, but it is included in the URL that Google sends me (the OP I'm testing with).
if (Page.IsPostBack) { using (var openid = new OpenIdRelyingParty()) { var request = openid.CreateRequest(Request.Form["openid_identifier"]); var fetch = new FetchRequest(); fetch.Attributes.Add(new AttributeRequest(WellKnownAttributes.Contact.Email, true)); request.AddExtension(fetch); request.RedirectToProvider(); } } else { using (var openid = new OpenIdRelyingParty()) { var response = openid.GetResponse(); if (response != null) { switch (response.Status) { case AuthenticationStatus.Authenticated: var claimsResponse = response.GetExtension<FetchRequest>(); break; case AuthenticationStatus.Canceled:
Does anyone know what is wrong?
source share