summaryrefslogtreecommitdiffstats
path: root/samples/OAuthConsumer/App_Code/InMemoryTokenManager.cs
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2009-11-07 12:31:04 -0800
committerAndrew Arnott <andrewarnott@gmail.com>2009-11-07 12:38:28 -0800
commit6e8f8f47865cf3aed4fdbe6163a6d53539d932d9 (patch)
tree7d6a21e9b98dba41e5e1cb7ab24994dbdfc0b327 /samples/OAuthConsumer/App_Code/InMemoryTokenManager.cs
parentdf813954db953dd5348de08c922ba866365b0a20 (diff)
downloadDotNetOpenAuth-6e8f8f47865cf3aed4fdbe6163a6d53539d932d9.zip
DotNetOpenAuth-6e8f8f47865cf3aed4fdbe6163a6d53539d932d9.tar.gz
DotNetOpenAuth-6e8f8f47865cf3aed4fdbe6163a6d53539d932d9.tar.bz2
Moved one method from ITokenManager to IServiceProviderTokenManager, and added code contracts.
Diffstat (limited to 'samples/OAuthConsumer/App_Code/InMemoryTokenManager.cs')
-rw-r--r--samples/OAuthConsumer/App_Code/InMemoryTokenManager.cs14
1 files changed, 0 insertions, 14 deletions
diff --git a/samples/OAuthConsumer/App_Code/InMemoryTokenManager.cs b/samples/OAuthConsumer/App_Code/InMemoryTokenManager.cs
index 2ecd045..120f00a 100644
--- a/samples/OAuthConsumer/App_Code/InMemoryTokenManager.cs
+++ b/samples/OAuthConsumer/App_Code/InMemoryTokenManager.cs
@@ -36,20 +36,6 @@ public class InMemoryTokenManager : IConsumerTokenManager {
this.tokensAndSecrets[response.Token] = response.TokenSecret;
}
- /// <summary>
- /// Checks whether a given request token has already been authorized
- /// by some user for use by the Consumer that requested it.
- /// </summary>
- /// <param name="requestToken">The Consumer's request token.</param>
- /// <returns>
- /// True if the request token has already been fully authorized by the user
- /// who owns the relevant protected resources. False if the token has not yet
- /// been authorized, has expired or does not exist.
- /// </returns>
- public bool IsRequestTokenAuthorized(string requestToken) {
- throw new NotImplementedException();
- }
-
public void ExpireRequestTokenAndStoreNewAccessToken(string consumerKey, string requestToken, string accessToken, string accessTokenSecret) {
this.tokensAndSecrets.Remove(requestToken);
this.tokensAndSecrets[accessToken] = accessTokenSecret;