mirror of
https://github.com/bitwarden/server
synced 2025-12-24 04:03:25 +00:00
refactor(sso-config-tweaks): [Auth/PM-933] Make Single Sign-On URL required regardless of EntityId (#6314)
Makes the Single Sign-On URL required regardless of the EntityId
This commit is contained in:
@@ -121,7 +121,7 @@ public class SsoConfigurationDataRequest : IValidatableObject
|
||||
new[] { nameof(IdpEntityId) });
|
||||
}
|
||||
|
||||
if (!Uri.IsWellFormedUriString(IdpEntityId, UriKind.Absolute) && string.IsNullOrWhiteSpace(IdpSingleSignOnServiceUrl))
|
||||
if (string.IsNullOrWhiteSpace(IdpSingleSignOnServiceUrl))
|
||||
{
|
||||
yield return new ValidationResult(i18nService.GetLocalizedHtmlString("IdpSingleSignOnServiceUrlValidationError"),
|
||||
new[] { nameof(IdpSingleSignOnServiceUrl) });
|
||||
@@ -139,6 +139,7 @@ public class SsoConfigurationDataRequest : IValidatableObject
|
||||
new[] { nameof(IdpSingleLogoutServiceUrl) });
|
||||
}
|
||||
|
||||
// TODO: On server, make public certificate required for SAML2 SSO: https://bitwarden.atlassian.net/browse/PM-26028
|
||||
if (!string.IsNullOrWhiteSpace(IdpX509PublicCert))
|
||||
{
|
||||
// Validate the certificate is in a valid format
|
||||
|
||||
@@ -389,7 +389,7 @@
|
||||
<value>If SAML Binding Type is set to artifact, identity provider resolution service URL is required.</value>
|
||||
</data>
|
||||
<data name="IdpSingleSignOnServiceUrlValidationError" xml:space="preserve">
|
||||
<value>If Identity Provider Entity ID is not a URL, single sign on service URL is required.</value>
|
||||
<value>Single sign on service URL is required.</value>
|
||||
</data>
|
||||
<data name="InvalidSchemeConfigurationError" xml:space="preserve">
|
||||
<value>The configured authentication scheme is not valid: "{0}"</value>
|
||||
|
||||
Reference in New Issue
Block a user