using System.Collections.Generic;
namespace Util.Tests.Models;
///
/// 应用程序扩展信息
///
public class ApplicationExtend
{
///
/// 初始化
///
public ApplicationExtend()
{
Client = new Client();
}
///
/// 应用程序类型
///
public int ApplicationType { get; set; }
///
/// 是否客户端
///
public bool IsClient { get; set; }
///
/// 客户端
///
public Client Client { get; set; }
}
///
/// 客户端
///
public class Client
{
///
/// 初始化客户端
///
public Client()
{
AllowedCorsOrigins = new List();
RedirectUris = new List();
PostLogoutRedirectUris = new List();
AllowedScopes = new List();
}
///
/// 允许的授权类型
///
public int AllowedGrantType { get; set; }
///
/// 允许通过浏览器访问令牌
///
public bool? AllowAccessTokensViaBrowser { get; set; }
///
/// 允许的跨域来源
///
public List AllowedCorsOrigins { get; set; }
///
/// 需要同意
///
public bool? RequireConsent { get; set; }
///
/// 需要客户端密钥
///
public bool? RequireClientSecret { get; set; }
///
/// 客户端密钥列表
///
public List ClientSecrets { get; set; }
///
/// 认证重定向地址列表
///
public List RedirectUris { get; set; }
///
/// 注销重定向地址列表
///
public List PostLogoutRedirectUris { get; set; }
///
/// 允许的作用域
///
public List AllowedScopes { get; set; }
///
/// 访问令牌生命周期
///
public int AccessTokenLifetime { get; set; }
}