mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-11 21:07:28 -08:00
fix(core): Remove SAML config metadataUrl if XML metadata is set directly (#6143)
remove metadataUrl if metadata is set directly
This commit is contained in:
parent
d9af69116a
commit
25fe14be56
|
@ -211,6 +211,8 @@ export class SamlService {
|
|||
this._samlPreferences.metadata = fetchedMetadata;
|
||||
}
|
||||
} else if (prefs.metadata) {
|
||||
// remove metadataUrl if metadata is set directly
|
||||
this._samlPreferences.metadataUrl = undefined;
|
||||
const validationResult = await validateMetadata(prefs.metadata);
|
||||
if (!validationResult) {
|
||||
throw new Error('Invalid SAML metadata');
|
||||
|
|
Loading…
Reference in a new issue