blob: f1c521495ef52545caa5462c5108b00494210aa3 (
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
|
//-----------------------------------------------------------------------
// <copyright file="GrantAccessTokenMessage.cs" company="Andrew Arnott">
// Copyright (c) Andrew Arnott. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------
namespace DotNetOAuth.Messages {
using DotNetOAuth.Messaging;
/// <summary>
/// A direct message sent from Service Provider to Consumer in response to
/// a Consumer's <see cref="RequestAccessTokenMessage"/> request.
/// </summary>
public class GrantAccessTokenMessage : MessageBase {
/// <summary>
/// Initializes a new instance of the <see cref="GrantAccessTokenMessage"/> class.
/// </summary>
protected internal GrantAccessTokenMessage()
: base(MessageProtection.None, MessageTransport.Direct) {
}
/// <summary>
/// Gets or sets the Access Token assigned by the Service Provider.
/// </summary>
[MessagePart(Name = "oauth_token", IsRequired = true)]
public string AccessToken { get; set; }
/// <summary>
/// Gets or sets the Token Secret.
/// </summary>
[MessagePart(Name = "oauth_token_secret", IsRequired = true)]
internal string TokenSecret { get; set; }
}
}
|