From 56f549ad282dd0804bfd705d64ad155addab312d Mon Sep 17 00:00:00 2001 From: Brendan Forster Date: Tue, 23 Dec 2014 13:41:35 +0930 Subject: [PATCH] updated new fields for request and response --- Octokit/Models/Request/AuthorizationUpdate.cs | 5 +++++ Octokit/Models/Request/NewAuthorization.cs | 5 +++++ Octokit/Models/Response/Authorization.cs | 17 +++++++++++++++++ 3 files changed, 27 insertions(+) diff --git a/Octokit/Models/Request/AuthorizationUpdate.cs b/Octokit/Models/Request/AuthorizationUpdate.cs index 83b8c9b8..62bf8365 100644 --- a/Octokit/Models/Request/AuthorizationUpdate.cs +++ b/Octokit/Models/Request/AuthorizationUpdate.cs @@ -36,6 +36,11 @@ namespace Octokit /// public string NoteUrl { get; set; } + /// + /// Optional parameter that allows an OAuth application to create multiple authorizations for a single user + /// + public string Fingerprint { get; set; } + internal string DebuggerDisplay { get diff --git a/Octokit/Models/Request/NewAuthorization.cs b/Octokit/Models/Request/NewAuthorization.cs index cdf050ef..508d6adf 100644 --- a/Octokit/Models/Request/NewAuthorization.cs +++ b/Octokit/Models/Request/NewAuthorization.cs @@ -16,6 +16,11 @@ namespace Octokit /// public IEnumerable Scopes { get; set; } + /// + /// Optional parameter that allows an OAuth application to create multiple authorizations for a single user + /// + public string Fingerprint { get; set; } + /// /// An optional note to remind you what the OAuth token is for. /// diff --git a/Octokit/Models/Response/Authorization.cs b/Octokit/Models/Response/Authorization.cs index ba0ffc5e..267bf15e 100644 --- a/Octokit/Models/Response/Authorization.cs +++ b/Octokit/Models/Response/Authorization.cs @@ -29,8 +29,25 @@ namespace Octokit /// /// The oauth token (be careful with these, they are like passwords!). /// + [Obsolete("Now returns empty string, to be deprecated for security reasons")] public string Token { get; set; } + /// + /// The last eight characters of the user's token + /// + public string TokenLastEight { get; set; } + + /// + /// Base-64 encoded representation of the SHA-256 digest of the token + /// + public string HashedToken { get; set; } + + /// + /// Optional parameter that allows an OAuth application to create + /// multiple authorizations for a single user + /// + public string Fingerprint { get; set; } + /// /// Notes about this particular . ///