Răsfoiți Sursa

Merge pull request #16991 from overleaf/ab-sso-login-url

[web] Change /institutional-login URL to /sso-login

GitOrigin-RevId: 0856f3f63e3bba3431dd554b4b65fe913d8a50fe
Alexandre Bourdin 2 ani în urmă
părinte
comite
308708d8a7

+ 1 - 0
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__</0>",
   "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.",

+ 1 - 1
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}`
       )

+ 1 - 1
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)