51 lines
1.2 KiB
C#
51 lines
1.2 KiB
C#
using Abp.Application.Services.Dto;
|
|
using Abp.AutoMapper;
|
|
using ASPBaseOIDC.Authorization.ExternalAuth;
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace ASPBaseOIDC.Application.Authorization.ExternalAuth.Dto;
|
|
|
|
[AutoMapFrom(typeof(ExternalAuthProvider))]
|
|
[AutoMapTo(typeof(ExternalAuthProvider))]
|
|
public class ExternalAuthProviderDto : EntityDto<int>
|
|
{
|
|
[Required]
|
|
[MaxLength(128)]
|
|
public string Name { get; set; }
|
|
|
|
[Required]
|
|
[MaxLength(64)]
|
|
public string ProviderType { get; set; }
|
|
|
|
public bool IsEnabled { get; set; }
|
|
|
|
[Required]
|
|
[MaxLength(512)]
|
|
public string Authority { get; set; }
|
|
|
|
[Required]
|
|
[MaxLength(256)]
|
|
public string ClientId { get; set; }
|
|
|
|
/// <summary>
|
|
/// Client secret (masked when returning to client, full when creating/updating)
|
|
/// </summary>
|
|
[MaxLength(512)]
|
|
public string ClientSecret { get; set; }
|
|
|
|
[MaxLength(512)]
|
|
public string Scopes { get; set; }
|
|
|
|
[MaxLength(64)]
|
|
public string ResponseType { get; set; }
|
|
|
|
public bool RequireHttpsMetadata { get; set; }
|
|
|
|
[MaxLength(2048)]
|
|
public string ClaimMappings { get; set; }
|
|
|
|
public int DisplayOrder { get; set; }
|
|
|
|
public int? TenantId { get; set; }
|
|
}
|