From 4655e9c785f6af0639c0d1a2dadaf06271c56234 Mon Sep 17 00:00:00 2001 From: David Mehren Date: Thu, 11 Feb 2021 22:00:08 +0100 Subject: 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 --- lib/web/auth/saml/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/web/auth/saml') 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) }) })) -- cgit v1.2.3