43 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			43 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
| // ***********************************************************************
 | |
| // <copyright file="AuthSettings.cs">
 | |
| //     AgileWebs
 | |
| // </copyright>
 | |
| // ***********************************************************************
 | |
| 
 | |
| namespace Core.Thalos.BuildingBlocks;
 | |
| public class AuthSettings
 | |
| {
 | |
|     public AzureAuthSettings? Azure { get; set; }
 | |
|     public TokenAuthSettings Token { get; set; } = null!;
 | |
|     public GoogleAuthSettings? Google { get; set; }
 | |
| }
 | |
| 
 | |
| public class AzureAuthSettings
 | |
| {
 | |
|     public string? Instance { get; set; }
 | |
|     public string? TenantId { get; set; }
 | |
|     public string? ClientId { get; set; }
 | |
|     public string? ClientSecret { get; set; }
 | |
|     public string? ThalosAppAuthorizationUrl { get; set; }
 | |
|     public string? ThalosAppTokenUrl { get; set; }
 | |
|     public string? ThalosAppClientId { get; set; }
 | |
|     public string? ThalosAppScope { get; set; }
 | |
| }
 | |
| 
 | |
| public class GoogleAuthSettings
 | |
| {
 | |
|     public string? ClientId { get; set; }
 | |
|     public string? ClientSecret { get; set; }
 | |
|     public string? RedirectUri { get; set; }
 | |
| 
 | |
| }
 | |
| 
 | |
| public class TokenAuthSettings
 | |
| {
 | |
|     public string? PrivateKey { get; set; }
 | |
|     public string? PublicKey { get; set; }
 | |
|     public string? Audience { get; set; }
 | |
|     public string? Issuer { get; set; }
 | |
| }
 | |
| 
 |