diff options
Diffstat (limited to 'samples/OpenIdRelyingPartyWebForms/Code/State.cs')
-rw-r--r-- | samples/OpenIdRelyingPartyWebForms/Code/State.cs | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/samples/OpenIdRelyingPartyWebForms/Code/State.cs b/samples/OpenIdRelyingPartyWebForms/Code/State.cs index 4861a34..c8147e5 100644 --- a/samples/OpenIdRelyingPartyWebForms/Code/State.cs +++ b/samples/OpenIdRelyingPartyWebForms/Code/State.cs @@ -1,6 +1,6 @@ namespace OpenIdRelyingPartyWebForms { - using System.Collections.Generic; using System.Web; + using DotNetOpenAuth.OpenId.Extensions.AttributeExchange; using DotNetOpenAuth.OpenId.Extensions.ProviderAuthenticationPolicy; using DotNetOpenAuth.OpenId.Extensions.SimpleRegistration; @@ -13,6 +13,11 @@ namespace OpenIdRelyingPartyWebForms { 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; } @@ -23,10 +28,17 @@ namespace OpenIdRelyingPartyWebForms { 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 |