// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using Newtonsoft.Json.Linq; namespace Microsoft.AspNet.Authentication.OAuth { public class OAuthTokenResponse { public OAuthTokenResponse(JObject response) { Response = response; AccessToken = response.Value("access_token"); TokenType = response.Value("token_type"); RefreshToken = response.Value("refresh_token"); ExpiresIn = response.Value("expires_in"); } public JObject Response { get; set; } public string AccessToken { get; set; } public string TokenType { get; set; } public string RefreshToken { get; set; } public string ExpiresIn { get; set; } } }