diff options
author | David Christiansen <coding@davedoes.net> | 2015-01-04 23:33:54 +0000 |
---|---|---|
committer | David Christiansen <coding@davedoes.net> | 2015-01-04 23:33:54 +0000 |
commit | 5f8a168cc7a17fbc24442be4ae6b518d95a12647 (patch) | |
tree | 9f0efbcd13ff54446a34bd229dfd495eed882b06 /samples/OpenIdRelyingPartyWebForms/Code/State.cs | |
parent | 7574924b2b5c810b7c00328f04f506f28da3f2ec (diff) | |
download | DotNetOpenAuth-5f8a168cc7a17fbc24442be4ae6b518d95a12647.zip DotNetOpenAuth-5f8a168cc7a17fbc24442be4ae6b518d95a12647.tar.gz DotNetOpenAuth-5f8a168cc7a17fbc24442be4ae6b518d95a12647.tar.bz2 |
Closes #356, Closes #357, Closes #358
Diffstat (limited to 'samples/OpenIdRelyingPartyWebForms/Code/State.cs')
-rw-r--r-- | samples/OpenIdRelyingPartyWebForms/Code/State.cs | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/samples/OpenIdRelyingPartyWebForms/Code/State.cs b/samples/OpenIdRelyingPartyWebForms/Code/State.cs deleted file mode 100644 index c8cef80..0000000 --- a/samples/OpenIdRelyingPartyWebForms/Code/State.cs +++ /dev/null @@ -1,45 +0,0 @@ -namespace OpenIdRelyingPartyWebForms { - using System.Web; - using DotNetOpenAuth.OAuth; - 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 AccessToken GoogleAccessToken { - get { return (AccessToken)(HttpContext.Current.Session["GoogleAccessToken"] ?? new AccessToken()); } - set { HttpContext.Current.Session["GoogleAccessToken"] = value; } - } - - public static void Clear() { - ProfileFields = null; - FetchResponse = null; - FriendlyLoginName = null; - PapePolicies = null; - GoogleAccessToken = new AccessToken(); - } - } -}
\ No newline at end of file |