blob: bc4d0ca2138f6c1b5acaaf3dbb30c8eb48836a1f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
//-----------------------------------------------------------------------
// <copyright file="AuthenticatedClientRequestBase.cs" company="Outercurve Foundation">
// Copyright (c) Outercurve Foundation. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------
namespace DotNetOpenAuth.OAuth2.Messages {
using System;
using DotNetOpenAuth.Messaging;
/// <summary>
/// A direct message from the client to the authorization server that includes the client's credentials.
/// </summary>
public abstract class AuthenticatedClientRequestBase : MessageBase {
/// <summary>
/// Initializes a new instance of the <see cref="AuthenticatedClientRequestBase"/> class.
/// </summary>
/// <param name="tokenEndpoint">The Authorization Server's access token endpoint URL.</param>
/// <param name="version">The version.</param>
protected AuthenticatedClientRequestBase(Uri tokenEndpoint, Version version)
: base(version, MessageTransport.Direct, tokenEndpoint) {
}
/// <summary>
/// Gets the client identifier previously obtained from the Authorization Server.
/// </summary>
/// <value>The client identifier.</value>
[MessagePart(Protocol.client_id, IsRequired = true)]
public string ClientIdentifier { get; internal set; }
/// <summary>
/// Gets the client secret.
/// </summary>
/// <value>The client secret.</value>
/// <remarks>
/// REQUIRED. The client secret as described in Section 2.1 (Client Credentials). OPTIONAL if no client secret was issued.
/// </remarks>
[MessagePart(Protocol.client_secret, IsRequired = false)]
public string ClientSecret { get; internal set; }
}
}
|