diff options
Diffstat (limited to 'samples/OpenIdProviderWebForms/server.aspx.cs')
-rw-r--r-- | samples/OpenIdProviderWebForms/server.aspx.cs | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/samples/OpenIdProviderWebForms/server.aspx.cs b/samples/OpenIdProviderWebForms/server.aspx.cs index 89e14f4..e613192 100644 --- a/samples/OpenIdProviderWebForms/server.aspx.cs +++ b/samples/OpenIdProviderWebForms/server.aspx.cs @@ -7,15 +7,27 @@ namespace OpenIdProviderWebForms { /// This page is responsible for handling all open-id compliant requests. /// </summary> public partial class server : System.Web.UI.Page { - protected void Page_Load(object src, System.EventArgs evt) { + protected void Page_Load(object src, EventArgs evt) { this.serverEndpointUrl.Text = Request.Url.ToString(); } protected void provider_AuthenticationChallenge(object sender, AuthenticationChallengeEventArgs e) { + // We store the request in the user's session so that + // redirects and user prompts can appear and eventually some page can decide + // to respond to the OpenID authentication request either affirmatively or + // negatively. + ProviderEndpoint.PendingRequest = e.Request; + Code.Util.ProcessAuthenticationChallenge(e.Request); } protected void provider_AnonymousRequest(object sender, AnonymousRequestEventArgs e) { + // We store the request in the user's session so that + // redirects and user prompts can appear and eventually some page can decide + // to respond to the OpenID authentication request either affirmatively or + // negatively. + ProviderEndpoint.PendingRequest = e.Request; + Code.Util.ProcessAnonymousRequest(e.Request); } } |