summaryrefslogtreecommitdiffstats
path: root/src/DotNetOpenAuth.AspNet/Clients/OAuth2/OAuth2AccessTokenData.cs
blob: d17b452448982379bcbd9da5c5c7fd7a9fc0d833 (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
43
44
45
46
47
48
49
50
51
//-----------------------------------------------------------------------
// <copyright file="OAuth2AccessTokenData.cs" company="Microsoft">
//     Copyright (c) Microsoft. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------

namespace DotNetOpenAuth.AspNet.Clients {
	using System.Runtime.Serialization;

	/// <summary>
	/// Captures the result of an access token request, including an optional refresh token.
	/// </summary>
	[DataContract]
	public class OAuth2AccessTokenData {
		/// <summary>
		/// Gets or sets the access token.
		/// </summary>
		/// <value>
		/// The access token.
		/// </value>
		[DataMember(Name = "access_token")]
		public string AccessToken { get; set; }

		/// <summary>
		/// Gets or sets the refresh token.
		/// </summary>
		/// <value>
		/// The refresh token.
		/// </value>
		[DataMember(Name = "refresh_token")]
		public string RefreshToken { get; set; }

		/// <summary>
		/// Gets or sets the scope.
		/// </summary>
		/// <value>
		/// The scope.
		/// </value>
		[DataMember(Name = "scope")]
		public string Scope { get; set; }

		/// <summary>
		/// Gets or sets the type of the token.
		/// </summary>
		/// <value>
		/// The type of the token.
		/// </value>
		[DataMember(Name = "token_type")]
		public string TokenType { get; set; }
	}
}