work with authentik
This commit is contained in:
32
OTSSignsOrchestrator.Core/Models/DTOs/AuthentikSamlConfig.cs
Normal file
32
OTSSignsOrchestrator.Core/Models/DTOs/AuthentikSamlConfig.cs
Normal file
@@ -0,0 +1,32 @@
|
||||
namespace OTSSignsOrchestrator.Core.Models.DTOs;
|
||||
|
||||
/// <summary>
|
||||
/// Holds the IdP metadata extracted from an Authentik SAML provider,
|
||||
/// used to render the settings-custom.php template.
|
||||
/// </summary>
|
||||
public class AuthentikSamlConfig
|
||||
{
|
||||
/// <summary>IdP entity ID from SAML metadata (typically "authentik").</summary>
|
||||
public string IdpEntityId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>Base64-encoded X.509 signing certificate (no BEGIN/END markers).</summary>
|
||||
public string IdpX509Cert { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>IdP Single Sign-On URL (HTTP-Redirect binding).</summary>
|
||||
public string SsoUrlRedirect { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>IdP Single Sign-On URL (HTTP-POST binding).</summary>
|
||||
public string SsoUrlPost { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>IdP Single Logout URL (HTTP-Redirect binding).</summary>
|
||||
public string SloUrlRedirect { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>IdP Single Logout URL (HTTP-POST binding).</summary>
|
||||
public string SloUrlPost { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>Authentik provider primary key (for audit/debugging).</summary>
|
||||
public int ProviderId { get; set; }
|
||||
|
||||
/// <summary>Slug used in Authentik application URLs.</summary>
|
||||
public string ApplicationSlug { get; set; } = string.Empty;
|
||||
}
|
||||
@@ -4,4 +4,10 @@ public class TemplateConfig
|
||||
{
|
||||
public string Yaml { get; set; } = string.Empty;
|
||||
public DateTime FetchedAt { get; set; } = DateTime.UtcNow;
|
||||
|
||||
/// <summary>
|
||||
/// Local filesystem path to the cached git clone.
|
||||
/// Used to access additional template files (e.g. settings-custom.php.template).
|
||||
/// </summary>
|
||||
public string CacheDir { get; set; } = string.Empty;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user