summaryrefslogtreecommitdiffstats
path: root/samples/OAuthServiceProvider/App_Code/Global.cs
diff options
context:
space:
mode:
Diffstat (limited to 'samples/OAuthServiceProvider/App_Code/Global.cs')
-rw-r--r--samples/OAuthServiceProvider/App_Code/Global.cs6
1 files changed, 4 insertions, 2 deletions
diff --git a/samples/OAuthServiceProvider/App_Code/Global.cs b/samples/OAuthServiceProvider/App_Code/Global.cs
index 10b3cba..6a7ccc9 100644
--- a/samples/OAuthServiceProvider/App_Code/Global.cs
+++ b/samples/OAuthServiceProvider/App_Code/Global.cs
@@ -38,6 +38,8 @@ public class Global : HttpApplication {
public static DatabaseTokenManager TokenManager { get; set; }
+ public static DatabaseNonceStore NonceStore { get; set; }
+
public static User LoggedInUser {
get { return Global.DataContext.Users.SingleOrDefault(user => user.OpenIDClaimedIdentifier == HttpContext.Current.User.Identity.Name); }
}
@@ -101,8 +103,8 @@ public class Global : HttpApplication {
// start before the first incoming request context is available.
// TODO: fix this.
Constants.WebRootUrl = new Uri(HttpContext.Current.Request.Url, appPath);
- var tokenManager = new DatabaseTokenManager();
- Global.TokenManager = tokenManager;
+ Global.TokenManager = new DatabaseTokenManager();
+ Global.NonceStore = new DatabaseNonceStore();
}
private void Application_End(object sender, EventArgs e) {