1
0
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:
Chad Scharf 2020-08-26 08:45:10 -04:00 committed by GitHub
parent 2cd6d4f61a
commit 1c04e30689
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 21 additions and 20 deletions

View File

@ -1,9 +0,0 @@
namespace Bit.Core.Enums
{
public enum Saml2BindingType : byte
{
HttpRedirect = 1,
HttpPost = 2,
Artifact = 4
}
}

View File

@ -2,8 +2,8 @@
{
public enum Saml2SigningBehavior : byte
{
IfIdpWantAuthnRequestsSigned = 0,
Always = 1,
Never = 3
IfIdpWantAuthnRequestsSigned = 0,
Always = 1,
Never = 3
}
}

View File

@ -1,8 +0,0 @@
namespace Bit.Core.Enums
{
public enum SsoType : byte
{
OpenIdConnect = 1,
Saml2 = 2,
}
}

View File

@ -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; }
}
}
}
}