summaryrefslogtreecommitdiffstats
path: root/samples/Consumer/App_Code/InMemoryTokenManager.cs
diff options
context:
space:
mode:
Diffstat (limited to 'samples/Consumer/App_Code/InMemoryTokenManager.cs')
-rw-r--r--samples/Consumer/App_Code/InMemoryTokenManager.cs5
1 files changed, 3 insertions, 2 deletions
diff --git a/samples/Consumer/App_Code/InMemoryTokenManager.cs b/samples/Consumer/App_Code/InMemoryTokenManager.cs
index 83c45bd..edd3a9d 100644
--- a/samples/Consumer/App_Code/InMemoryTokenManager.cs
+++ b/samples/Consumer/App_Code/InMemoryTokenManager.cs
@@ -8,6 +8,7 @@ using System;
using System.Collections.Generic;
using System.Diagnostics;
using DotNetOAuth.ChannelElements;
+using DotNetOAuth.Messages;
public class InMemoryTokenManager : ITokenManager {
private Dictionary<string, string> tokensAndSecrets = new Dictionary<string, string>();
@@ -35,8 +36,8 @@ public class InMemoryTokenManager : ITokenManager {
return this.tokensAndSecrets[token];
}
- public void StoreNewRequestToken(string consumerKey, string requestToken, string requestTokenSecret, IDictionary<string, string> requestParameters, IDictionary<string, string> responseParameters) {
- this.tokensAndSecrets[requestToken] = requestTokenSecret;
+ public void StoreNewRequestToken(RequestTokenMessage request, UnauthorizedRequestTokenMessage response) {
+ this.tokensAndSecrets[response.RequestToken] = response.TokenSecret;
}
/// <summary>