diff options
author | David Christiansen <DavidChristiansen@users.noreply.github.com> | 2015-01-05 09:33:24 +0000 |
---|---|---|
committer | David Christiansen <DavidChristiansen@users.noreply.github.com> | 2015-01-05 09:33:24 +0000 |
commit | 3770a51d19a04be18ade75f59e0ff1687010a130 (patch) | |
tree | 240382c976672ed421d529860117e37677328f02 /samples/OpenIdRelyingPartyWebForms/Code/State.cs | |
parent | 7574924b2b5c810b7c00328f04f506f28da3f2ec (diff) | |
parent | a14dcb800b25d1b0477ab123b6865d90865f96f0 (diff) | |
download | DotNetOpenAuth-3770a51d19a04be18ade75f59e0ff1687010a130.zip DotNetOpenAuth-3770a51d19a04be18ade75f59e0ff1687010a130.tar.gz DotNetOpenAuth-3770a51d19a04be18ade75f59e0ff1687010a130.tar.bz2 |
Merge pull request #359 from DavidChristiansen/develop
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 |