diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2010-04-18 22:19:05 -0400 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2010-04-18 22:19:05 -0400 |
commit | 5b47cd88af9d7b1fc04e69a98a6f912624d275a6 (patch) | |
tree | b93f177a6c68cb968ea9d48813d03584a91abaef /samples/OAuthServiceProvider/App_Code/Global.cs | |
parent | 03d9cdc5e0b26a9afb91d92e94c11fbf9f18f780 (diff) | |
download | DotNetOpenAuth-5b47cd88af9d7b1fc04e69a98a6f912624d275a6.zip DotNetOpenAuth-5b47cd88af9d7b1fc04e69a98a6f912624d275a6.tar.gz DotNetOpenAuth-5b47cd88af9d7b1fc04e69a98a6f912624d275a6.tar.bz2 |
Fixed OAuthServiceProvider sample's broken WCF authorization due to a missing nonce store.
Diffstat (limited to 'samples/OAuthServiceProvider/App_Code/Global.cs')
-rw-r--r-- | samples/OAuthServiceProvider/App_Code/Global.cs | 6 |
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) { |