username is not define in passport-saml.

This commit is contained in:
Julien Fontanet 2015-08-28 18:23:46 +02:00
parent 6c3719b9b8
commit e61873f335

View File

@ -12,7 +12,7 @@ class AuthSamlXoPlugin {
load (xo) {
xo.registerPassportStrategy(new Strategy(this._conf, async (profile, done) => {
try {
done(null, await xo.registerUser('saml', profile.username))
done(null, await xo.registerUser('saml', profile.uid))
} catch (error) {
done(error.message)
}