feat(xo-server-auth-saml): log profile when no name found

This commit is contained in:
Julien Fontanet 2018-04-10 19:09:30 +02:00
parent 0f1d052493
commit 7fe5b66fdb

View File

@ -52,6 +52,7 @@ class AuthSamlXoPlugin {
new Strategy(this._conf, async (profile, done) => {
const name = profile[this._usernameField]
if (!name) {
console.warn('xo-server-auth-saml:', profile)
done('no name found for this user')
return
}