summaryrefslogtreecommitdiffstats
path: root/samples/RelyingPartyWebForms/Code/State.cs
diff options
context:
space:
mode:
Diffstat (limited to 'samples/RelyingPartyWebForms/Code/State.cs')
-rw-r--r--samples/RelyingPartyWebForms/Code/State.cs32
1 files changed, 0 insertions, 32 deletions
diff --git a/samples/RelyingPartyWebForms/Code/State.cs b/samples/RelyingPartyWebForms/Code/State.cs
deleted file mode 100644
index 857e02a..0000000
--- a/samples/RelyingPartyWebForms/Code/State.cs
+++ /dev/null
@@ -1,32 +0,0 @@
-namespace RelyingPartyWebForms {
- using System.Collections.Generic;
- using System.Web;
- using DotNetOpenAuth.OpenId.Extensions.ProviderAuthenticationPolicy;
- using DotNetOpenAuth.OpenId.Extensions.SimpleRegistration;
-
- /// <summary>
- /// Strong-typed bag of session state.
- /// </summary>
- public class State {
- public static ClaimsResponse ProfileFields {
- get { return HttpContext.Current.Session["ProfileFields"] as ClaimsResponse; }
- set { HttpContext.Current.Session["ProfileFields"] = value; }
- }
-
- public static string FriendlyLoginName {
- get { return HttpContext.Current.Session["FriendlyUsername"] as string; }
- set { HttpContext.Current.Session["FriendlyUsername"] = value; }
- }
-
- public static PolicyResponse PapePolicies {
- get { return HttpContext.Current.Session["PapePolicies"] as PolicyResponse; }
- set { HttpContext.Current.Session["PapePolicies"] = value; }
- }
-
- public static void Clear() {
- ProfileFields = null;
- FriendlyLoginName = null;
- PapePolicies = null;
- }
- }
-} \ No newline at end of file