Ejemplo n.º 1
0
 /// <summary>
 /// After successful validation, provides an object to hold the user information
 /// </summary>
 /// <returns>OpenIdUser object containing identifier and Extension data</returns>
 public OpenIdUser RetrieveUser()
 {
     OpenIdUser ret = new OpenIdUser(LastDiscoveryResult);
     ret.Retrieve(this);
     return ret;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Validate the authentication response, if present.
 /// </summary>
 /// <returns>A populated OpenIdUser object, if the response is valid.  Null if the response
 /// is invalid.</returns>
 public OpenIdUser RetrieveUser()
 {
     if (!ValidateResponse()) { return null; }
     user = openid.RetrieveUser();
     return user;
 }