c# - DotNetOpenId - Open Id get some data -


I am using OpenID on a new website and am trying to get some basic information about the user , See the code below. Why are the following services inefficient?

  var myData = response Gate Extension & lt; Claim Reputation & gt; ();  

and the main code

  [System.Web.Mvc.AcceptVerbs] (Public Operations Logon) {var openid = new OpenIdRelyingParty ( ); IAuthenticationResponse response = openid.GetResponse (); If (response! = Null) {switch (response status) {case authentication status. Authorized: Form attestation. Redirectfromline page (feedback. Linked identifier, incorrect); Var myData = response.GetExtension & lt; Claim Reputation & gt; (); break; Case authentication status Canceled: ModelState.AddModelError ("loginIdentifier", "Login on provider was canceled"); break; Case authentication status. File: ModelState. AdoldArror ("loginindentifier", "login failed to use provided openID identifier"); break; }} See Return ("Register"); } [System.Web.Mvc.AcceptVerbs (HttpVerbs.Post)] Public function logon (string log in identifier) ​​{if (! Identifier .isiagidididifter) {ModelState.AddModelError ("loginIdentifier", "the specified login identifier is invalid"); See Return (); } And {var opid = new openIDRillingParty (); IAuthenticationRequest request = openid.CreateRequest (identifier.text (loginindexifier)); // Some additional data requests are required AddExtension (New Claim Confirmation {Email = Demand Line Request, Full Name = DemandLevel.Request}); Return request. Redirection Response AAaAction Results (); }}  


Comments

Popular posts from this blog

asp.net - Javascript/DOM Why is does my form not support submit()? -

sockets - Delphi: TTcpServer, connection reset when reading -

javascript - Classic ASP "ExecuteGlobal" statement acting differently on two servers -