| | | 1 | | namespace Syki.Back.Features.Identity.GetSsoConfiguration; |
| | | 2 | | |
| | | 3 | | public class GetSsoConfigurationOut : IApiDto<GetSsoConfigurationOut> |
| | | 4 | | { |
| | 0 | 5 | | public Guid Id { get; set; } |
| | 0 | 6 | | public SsoProviderType ProviderType { get; set; } |
| | 0 | 7 | | public string Authority { get; set; } |
| | 0 | 8 | | public string ClientId { get; set; } |
| | 0 | 9 | | public bool IsActive { get; set; } |
| | 0 | 10 | | public bool RequireSso { get; set; } |
| | 0 | 11 | | public DateTime CreatedAt { get; set; } |
| | | 12 | | |
| | | 13 | | public static IEnumerable<(string, GetSsoConfigurationOut)> GetExamples() => |
| | 0 | 14 | | [ |
| | 0 | 15 | | ("Exemplo", new GetSsoConfigurationOut |
| | 0 | 16 | | { |
| | 0 | 17 | | Id = Guid.NewGuid(), |
| | 0 | 18 | | ProviderType = SsoProviderType.AzureAd, |
| | 0 | 19 | | Authority = "https://login.microsoftonline.com/tenant-id/v2.0", |
| | 0 | 20 | | ClientId = "00000000-0000-0000-0000-000000000000", |
| | 0 | 21 | | IsActive = true, |
| | 0 | 22 | | RequireSso = false, |
| | 0 | 23 | | CreatedAt = DateTime.UtcNow, |
| | 0 | 24 | | }), |
| | 0 | 25 | | ]; |
| | | 26 | | } |