namespace OAuthServiceProvider.Code { using System; using DotNetOpenAuth.Messaging; using DotNetOpenAuth.OAuth.Messages; /// /// A custom web app version of the message sent to request an unauthorized token. /// public class RequestScopedTokenMessage : UnauthorizedTokenRequest { /// /// Initializes a new instance of the class. /// /// The endpoint that will receive the message. /// The OAuth version. public RequestScopedTokenMessage(MessageReceivingEndpoint endpoint, Version version) : base(endpoint, version) { } /// /// Gets or sets the scope of the access being requested. /// [MessagePart("scope", IsRequired = true)] public string Scope { get; set; } } }