astral-api/Astral.ApiServer/Models/Requests/TokenGrantRequestModel.cs
Mike 81aa0ec1c0
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/pr/woodpecker Pipeline was successful
WIP heartbeat and user presence
2024-12-15 16:06:14 +00:00

43 lines
1 KiB
C#

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