Files
overleaf-cep/services/web/app/src/Features/Subscription/GroupUtils.js
T
Alexandre Bourdin 73349a1b1d Merge pull request #16550 from overleaf/ab-unlink-sso-user-leaves-group
[web] Unlink group SSO when user leaves/is removed from group

GitOrigin-RevId: a4515f8b6f0f0012fc4d9f47b11e6f711743c2ec
2024-01-19 09:05:23 +00:00

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,
}