Note that there are some explanatory texts on larger screens.

plurals
  1. PODotNetOpenAuth - OnLoggedIn not firing on OpenIdButton
    primarykey
    data
    text
    <p>I am trying to implement OpenID for a website using only Google as the authentication provider. I am using the OpenIdButton control to send users to their Google Apps login since I always want them to go to the same place. </p> <p>The button sends them to the right place and returns them to the ReturnToUrl correctly but it doesn't seem that the OnLoggedIn event ever fires. I am checking the event by setting a TextBox value in the method and I am seeing no change in the TextBox value. Here is my code...</p> <pre><code>&lt;tr&gt; &lt;td&gt; &lt;asp:TextBox ID="devMsg" runat="server"/&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td valign="top" align="center"&gt; &lt;font size="-1"&gt;&lt;b&gt;Sign in with your&lt;/b&gt;&lt;/font&gt; &lt;br /&gt; &lt;br /&gt; &lt;rp:OpenIdButton ID="OpenIdButton1" runat="server" Text="Login with your Google account!" ImageUrl="http://www.google.com/accounts/google_transparent.gif" Identifier="https://www.google.com/accounts/o8/site-xrds?hd=dev.connexcloud.com" ReturnToUrl="http://localhost:1587/OpenIdRelyingPartyWebForms/loginGoogleApps.aspx" OnLoggedIn="OpenIdLogin_LoggedIn" /&gt; &lt;br /&gt; &lt;br /&gt; &lt;font size="-1"&gt;&lt;b&gt;Account&lt;/b&gt;&lt;/font&gt; &lt;/td&gt; &lt;/tr&gt; protected void OpenIdLogin_LoggedIn(object sender, OpenIdEventArgs e) { this.devMsg.Text = "no response"; if (e.Response != null) { devMsg.Text = "response"; switch (e.Response.Status) { case AuthenticationStatus.Authenticated: this.devMsg.Text = "authenicated"; break; case AuthenticationStatus.Canceled: this.devMsg.Text = "canceled"; break; case AuthenticationStatus.Failed: this.devMsg.Text = "failed"; break; } } } </code></pre> <p>The TextBox is never being set to anything so it looks to me like the OpenIdLogin_LoggedIn call is never being made when the response is coming back from Google.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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