//----------------------------------------------------------------------- // // Copyright (c) Andrew Arnott. All rights reserved. // //----------------------------------------------------------------------- namespace DotNetOAuth.Messages { using System; using DotNetOAuth.Messaging; /// /// A message used to redirect the user from a Service Provider to a Consumer's web site. /// internal class DirectUserToConsumerMessage : MessageBase { /// /// Initializes a new instance of the class. /// /// The URI of the Consumer endpoint to send this message to. internal DirectUserToConsumerMessage(Uri consumer) : base(MessageProtection.None, MessageTransport.Indirect, new MessageReceivingEndpoint(consumer, HttpDeliveryMethod.GetRequest)) { } /// /// Gets or sets the Request Token. /// [MessagePart(Name = "oauth_token", IsRequired = true)] public string RequestToken { get; set; } } }