summaryrefslogtreecommitdiffstats
path: root/src/DotNetOpenAuth.ApplicationBlock/InMemoryTokenManager.cs
diff options
context:
space:
mode:
authorDavid Christiansen <coding@davedoes.net>2012-03-16 10:33:38 +0000
committerDavid Christiansen <coding@davedoes.net>2012-03-16 10:33:38 +0000
commit32834c15862a447b7d362a2904f241d842660a2c (patch)
tree867a7995c20635445d299d1db4dd468026fc0e97 /src/DotNetOpenAuth.ApplicationBlock/InMemoryTokenManager.cs
parent2df3e36b4bfe3f01e17dceebab0a7951db21ecc7 (diff)
downloadDotNetOpenAuth.Samples-32834c15862a447b7d362a2904f241d842660a2c.zip
DotNetOpenAuth.Samples-32834c15862a447b7d362a2904f241d842660a2c.tar.gz
DotNetOpenAuth.Samples-32834c15862a447b7d362a2904f241d842660a2c.tar.bz2
Added reference to fixed DotNetOpenAuth.OpenIdOAuth package.
Diffstat (limited to 'src/DotNetOpenAuth.ApplicationBlock/InMemoryTokenManager.cs')
-rw-r--r--src/DotNetOpenAuth.ApplicationBlock/InMemoryTokenManager.cs8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/DotNetOpenAuth.ApplicationBlock/InMemoryTokenManager.cs b/src/DotNetOpenAuth.ApplicationBlock/InMemoryTokenManager.cs
index 35f6c08..2a1e155 100644
--- a/src/DotNetOpenAuth.ApplicationBlock/InMemoryTokenManager.cs
+++ b/src/DotNetOpenAuth.ApplicationBlock/InMemoryTokenManager.cs
@@ -8,11 +8,12 @@ namespace DotNetOpenAuth.ApplicationBlock {
using System;
using System.Collections.Generic;
using System.Diagnostics;
+
+ using DotNetOpenAuth.OAuth;
using DotNetOpenAuth.OAuth.ChannelElements;
using DotNetOpenAuth.OAuth.Messages;
using DotNetOpenAuth.OpenId.Extensions.OAuth;
-#if SAMPLESONLY
/// <summary>
/// A token manager that only retains tokens in memory.
/// Meant for SHORT TERM USE TOKENS ONLY.
@@ -22,7 +23,7 @@ namespace DotNetOpenAuth.ApplicationBlock {
/// where the user only signs in without providing any authorization to access
/// Twitter APIs except to authenticate, since that access token is only useful once.
/// </remarks>
- internal class InMemoryTokenManager : IConsumerTokenManager, IOpenIdOAuthTokenManager {
+ public class InMemoryTokenManager : IConsumerTokenManager, IOpenIdOAuthTokenManager {
private Dictionary<string, string> tokensAndSecrets = new Dictionary<string, string>();
/// <summary>
@@ -141,7 +142,4 @@ namespace DotNetOpenAuth.ApplicationBlock {
#endregion
}
-#else
-#error The InMemoryTokenManager class is only for samples as it forgets all tokens whenever the application restarts! You should implement IConsumerTokenManager in your own app that stores tokens in a persistent store (like a SQL database).
-#endif
} \ No newline at end of file