summaryrefslogtreecommitdiff
path: root/lib/web
diff options
context:
space:
mode:
authorDavid Mehren2021-02-11 22:00:08 +0100
committerDavid Mehren2021-02-11 22:00:22 +0100
commit4655e9c785f6af0639c0d1a2dadaf06271c56234 (patch)
tree4a8faddfeef728a46aec386696ef2128d538bf41 /lib/web
parent2b3e6f726881a2efbfa0d65f93b02a53cea4da92 (diff)
Fix SAML auth error logging
As stated in https://github.com/node-saml/passport-saml/blob/master/CHANGELOG.md#v200-2020-11-03 and the corresponding PR https://github.com/node-saml/passport-saml/pull/412 passport-saml now always throws error objects instead of strings. This fixes our error logging to accommodate this change. Signed-off-by: David Mehren <git@herrmehren.de>
Diffstat (limited to '')
-rw-r--r--lib/web/auth/saml/index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/web/auth/saml/index.js b/lib/web/auth/saml/index.js
index 14f3966d..c48b93e2 100644
--- a/lib/web/auth/saml/index.js
+++ b/lib/web/auth/saml/index.js
@@ -85,7 +85,7 @@ passport.use(new SamlStrategy({
}
}
}).catch(function (err) {
- logger.error('saml auth failed: ' + err)
+ logger.error('saml auth failed: ' + err.message)
return done(err, null)
})
}))