Note that there are some explanatory texts on larger screens.

plurals
  1. PODotNetOpenAuth Failing to work on Live Server
    text
    copied!<p>I worked on a sample application integrating OpenID into ASP.NET Web Forms. It works fine when hosted locally on my machine. However, when I uploaded the application to a live server, it started giving "Login Failed".</p> <p>You can try a sample here: <a href="http://samples.bhaidar.net/openidsso" rel="nofollow">http://samples.bhaidar.net/openidsso</a></p> <p>Any ideas?</p> <p>Here is the source code that fails to process the OpenID response:</p> <pre><code> private void HandleOpenIdProviderResponse() { // Define a new instance of OpenIdRelyingParty class using (var openid = new OpenIdRelyingParty()) { // Get authentication response from OpenId Provider Create IAuthenticationResponse instance to be used // to retreive the response from OP var response = openid.GetResponse(); // No authentication request was sent if (response == null) return; switch (response.Status) { // If user was authenticated case AuthenticationStatus.Authenticated: // This is where you would look for any OpenID extension responses included // in the authentication assertion. var fetchResponse = response.GetExtension&lt;FetchResponse&gt;(); // Store the "Queried Fields" Session["FetchResponse"] = fetchResponse; // Use FormsAuthentication to tell ASP.NET that the user is now logged in, // with the OpenID Claimed Identifier as their username. FormsAuthentication.RedirectFromLoginPage(response.ClaimedIdentifier, false); break; // User has cancelled the OpenID Dance case AuthenticationStatus.Canceled: this.loginCanceledLabel.Visible = true; break; // Authentication failed case AuthenticationStatus.Failed: this.loginFailedLabel.Visible = true; break; } } </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload