mirror of
https://github.com/bitwarden/server
synced 2025-12-06 00:03:34 +00:00
25 lines
634 B
C#
25 lines
634 B
C#
using System.Text.Json.Serialization;
|
|
using Bit.Core.AdminConsole.Enums;
|
|
using Bit.Core.Models.OrganizationConnectionConfigs;
|
|
|
|
namespace Bit.Core.AdminConsole.Models.OrganizationConnectionConfigs;
|
|
|
|
public class ScimConfig : IConnectionConfig
|
|
{
|
|
public bool Enabled { get; set; }
|
|
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
|
|
public ScimProviderType? ScimProvider { get; set; }
|
|
|
|
public bool Validate(out string exception)
|
|
{
|
|
if (!Enabled)
|
|
{
|
|
exception = "Scim Config is disabled";
|
|
return false;
|
|
}
|
|
|
|
exception = "";
|
|
return true;
|
|
}
|
|
}
|