Merge pull request #28126 from overleaf/ii-domain-capture-join-success-message

[web] Notification message for joining group via domain capture

GitOrigin-RevId: 67ef924b2d80afb5e1de75fb6aab147263c0f33c
This commit is contained in:
ilkin-overleaf
2025-09-09 16:09:31 +03:00
committed by Copybot
parent 18c68fb34a
commit 452d77cabc
8 changed files with 65 additions and 4 deletions

View File

@@ -285,6 +285,8 @@ async function projectListPage(req, res, next) {
const notificationsInstitution = []
// Institution and group SSO Notifications
let groupSsoSetupSuccess
let viaDomainCapture
let joinedGroupName = ''
let reconfirmedViaSAML
if (Features.hasFeature('saml')) {
reconfirmedViaSAML = _.get(req.session, ['saml', 'reconfirmed'])
@@ -324,6 +326,8 @@ async function projectListPage(req, res, next) {
// Notification group SSO: After SSO Linked
if (samlSession.linkedGroup) {
groupSsoSetupSuccess = true
viaDomainCapture = samlSession.domainCaptureJoin
joinedGroupName = samlSession.universityName
}
// Notification institution SSO: After SSO Linked or Logging in
@@ -517,6 +521,8 @@ async function projectListPage(req, res, next) {
showBrlGeoBanner,
projectDashboardReact: true, // used in navbar
groupSsoSetupSuccess,
joinedGroupName,
viaDomainCapture,
groupSubscriptionsPendingEnrollment:
groupSubscriptionsPendingEnrollment.map(subscription => ({
groupId: subscription._id,