From 308708d8a7f11f75a7508206bf50be05c5cb142a Mon Sep 17 00:00:00 2001 From: Alexandre Bourdin Date: Tue, 13 Feb 2024 14:21:46 +0100 Subject: [PATCH] Merge pull request #16991 from overleaf/ab-sso-login-url [web] Change /institutional-login URL to /sso-login GitOrigin-RevId: 0856f3f63e3bba3431dd554b4b65fe913d8a50fe --- services/web/locales/en.json | 1 + services/web/test/acceptance/src/helpers/UserHelper.js | 2 +- services/web/test/unit/src/User/UserControllerTests.js | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/services/web/locales/en.json b/services/web/locales/en.json index bc2774dadd..09f98e0414 100644 --- a/services/web/locales/en.json +++ b/services/web/locales/en.json @@ -1769,6 +1769,7 @@ "sso_link_invite_has_been_sent_to_email": "An SSO invite reminder has been sent to <0>__email__", "sso_link_now_or_later": "We need to link your account with the group identity provider. You can either do this now, or do this later.", "sso_link_your_group_uses_sso": "The group you are part of uses single sign-on", + "sso_login": "SSO login", "sso_logs": "SSO Logs", "sso_not_active": "SSO not active", "sso_not_linked": "You have not linked your account to __provider__. Please log in to your account another way and link your __provider__ account via your account settings.", diff --git a/services/web/test/acceptance/src/helpers/UserHelper.js b/services/web/test/acceptance/src/helpers/UserHelper.js index c630ce6b8b..7949d2c959 100644 --- a/services/web/test/acceptance/src/helpers/UserHelper.js +++ b/services/web/test/acceptance/src/helpers/UserHelper.js @@ -348,7 +348,7 @@ class UserHelper { if (body.message && body.message.type === 'error') { throw new Error(`register api error: ${body.message.text}`) } - if (body.redir === '/institutional-login') { + if (body.redir === '/sso-login') { throw new Error( `cannot register intitutional email: ${options.json.email}` ) diff --git a/services/web/test/unit/src/User/UserControllerTests.js b/services/web/test/unit/src/User/UserControllerTests.js index 8028f3fa6d..df6961450c 100644 --- a/services/web/test/unit/src/User/UserControllerTests.js +++ b/services/web/test/unit/src/User/UserControllerTests.js @@ -554,7 +554,7 @@ describe('UserController', function () { }) it('should redirect after logout', function (done) { - this.req.body.redirect = '/institutional-login' + this.req.body.redirect = '/sso-login' this.req.session.destroy = sinon.stub().callsArgWith(0) this.res.redirect = url => { url.should.equal(this.req.body.redirect)