diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2008-10-09 14:27:05 -0700 |
---|---|---|
committer | Andrew <andrewarnott@gmail.com> | 2008-10-09 14:27:05 -0700 |
commit | 7ba9649126a7b802e348fbe210383fabc2898659 (patch) | |
tree | 044d6b2b744b765da0fcab39086eadd35e6f3bd3 /src/DotNetOAuth/Messages/DirectUserToConsumerMessage.cs | |
parent | 8b4b94a24edb82609e45b10d32744a2b436d79c6 (diff) | |
download | DotNetOpenAuth-7ba9649126a7b802e348fbe210383fabc2898659.zip DotNetOpenAuth-7ba9649126a7b802e348fbe210383fabc2898659.tar.gz DotNetOpenAuth-7ba9649126a7b802e348fbe210383fabc2898659.tar.bz2 |
Refactored messages to try to simplify their uses and try to hide information from areas that don't need it.
Diffstat (limited to 'src/DotNetOAuth/Messages/DirectUserToConsumerMessage.cs')
-rw-r--r-- | src/DotNetOAuth/Messages/DirectUserToConsumerMessage.cs | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/DotNetOAuth/Messages/DirectUserToConsumerMessage.cs b/src/DotNetOAuth/Messages/DirectUserToConsumerMessage.cs index b13c48c..d8069cf 100644 --- a/src/DotNetOAuth/Messages/DirectUserToConsumerMessage.cs +++ b/src/DotNetOAuth/Messages/DirectUserToConsumerMessage.cs @@ -11,16 +11,27 @@ namespace DotNetOAuth.Messages { /// <summary>
/// A message used to redirect the user from a Service Provider to a Consumer's web site.
/// </summary>
- internal class DirectUserToConsumerMessage : MessageBase {
+ internal sealed class DirectUserToConsumerMessage : MessageBase, ITokenContainingMessage {
/// <summary>
/// Initializes a new instance of the <see cref="DirectUserToConsumerMessage"/> class.
/// </summary>
/// <param name="consumer">The URI of the Consumer endpoint to send this message to.</param>
+ /// <remarks>
+ /// The class is sealed because extra parameters are determined by the callback URI provided by the Consumer.
+ /// </remarks>
internal DirectUserToConsumerMessage(Uri consumer)
: base(MessageProtection.None, MessageTransport.Indirect, new MessageReceivingEndpoint(consumer, HttpDeliveryMethod.GetRequest)) {
}
/// <summary>
+ /// Gets or sets the Request or Access Token.
+ /// </summary>
+ string ITokenContainingMessage.Token {
+ get { return this.RequestToken; }
+ set { this.RequestToken = value; }
+ }
+
+ /// <summary>
/// Gets or sets the Request Token.
/// </summary>
[MessagePart(Name = "oauth_token", IsRequired = true)]
|