Still working on getting client credential flow complete, most of the request works but still working on generating the JWT.
This commit is contained in:
parent
1a8c63808a
commit
8782ef39c6
80 changed files with 1331 additions and 414 deletions
|
|
@ -10,7 +10,10 @@ public record ClientRepresentation
|
|||
|
||||
public string? SignatureAlgorithm { get; set; }
|
||||
|
||||
public bool Confidential { get; set; }
|
||||
public bool AllowClientCredentialsFlow { get; set; } = false;
|
||||
|
||||
public required DateTime CreatedAt { get; set; }
|
||||
|
||||
public string? Secret { get; set; }
|
||||
}
|
||||
3
IdentityShroud.Api/Apis/Dto/ErrorDto.cs
Normal file
3
IdentityShroud.Api/Apis/Dto/ErrorDto.cs
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
namespace IdentityShroud.Api.Apis;
|
||||
|
||||
public record ErrorDto(string Error);
|
||||
6
IdentityShroud.Api/Apis/Dto/RealmRepresentation.cs
Normal file
6
IdentityShroud.Api/Apis/Dto/RealmRepresentation.cs
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
namespace IdentityShroud.Api.Apis;
|
||||
|
||||
public record RealmRepresentation(
|
||||
Guid Id,
|
||||
string Slug,
|
||||
string Name);
|
||||
21
IdentityShroud.Api/Apis/Dto/TokenRequestBody.cs
Normal file
21
IdentityShroud.Api/Apis/Dto/TokenRequestBody.cs
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
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; }
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue