blob: 4a44aa369a58008903c88a375b519eca7e6b2e52 (
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
|
//-----------------------------------------------------------------------
// <copyright file="AccessTokenFailedResponse.cs" company="Andrew Arnott">
// Copyright (c) Andrew Arnott. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------
namespace DotNetOpenAuth.OAuthWrap.Messages {
using ChannelElements;
using Messaging;
/// <summary>
/// A response from the Authorization Server to the Client to indicate that a
/// request for an access token renewal failed, probably due to an invalid
/// refresh token.
/// </summary>
/// <remarks>
/// This message type is shared by the Web App, Rich App, and Username/Password profiles.
/// </remarks>
internal class AccessTokenFailedResponse : UnauthorizedResponse {
/// <summary>
/// Initializes a new instance of the <see cref="AccessTokenFailedResponse"/> class.
/// </summary>
/// <param name="request">The request.</param>
internal AccessTokenFailedResponse(IAccessTokenRequest request)
: base(request) {
}
/// <summary>
/// Gets or sets the error.
/// </summary>
/// <value>The error.</value>
/// <remarks>
/// REQUIRED. The parameter value MUST be set to one of the values specified by each flow.
/// </remarks>
[MessagePart(Protocol.error, IsRequired = true, AllowEmpty = false)]
internal string Error { get; set; }
}
}
|