summaryrefslogtreecommitdiffstats
path: root/src/DotNetOpenAuth.AspNet/Clients/OAuth2/OAuth2AccessTokenData.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/DotNetOpenAuth.AspNet/Clients/OAuth2/OAuth2AccessTokenData.cs')
-rw-r--r--src/DotNetOpenAuth.AspNet/Clients/OAuth2/OAuth2AccessTokenData.cs46
1 files changed, 46 insertions, 0 deletions
diff --git a/src/DotNetOpenAuth.AspNet/Clients/OAuth2/OAuth2AccessTokenData.cs b/src/DotNetOpenAuth.AspNet/Clients/OAuth2/OAuth2AccessTokenData.cs
new file mode 100644
index 0000000..5da24dd
--- /dev/null
+++ b/src/DotNetOpenAuth.AspNet/Clients/OAuth2/OAuth2AccessTokenData.cs
@@ -0,0 +1,46 @@
+//-----------------------------------------------------------------------
+// <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 {
+ #region Public Properties
+
+ /// <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; }
+ #endregion
+ }
+}