mirror of
https://github.com/bitwarden/server.git
synced 2025-05-20 11:04:31 -05:00
Requested configuration cleanup for sso (#891)
This commit is contained in:
parent
2cd6d4f61a
commit
1c04e30689
@ -1,9 +0,0 @@
|
||||
namespace Bit.Core.Enums
|
||||
{
|
||||
public enum Saml2BindingType : byte
|
||||
{
|
||||
HttpRedirect = 1,
|
||||
HttpPost = 2,
|
||||
Artifact = 4
|
||||
}
|
||||
}
|
@ -2,8 +2,8 @@
|
||||
{
|
||||
public enum Saml2SigningBehavior : byte
|
||||
{
|
||||
IfIdpWantAuthnRequestsSigned = 0,
|
||||
Always = 1,
|
||||
Never = 3
|
||||
IfIdpWantAuthnRequestsSigned = 0,
|
||||
Always = 1,
|
||||
Never = 3
|
||||
}
|
||||
}
|
||||
|
@ -1,8 +0,0 @@
|
||||
namespace Bit.Core.Enums
|
||||
{
|
||||
public enum SsoType : byte
|
||||
{
|
||||
OpenIdConnect = 1,
|
||||
Saml2 = 2,
|
||||
}
|
||||
}
|
@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using Bit.Core.Enums;
|
||||
|
||||
namespace Bit.Core
|
||||
{
|
||||
@ -42,6 +43,7 @@ namespace Bit.Core
|
||||
public virtual AmazonSettings Amazon { get; set; } = new AmazonSettings();
|
||||
public virtual ServiceBusSettings ServiceBus { get; set; } = new ServiceBusSettings();
|
||||
public virtual AppleIapSettings AppleIap { get; set; } = new AppleIapSettings();
|
||||
public virtual SsoSettings Sso { get; set; } = new SsoSettings();
|
||||
|
||||
public class BaseServiceUriSettings
|
||||
{
|
||||
@ -273,5 +275,21 @@ namespace Bit.Core
|
||||
public string Password { get; set; }
|
||||
public bool AppInReview { get; set; }
|
||||
}
|
||||
|
||||
public class SsoSettings
|
||||
{
|
||||
public virtual SamlSettings Saml { get; set; } = new SamlSettings();
|
||||
|
||||
public class SamlSettings
|
||||
{
|
||||
public Saml2NameIdFormat NameIdFormat { get; set; } =
|
||||
Saml2NameIdFormat.Persistent;
|
||||
public bool WantAssertionsSigned { get; set; }
|
||||
public string OutboundSigningAlgorithm { get; set; }
|
||||
public Saml2SigningBehavior SigningBehavior { get; set; } =
|
||||
Saml2SigningBehavior.IfIdpWantAuthnRequestsSigned;
|
||||
public bool ValidateCertificates { get; set; }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user