diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2009-06-05 22:23:28 -0700 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2009-06-05 22:23:28 -0700 |
commit | 63daff25f5ea47e6bd7826c21fe2ba9905185e8c (patch) | |
tree | 7be29fb11774c8895050790004ab9cfb16310aa8 /src/DotNetOpenAuth.Test/Mocks/InMemoryTokenManager.cs | |
parent | da17dd303e4dbf663882cf926678cd7794077e9f (diff) | |
download | DotNetOpenAuth-63daff25f5ea47e6bd7826c21fe2ba9905185e8c.zip DotNetOpenAuth-63daff25f5ea47e6bd7826c21fe2ba9905185e8c.tar.gz DotNetOpenAuth-63daff25f5ea47e6bd7826c21fe2ba9905185e8c.tar.bz2 |
Initial change to comply with OAuth 1.0a.
Still need to come up with a plan to handle Consumers without callback, including mobile and set-top devices with limited keyboards.
No tests yet.
Limited thought given so far to interoperability with 1.0 vs. 1.0a.
Diffstat (limited to 'src/DotNetOpenAuth.Test/Mocks/InMemoryTokenManager.cs')
-rw-r--r-- | src/DotNetOpenAuth.Test/Mocks/InMemoryTokenManager.cs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/DotNetOpenAuth.Test/Mocks/InMemoryTokenManager.cs b/src/DotNetOpenAuth.Test/Mocks/InMemoryTokenManager.cs index be3c563..bf9dc2b 100644 --- a/src/DotNetOpenAuth.Test/Mocks/InMemoryTokenManager.cs +++ b/src/DotNetOpenAuth.Test/Mocks/InMemoryTokenManager.cs @@ -15,6 +15,7 @@ namespace DotNetOpenAuth.Test.Mocks { internal class InMemoryTokenManager : IConsumerTokenManager, IServiceProviderTokenManager { private Dictionary<string, string> consumersAndSecrets = new Dictionary<string, string>(); private Dictionary<string, string> tokensAndSecrets = new Dictionary<string, string>(); + private Dictionary<string, string> tokensAndVerifiers = new Dictionary<string, string>(); /// <summary> /// Request tokens that have been issued, and whether they have been authorized yet. @@ -97,6 +98,14 @@ namespace DotNetOpenAuth.Test.Mocks { return this.consumersAndSecrets[consumerKey]; } + public void SetRequestTokenVerifier(string requestToken, string verifier) { + this.tokensAndVerifiers[requestToken] = verifier; + } + + public string GetRequestTokenVerifier(string requestToken) { + return this.tokensAndVerifiers[requestToken]; + } + #endregion /// <summary> |