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>
This commit is contained in:
David Mehren 2021-02-11 22:00:08 +01:00
parent 2b3e6f7268
commit 4655e9c785
No known key found for this signature in database
GPG key ID: 185982BA4C42B7C3

View file

@ -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)
})
}))