|
|
|
|
@ -72,7 +72,7 @@ namespace Bit.Api.Models.Request.Organizations
@@ -72,7 +72,7 @@ namespace Bit.Api.Models.Request.Organizations
|
|
|
|
|
public Saml2BindingType IdpBindingType { get; set; } |
|
|
|
|
public string IdpSingleSignOnServiceUrl { get; set; } |
|
|
|
|
public string IdpSingleLogoutServiceUrl { get; set; } |
|
|
|
|
public string IdpArtifactResolutionServiceUrl { get; set; } |
|
|
|
|
public string IdpArtifactResolutionServiceUrl { get => null; set { /*IGNORE*/ } } |
|
|
|
|
public string IdpX509PublicCert { get; set; } |
|
|
|
|
public string IdpOutboundSigningAlgorithm { get; set; } |
|
|
|
|
public bool? IdpAllowUnsolicitedAuthnResponse { get; set; } |
|
|
|
|
@ -111,12 +111,6 @@ namespace Bit.Api.Models.Request.Organizations
@@ -111,12 +111,6 @@ namespace Bit.Api.Models.Request.Organizations
|
|
|
|
|
new[] { nameof(IdpEntityId) }); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (IdpBindingType == Saml2BindingType.Artifact && string.IsNullOrWhiteSpace(IdpArtifactResolutionServiceUrl)) |
|
|
|
|
{ |
|
|
|
|
yield return new ValidationResult(i18nService.GetLocalizedHtmlString("Saml2BindingTypeValidationError"), |
|
|
|
|
new[] { nameof(IdpArtifactResolutionServiceUrl) }); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (!Uri.IsWellFormedUriString(IdpEntityId, UriKind.Absolute) && string.IsNullOrWhiteSpace(IdpSingleSignOnServiceUrl)) |
|
|
|
|
{ |
|
|
|
|
yield return new ValidationResult(i18nService.GetLocalizedHtmlString("IdpSingleSignOnServiceUrlValidationError"), |
|
|
|
|
@ -129,12 +123,6 @@ namespace Bit.Api.Models.Request.Organizations
@@ -129,12 +123,6 @@ namespace Bit.Api.Models.Request.Organizations
|
|
|
|
|
new[] { nameof(IdpSingleSignOnServiceUrl) }); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (InvalidServiceUrl(IdpArtifactResolutionServiceUrl)) |
|
|
|
|
{ |
|
|
|
|
yield return new ValidationResult(i18nService.GetLocalizedHtmlString("IdpArtifactResolutionServiceUrlInvalid"), |
|
|
|
|
new[] { nameof(IdpArtifactResolutionServiceUrl) }); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (InvalidServiceUrl(IdpSingleLogoutServiceUrl)) |
|
|
|
|
{ |
|
|
|
|
yield return new ValidationResult(i18nService.GetLocalizedHtmlString("IdpSingleLogoutServiceUrlInvalid"), |
|
|
|
|
@ -190,7 +178,7 @@ namespace Bit.Api.Models.Request.Organizations
@@ -190,7 +178,7 @@ namespace Bit.Api.Models.Request.Organizations
|
|
|
|
|
IdpBindingType = IdpBindingType, |
|
|
|
|
IdpSingleSignOnServiceUrl = IdpSingleSignOnServiceUrl, |
|
|
|
|
IdpSingleLogoutServiceUrl = IdpSingleLogoutServiceUrl, |
|
|
|
|
IdpArtifactResolutionServiceUrl = IdpArtifactResolutionServiceUrl, |
|
|
|
|
IdpArtifactResolutionServiceUrl = null, |
|
|
|
|
IdpX509PublicCert = StripPemCertificateElements(IdpX509PublicCert), |
|
|
|
|
IdpOutboundSigningAlgorithm = IdpOutboundSigningAlgorithm, |
|
|
|
|
IdpAllowUnsolicitedAuthnResponse = IdpAllowUnsolicitedAuthnResponse.GetValueOrDefault(), |
|
|
|
|
|