[MM-54029] IDP descriptor can any string (#24250)

Co-authored-by: Mattermost Build <build@mattermost.com>
This commit is contained in:
Julien Tant 2023-11-06 15:24:59 -07:00 committed by GitHub
parent c516d5cb15
commit 4dbf1f8c26
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -8860,7 +8860,7 @@
},
{
"id": "model.config.is_valid.saml_idp_descriptor_url.app_error",
"translation": "Identity Provider Issuer URL must be a valid URL and start with http:// or https://."
"translation": "Identity Provider Issuer URL cannot be an empty string."
},
{
"id": "model.config.is_valid.saml_idp_url.app_error",

View File

@ -3794,7 +3794,7 @@ func (s *SamlSettings) isValid() *AppError {
return NewAppError("Config.IsValid", "model.config.is_valid.saml_idp_url.app_error", nil, "", http.StatusBadRequest)
}
if *s.IdpDescriptorURL == "" || !IsValidHTTPURL(*s.IdpDescriptorURL) {
if *s.IdpDescriptorURL == "" {
return NewAppError("Config.IsValid", "model.config.is_valid.saml_idp_descriptor_url.app_error", nil, "", http.StatusBadRequest)
}