From 676043b50af81776512fdabdfcd28fde8bb68628 Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Wed, 21 Sep 2022 14:55:29 +0200 Subject: [PATCH] fix fetching meta data with IdP id 1 Signed-off-by: Arthur Schiwon --- js/admin.js | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/js/admin.js b/js/admin.js index e87c3b0..a190f1f 100644 --- a/js/admin.js +++ b/js/admin.js @@ -60,14 +60,6 @@ OCP.AppConfig.setValue('user_saml', 'type', '', {success: function() {location.reload();}}); }, - - getConfigIdentifier: function() { - if (this.currentConfig === '1') { - return ''; - } - return this.currentConfig + '-'; - }, - /** * Add a new provider */ @@ -131,7 +123,7 @@ // Checks on each request whether the settings make sense or not $.ajax({ url: OC.generateUrl('/apps/user_saml/saml/metadata'), - data: { idp: OCA.User_SAML.Admin.getConfigIdentifier() }, + data: { idp: this.currentConfig }, type: 'GET' }).fail(function (e) { if (e.status === 500) {