diff options
author | David Mehren | 2021-02-11 22:00:08 +0100 |
---|---|---|
committer | David Mehren | 2021-02-11 22:00:22 +0100 |
commit | 4655e9c785f6af0639c0d1a2dadaf06271c56234 (patch) | |
tree | 4a8faddfeef728a46aec386696ef2128d538bf41 | |
parent | 2b3e6f726881a2efbfa0d65f93b02a53cea4da92 (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>
-rw-r--r-- | lib/web/auth/saml/index.js | 2 |
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) }) })) |