diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2008-10-07 21:36:29 -0700 |
---|---|---|
committer | Andrew <andrewarnott@gmail.com> | 2008-10-07 21:36:29 -0700 |
commit | 29d897769f3e7a9568fa668836807d9a31b5fabc (patch) | |
tree | fb9a91e0804ed5a92d183268309ea0234732682b /src/DotNetOAuth/ChannelElements/ITokenManager.cs | |
parent | 43188751fe5c64c8f29f62e448a2c6a798910328 (diff) | |
download | DotNetOpenAuth-29d897769f3e7a9568fa668836807d9a31b5fabc.zip DotNetOpenAuth-29d897769f3e7a9568fa668836807d9a31b5fabc.tar.gz DotNetOpenAuth-29d897769f3e7a9568fa668836807d9a31b5fabc.tar.bz2 |
Added strong-typed request token message to sample.
This proves that messages can be derived from and tailored to provide type-safe additions where the OAuth protocol permits it.
As can be seen, several more types and members had to be made public for this to work.
Diffstat (limited to 'src/DotNetOAuth/ChannelElements/ITokenManager.cs')
-rw-r--r-- | src/DotNetOAuth/ChannelElements/ITokenManager.cs | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/DotNetOAuth/ChannelElements/ITokenManager.cs b/src/DotNetOAuth/ChannelElements/ITokenManager.cs index 4cb6ce7..e3b218b 100644 --- a/src/DotNetOAuth/ChannelElements/ITokenManager.cs +++ b/src/DotNetOAuth/ChannelElements/ITokenManager.cs @@ -9,6 +9,7 @@ namespace DotNetOAuth.ChannelElements { using System.Collections.Generic;
using System.Linq;
using System.Text;
+ using DotNetOAuth.Messages;
/// <summary>
/// An interface OAuth hosts must implement for persistent storage and recall of tokens and secrets.
@@ -38,13 +39,10 @@ namespace DotNetOAuth.ChannelElements { /// Stores a newly generated unauthorized request token, secret, and optional
/// application-specific parameters for later recall.
/// </summary>
- /// <param name="consumerKey">The key of the Consumer that requested this token.</param>
- /// <param name="requestToken">The token to store.</param>
- /// <param name="requestTokenSecret">The secret to store as associated with the request token.</param>
- /// <param name="requestParameters">The optional application-specific parameters sent in the request message.</param>
- /// <param name="responseParameters">The optional application-specific parameters sent in the response message.</param>
+ /// <param name="request">The request message that resulted in the generation of a new unauthorized request token.</param>
+ /// <param name="response">The response message that includes the unauthorized request token.</param>
/// <exception cref="ArgumentException">Thrown if the consumer key is not registered, or a required parameter was not found in the parameters collection.</exception>
- void StoreNewRequestToken(string consumerKey, string requestToken, string requestTokenSecret, IDictionary<string, string> requestParameters, IDictionary<string, string> responseParameters);
+ void StoreNewRequestToken(RequestTokenMessage request, UnauthorizedRequestTokenMessage response);
/// <summary>
/// Checks whether a given request token has already been authorized
|