summaryrefslogtreecommitdiffstats
path: root/samples/OpenIdRelyingPartyWebForms/Code/State.cs
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2013-03-03 08:41:16 -0800
committerAndrew Arnott <andrewarnott@gmail.com>2013-03-03 08:41:16 -0800
commit475b47ab8eaa23e064763b05539fa750accebfdc (patch)
tree785a8c82ec1d8884fc51c201c23040923cbfa6fc /samples/OpenIdRelyingPartyWebForms/Code/State.cs
parent74b6b4efd2be2680e3067f716829b0c9385ceebe (diff)
parent1fdcca1a8019189237e86907f220307e2ccd61c9 (diff)
downloadDotNetOpenAuth-475b47ab8eaa23e064763b05539fa750accebfdc.zip
DotNetOpenAuth-475b47ab8eaa23e064763b05539fa750accebfdc.tar.gz
DotNetOpenAuth-475b47ab8eaa23e064763b05539fa750accebfdc.tar.bz2
Merge branch 'OAuthSimple' into httpclient
Diffstat (limited to 'samples/OpenIdRelyingPartyWebForms/Code/State.cs')
-rw-r--r--samples/OpenIdRelyingPartyWebForms/Code/State.cs7
1 files changed, 4 insertions, 3 deletions
diff --git a/samples/OpenIdRelyingPartyWebForms/Code/State.cs b/samples/OpenIdRelyingPartyWebForms/Code/State.cs
index c8147e5..c8cef80 100644
--- a/samples/OpenIdRelyingPartyWebForms/Code/State.cs
+++ b/samples/OpenIdRelyingPartyWebForms/Code/State.cs
@@ -1,5 +1,6 @@
namespace OpenIdRelyingPartyWebForms {
using System.Web;
+ using DotNetOpenAuth.OAuth;
using DotNetOpenAuth.OpenId.Extensions.AttributeExchange;
using DotNetOpenAuth.OpenId.Extensions.ProviderAuthenticationPolicy;
using DotNetOpenAuth.OpenId.Extensions.SimpleRegistration;
@@ -28,8 +29,8 @@ namespace OpenIdRelyingPartyWebForms {
set { HttpContext.Current.Session["PapePolicies"] = value; }
}
- public static string GoogleAccessToken {
- get { return HttpContext.Current.Session["GoogleAccessToken"] as string; }
+ public static AccessToken GoogleAccessToken {
+ get { return (AccessToken)(HttpContext.Current.Session["GoogleAccessToken"] ?? new AccessToken()); }
set { HttpContext.Current.Session["GoogleAccessToken"] = value; }
}
@@ -38,7 +39,7 @@ namespace OpenIdRelyingPartyWebForms {
FetchResponse = null;
FriendlyLoginName = null;
PapePolicies = null;
- GoogleAccessToken = null;
+ GoogleAccessToken = new AccessToken();
}
}
} \ No newline at end of file