summaryrefslogtreecommitdiffstats
path: root/src/OpenID/OpenIdRelyingPartyWebForms/Code/State.cs
diff options
context:
space:
mode:
authorDavid Christiansen <coding@davedoes.net>2016-06-06 13:53:24 +0100
committerDavid Christiansen <coding@davedoes.net>2016-06-06 16:10:25 +0100
commit442909c55b4b7943ad1a426072c74a0b0a4fdf95 (patch)
tree6fb18f8baa3e69bc053a8f8e63690f6ec60c6208 /src/OpenID/OpenIdRelyingPartyWebForms/Code/State.cs
parent2ed563499ad1fbafd13d5903fb79b6bf28f0e654 (diff)
downloadDotNetOpenAuth.Samples-442909c55b4b7943ad1a426072c74a0b0a4fdf95.zip
DotNetOpenAuth.Samples-442909c55b4b7943ad1a426072c74a0b0a4fdf95.tar.gz
DotNetOpenAuth.Samples-442909c55b4b7943ad1a426072c74a0b0a4fdf95.tar.bz2
Framework update to 4.5.2
DNOA Nuget update
Diffstat (limited to 'src/OpenID/OpenIdRelyingPartyWebForms/Code/State.cs')
-rw-r--r--src/OpenID/OpenIdRelyingPartyWebForms/Code/State.cs44
1 files changed, 0 insertions, 44 deletions
diff --git a/src/OpenID/OpenIdRelyingPartyWebForms/Code/State.cs b/src/OpenID/OpenIdRelyingPartyWebForms/Code/State.cs
deleted file mode 100644
index c8147e5..0000000
--- a/src/OpenID/OpenIdRelyingPartyWebForms/Code/State.cs
+++ /dev/null
@@ -1,44 +0,0 @@
-namespace OpenIdRelyingPartyWebForms {
- using System.Web;
- using DotNetOpenAuth.OpenId.Extensions.AttributeExchange;
- 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 FetchResponse FetchResponse {
- get { return HttpContext.Current.Session["FetchResponse"] as FetchResponse; }
- set { HttpContext.Current.Session["FetchResponse"] = 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 string GoogleAccessToken {
- get { return HttpContext.Current.Session["GoogleAccessToken"] as string; }
- set { HttpContext.Current.Session["GoogleAccessToken"] = value; }
- }
-
- public static void Clear() {
- ProfileFields = null;
- FetchResponse = null;
- FriendlyLoginName = null;
- PapePolicies = null;
- GoogleAccessToken = null;
- }
- }
-} \ No newline at end of file