fix fetching meta data with IdP id 1

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
This commit is contained in:
Arthur Schiwon 2022-09-21 14:55:29 +02:00
parent 7a78b3c775
commit 676043b50a
No known key found for this signature in database
GPG key ID: 7424F1874854DF23

View file

@ -60,14 +60,6 @@
OCP.AppConfig.setValue('user_saml', 'type', '', {success: function() {location.reload();}}); OCP.AppConfig.setValue('user_saml', 'type', '', {success: function() {location.reload();}});
}, },
getConfigIdentifier: function() {
if (this.currentConfig === '1') {
return '';
}
return this.currentConfig + '-';
},
/** /**
* Add a new provider * Add a new provider
*/ */
@ -131,7 +123,7 @@
// Checks on each request whether the settings make sense or not // Checks on each request whether the settings make sense or not
$.ajax({ $.ajax({
url: OC.generateUrl('/apps/user_saml/saml/metadata'), url: OC.generateUrl('/apps/user_saml/saml/metadata'),
data: { idp: OCA.User_SAML.Admin.getConfigIdentifier() }, data: { idp: this.currentConfig },
type: 'GET' type: 'GET'
}).fail(function (e) { }).fail(function (e) {
if (e.status === 500) { if (e.status === 500) {