fixed the SAML callback URL to unconfigurable.
This commit is contained in:
@@ -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: [],
|
||||
|
||||
@@ -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'),
|
||||
|
||||
Reference in New Issue
Block a user