25 lines
691 B
C#
25 lines
691 B
C#
|
|
using IdentityShroud.Core.Model;
|
||
|
|
|
||
|
|
namespace IdentityShroud.Core.Contracts;
|
||
|
|
|
||
|
|
//public record CreateClientRequest(Guid RealmId, string ClientId, string? Description);
|
||
|
|
|
||
|
|
public class ClientCreateRequest
|
||
|
|
{
|
||
|
|
public string ClientId { get; set; }
|
||
|
|
public string? Name { get; set; }
|
||
|
|
public string? Description { get; set; }
|
||
|
|
public string? SignatureAlgorithm { get; set; }
|
||
|
|
public bool? AllowClientCredentialsFlow { get; set; }
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
public interface IClientService
|
||
|
|
{
|
||
|
|
Task<Result<Client>> Create(
|
||
|
|
Guid realmId,
|
||
|
|
ClientCreateRequest request,
|
||
|
|
CancellationToken ct = default);
|
||
|
|
|
||
|
|
Task<Client?> GetByClientId(string clientId, CancellationToken ct = default);
|
||
|
|
}
|