username is not define in passport-saml.
This commit is contained in:
parent
6c3719b9b8
commit
e61873f335
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user