// // Copyright (c) alveus.dev. All rights reserved. Licensed under the MIT License. // using Microsoft.AspNetCore.Mvc; namespace Astral.ApiServer.Models.Requests; /// /// Oauth token grant request. /// public class TokenGrantRequestModel { /// /// The grant type of the request. /// [FromForm(Name = "grant_type")] public string GrantType { get; set; } /// /// Refresh token. /// [FromForm(Name = "refresh_token")] public string RefreshToken { get; set; } /// /// Username. /// [FromForm(Name = "username")] public string Username { get; set; } /// /// Password. /// [FromForm(Name = "password")] public string Password { get; set; } /// /// Scope. /// [FromForm(Name = "scope")] public string Scope { get; set; } }