Merge pull request #656 from nextcloud/fix/noid/metadata-idp-1

fix fetching meta data with IdP id 1
This commit is contained in:
blizzz 2022-09-22 15:00:44 +02:00 committed by GitHub
commit f1cc92dc34
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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) {