//----------------------------------------------------------------------- // // Copyright (c) Andrew Arnott. All rights reserved. // //----------------------------------------------------------------------- namespace DotNetOAuth.Messages { using System; using DotNetOAuth.Messaging; /// /// A message used to redirect the user from a Consumer to a Service Provider's web site. /// internal class DirectUserToServiceProviderMessage : MessageBase { /// /// Initializes a new instance of the class. /// /// The URI of the Service Provider endpoint to send this message to. internal DirectUserToServiceProviderMessage(MessageReceivingEndpoint serviceProvider) : base(MessageProtection.None, MessageTransport.Indirect, serviceProvider) { } /// /// Gets or sets the Request Token obtained in the previous step. /// /// /// The Service Provider MAY declare this parameter as REQUIRED, or /// accept requests to the User Authorization URL without it, in which /// case it will prompt the User to enter it manually. /// [MessagePart(Name = "oauth_token", IsRequired = false)] public string RequestToken { get; set; } /// /// Gets or sets a URL the Service Provider will use to redirect the User back /// to the Consumer when Obtaining User Authorization is complete. Optional. /// [MessagePart(Name = "oauth_callback", IsRequired = false)] public Uri Callback { get; set; } } }