The TokenRequestViewModel

Let's start adding the former one, that contains the parameters that will come from the client when trying to authenticate itself. From Solution Explorer, right-click on the /ViewModels/ folder and add a new TokenRequestViewModel.cs file with the following content:

using Newtonsoft.Json;

namespace TestMakerFreeWebApp.ViewModels
{
[JsonObject(MemberSerialization.OptOut)]
public class TokenRequestViewModel
{
#region Constructor
public TokenRequestViewModel()
{

}
#endregion

#region Properties
public string grant_type { get; set; }
public string client_id { get; set; }
public string client_secret { get; set; }
public string username { get; set; }
public string password { get; set; }
#endregion
}
}
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.133.132.99