feat(xo-server-auth-saml): log profile when no name found
This commit is contained in:
parent
0f1d052493
commit
7fe5b66fdb
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user