mirror of
https://github.com/overleaf/overleaf.git
synced 2025-04-26 12:02:06 +00:00
Merge pull request #16924 from overleaf/jel-clear-sessions-after-linking
[web] Clear other sessions after linking group SSO for managed users GitOrigin-RevId: 0671154a34bf67532bad64f1abbdb8a332ab480a
This commit is contained in:
parent
377cd82f20
commit
0d00c3952c
1 changed files with 9 additions and 1 deletions
|
@ -138,7 +138,14 @@ class Subscription {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
linkGroupSSO(user, externalUserId, userIdAttribute, auditLog, callback) {
|
linkGroupSSO(
|
||||||
|
user,
|
||||||
|
externalUserId,
|
||||||
|
userIdAttribute,
|
||||||
|
auditLog,
|
||||||
|
sessionID,
|
||||||
|
callback
|
||||||
|
) {
|
||||||
SubscriptionModel.findById(this._id).exec((error, subscription) => {
|
SubscriptionModel.findById(this._id).exec((error, subscription) => {
|
||||||
if (error) {
|
if (error) {
|
||||||
return callback(error)
|
return callback(error)
|
||||||
|
@ -150,6 +157,7 @@ class Subscription {
|
||||||
externalUserId,
|
externalUserId,
|
||||||
userIdAttribute,
|
userIdAttribute,
|
||||||
auditLog,
|
auditLog,
|
||||||
|
sessionID,
|
||||||
callback
|
callback
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Reference in a new issue