//----------------------------------------------------------------------- // // Copyright (c) Outercurve Foundation. All rights reserved. // //----------------------------------------------------------------------- namespace DotNetOpenAuth.OAuth.Messages { using System; using System.Collections.Generic; using DotNetOpenAuth.Messaging; using DotNetOpenAuth.OAuth.ChannelElements; /// /// A direct message sent from Consumer to Service Provider to request a Request Token. /// public class UnauthorizedTokenRequest : SignedMessageBase { /// /// Initializes a new instance of the class. /// /// The URI of the Service Provider endpoint to send this message to. /// The OAuth version. protected internal UnauthorizedTokenRequest(MessageReceivingEndpoint serviceProvider, Version version) : base(MessageTransport.Direct, serviceProvider, version) { } /// /// Gets or sets the absolute URL to which the Service Provider will redirect the /// User back when the Obtaining User Authorization step is completed. /// /// /// The callback URL; or null if the Consumer is unable to receive /// callbacks or a callback URL has been established via other means. /// [MessagePart("oauth_callback", IsRequired = true, AllowEmpty = false, MinVersion = Protocol.V10aVersion, Encoder = typeof(UriOrOobEncoding))] public Uri Callback { get; set; } /// /// Gets the extra, non-OAuth parameters that will be included in the message. /// public new IDictionary ExtraData { get { return base.ExtraData; } } } }