mirror of
https://github.com/9p4/jellyfin-plugin-sso
synced 2026-10-21 06:08:09 +11:00
38 lines
1.0 KiB
C#
38 lines
1.0 KiB
C#
using System.Collections.Generic;
|
|
using System.Xml.Serialization;
|
|
|
|
namespace Jellyfin.Plugin.SSO_Auth.Config {
|
|
/// <summary>
|
|
/// Plugin Configuration.
|
|
/// </summary>
|
|
public class PluginConfiguration : MediaBrowser.Model.Plugins.BasePluginConfiguration {
|
|
/// <summary>
|
|
/// Initializes a new instance of the <see cref="PluginConfiguration"/> class.
|
|
/// </summary>
|
|
public PluginConfiguration()
|
|
{
|
|
SamlConfigs = new List<SamlConfig>();
|
|
}
|
|
|
|
[XmlArray("SamlConfigs"), XmlArrayItem(typeof(SamlConfig), ElementName = "SamlConfigs")]
|
|
public List<SamlConfig> SamlConfigs { get; set; }
|
|
|
|
}
|
|
|
|
[XmlRoot("PluginConfiguration")]
|
|
public class SamlConfig
|
|
{
|
|
public string SamlEndpoint { get; set; }
|
|
|
|
public string SamlClientId { get; set; }
|
|
|
|
public string SamlCertificate { get; set; }
|
|
|
|
public bool Enabled { get; set; }
|
|
|
|
public bool EnableAllFolders { get; set; }
|
|
|
|
public string[] EnabledFolders { get; set; }
|
|
}
|
|
}
|