mirror of
https://github.com/n8n-io/n8n.git
synced 2026-05-28 15:27:03 +02: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 New Issue
Block a user