//----------------------------------------------------------------------- // // Copyright (c) Outercurve Foundation. All rights reserved. // //----------------------------------------------------------------------- namespace DotNetOpenAuth.OAuth2.Messages { using System; using DotNetOpenAuth.Messaging; /// /// A direct message from the client to the authorization server that includes the client's credentials. /// public abstract class AuthenticatedClientRequestBase : MessageBase { /// /// Initializes a new instance of the class. /// /// The Authorization Server's access token endpoint URL. /// The version. protected AuthenticatedClientRequestBase(Uri tokenEndpoint, Version version) : base(version, MessageTransport.Direct, tokenEndpoint) { } /// /// Gets the client identifier previously obtained from the Authorization Server. /// /// The client identifier. [MessagePart(Protocol.client_id, IsRequired = true)] public string ClientIdentifier { get; internal set; } /// /// Gets the client secret. /// /// The client secret. /// /// REQUIRED. The client secret as described in Section 2.1 (Client Credentials). OPTIONAL if no client secret was issued. /// [MessagePart(Protocol.client_secret, IsRequired = false)] public string ClientSecret { get; internal set; } } }