21 lines
561 B
C#
21 lines
561 B
C#
|
|
using System.Text.Json.Serialization;
|
||
|
|
|
||
|
|
namespace IdentityShroud.Core.DTO.OpenId;
|
||
|
|
|
||
|
|
public class TokenRequestBody
|
||
|
|
{
|
||
|
|
[JsonPropertyName("grant_type")]
|
||
|
|
public GrantTypes GrantType { get; init; }
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// In most cases required but not when basic auth header is used
|
||
|
|
/// </summary>
|
||
|
|
[JsonPropertyName("client_id")]
|
||
|
|
public string? ClientId { get; init; } = "";
|
||
|
|
|
||
|
|
[JsonPropertyName("client_secret")]
|
||
|
|
public string? ClientSecret { get; init; }
|
||
|
|
|
||
|
|
[JsonPropertyName("scope")]
|
||
|
|
public string? Scope { get; init; }
|
||
|
|
}
|