summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config.json.example1
-rw-r--r--lib/config/default.js1
-rw-r--r--lib/web/auth/saml/index.js2
3 files changed, 1 insertions, 3 deletions
diff --git a/config.json.example b/config.json.example
index db1dd94f..00165f51 100644
--- a/config.json.example
+++ b/config.json.example
@@ -79,7 +79,6 @@
"idpSsoUrl": "change: authentication endpoint of IdP",
"idpCert": "change: certificate file path of IdP in PEM format",
"issuer": "change or delete: identity of the service provider (default: serverurl)",
- "callbackUrl": "change or delete: callback url to consume assertions (default: serverurl+'/auth/saml/callback')",
"identifierFormat": "change or delete: name identifier format (default: 'urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress')",
"groupAttribute": "change or delete: attribute name for group list (ex: memberOf)",
"requiredGroups": [ "change or delete: group names that allowed" ],
diff --git a/lib/config/default.js b/lib/config/default.js
index ff1e3a3e..96bfe79b 100644
--- a/lib/config/default.js
+++ b/lib/config/default.js
@@ -102,7 +102,6 @@ module.exports = {
idpSsoUrl: undefined,
idpCert: undefined,
issuer: undefined,
- callbackUrl: undefined,
identifierFormat: 'urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress',
groupAttribute: undefined,
externalGroups: [],
diff --git a/lib/web/auth/saml/index.js b/lib/web/auth/saml/index.js
index 575c6f31..063fa1d6 100644
--- a/lib/web/auth/saml/index.js
+++ b/lib/web/auth/saml/index.js
@@ -13,7 +13,7 @@ const intersection = function (array1, array2) { return array1.filter((n) => arr
let samlAuth = module.exports = Router()
passport.use(new SamlStrategy({
- callbackUrl: config.saml.callbackUrl || config.serverurl + '/auth/saml/callback',
+ callbackUrl: config.serverurl + '/auth/saml/callback',
entryPoint: config.saml.idpSsoUrl,
issuer: config.saml.issuer || config.serverurl,
cert: fs.readFileSync(config.saml.idpCert, 'utf-8'),