summaryrefslogtreecommitdiffstats
path: root/samples/OpenIdRelyingPartyWebForms/Code
diff options
context:
space:
mode:
Diffstat (limited to 'samples/OpenIdRelyingPartyWebForms/Code')
-rw-r--r--samples/OpenIdRelyingPartyWebForms/Code/CustomStore.cs2
-rw-r--r--samples/OpenIdRelyingPartyWebForms/Code/State.cs7
2 files changed, 5 insertions, 4 deletions
diff --git a/samples/OpenIdRelyingPartyWebForms/Code/CustomStore.cs b/samples/OpenIdRelyingPartyWebForms/Code/CustomStore.cs
index 1572c05..44b237d 100644
--- a/samples/OpenIdRelyingPartyWebForms/Code/CustomStore.cs
+++ b/samples/OpenIdRelyingPartyWebForms/Code/CustomStore.cs
@@ -25,7 +25,7 @@ namespace OpenIdRelyingPartyWebForms.Code {
/// But we "persist" all associations and nonces into a DataTable to demonstrate
/// that using a database is possible.
/// </remarks>
- public class CustomStore : IOpenIdApplicationStore {
+ public class CustomStore : ICryptoKeyAndNonceStore {
private static CustomStoreDataSet dataSet = new CustomStoreDataSet();
#region INonceStore Members
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