json property mapping

This commit is contained in:
Kyle Spearrin 2019-04-19 09:25:15 -04:00
parent 8c8fa8ae4c
commit b3c67bab92

View file

@ -1,10 +1,16 @@
namespace Bit.Core.Models.Response using Newtonsoft.Json;
namespace Bit.Core.Models.Response
{ {
public class IdentityTokenResponse public class IdentityTokenResponse
{ {
[JsonProperty("access_token")]
public string AccessToken { get; set; } public string AccessToken { get; set; }
[JsonProperty("expires_in")]
public string ExpiresIn { get; set; } public string ExpiresIn { get; set; }
[JsonProperty("refresh_token")]
public string RefreshToken { get; set; } public string RefreshToken { get; set; }
[JsonProperty("token_type")]
public string TokenType { get; set; } public string TokenType { get; set; }
public string PrivateKey { get; set; } public string PrivateKey { get; set; }
public string Key { get; set; } public string Key { get; set; }