diff options
Diffstat (limited to 'src/OpenID/OpenIdWebRingSsoProvider/Default.aspx.cs')
-rw-r--r-- | src/OpenID/OpenIdWebRingSsoProvider/Default.aspx.cs | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/OpenID/OpenIdWebRingSsoProvider/Default.aspx.cs b/src/OpenID/OpenIdWebRingSsoProvider/Default.aspx.cs new file mode 100644 index 0000000..d7e5310 --- /dev/null +++ b/src/OpenID/OpenIdWebRingSsoProvider/Default.aspx.cs @@ -0,0 +1,22 @@ +namespace OpenIdWebRingSsoProvider { + using System; + using System.Collections.Generic; + using System.Linq; + using System.Web; + using System.Web.UI; + using System.Web.UI.WebControls; + using DotNetOpenAuth.OpenId.Provider; + using OpenIdWebRingSsoProvider.Code; + + public partial class _Default : System.Web.UI.Page { + protected void Page_Load(object sender, EventArgs e) { + // The user may have just completed a login. If they're logged in, see if we can complete the OpenID login. + if (User.Identity.IsAuthenticated && ProviderEndpoint.PendingAuthenticationRequest != null) { + Util.ProcessAuthenticationChallenge(ProviderEndpoint.PendingAuthenticationRequest); + if (ProviderEndpoint.PendingAuthenticationRequest.IsAuthenticated.HasValue) { + ProviderEndpoint.SendResponse(); + } + } + } + } +} |