//-----------------------------------------------------------------------
//
// Copyright (c) Outercurve Foundation. All rights reserved.
//
//-----------------------------------------------------------------------
namespace DotNetOpenAuth.OAuth2.Messages {
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DotNetOpenAuth.Messaging;
using DotNetOpenAuth.OAuth2.ChannelElements;
///
/// A request for an access token for a client application that has its
/// own (non-user affiliated) client name and password.
///
///
/// This is somewhat analogous to 2-legged OAuth.
///
internal class AccessTokenClientCredentialsRequest : ScopedAccessTokenRequest {
///
/// Initializes a new instance of the class.
///
/// The authorization server.
/// The version.
internal AccessTokenClientCredentialsRequest(Uri tokenEndpoint, Version version)
: base(tokenEndpoint, version) {
this.HttpMethods = HttpDeliveryMethods.PostRequest;
}
///
/// Gets the type of the grant.
///
/// The type of the grant.
internal override GrantType GrantType {
get { return Messages.GrantType.ClientCredentials; }
}
}
}