mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-08 00:29:04 +02:00
73349a1b1d
[web] Unlink group SSO when user leaves/is removed from group GitOrigin-RevId: a4515f8b6f0f0012fc4d9f47b11e6f711743c2ec
15 lines
365 B
JavaScript
15 lines
365 B
JavaScript
// ts-check
|
|
/**
|
|
* Builds a group subscription's `providerId` to be used to identify SAML identifiers
|
|
* belonging to this group.
|
|
* @param {string | import('mongodb').ObjectId} subscriptionId
|
|
* @returns {string}
|
|
*/
|
|
function getProviderId(subscriptionId) {
|
|
return `ol-group-subscription-id:${subscriptionId.toString()}`
|
|
}
|
|
|
|
module.exports = {
|
|
getProviderId,
|
|
}
|