diff options
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 |