mirror of
https://github.com/netzbegruenung/user_saml.git
synced 2024-05-04 18:13:41 +02:00
fix fetching meta data with IdP id 1
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
This commit is contained in:
parent
7a78b3c775
commit
676043b50a
10
js/admin.js
10
js/admin.js
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue