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

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

GitOrigin-RevId: 0856f3f63e3bba3431dd554b4b65fe913d8a50fe
This commit is contained in:
Alexandre Bourdin 2024-02-13 14:21:46 +01:00 committed by Copybot
parent 0d00c3952c
commit 308708d8a7
3 changed files with 3 additions and 2 deletions

View file

@ -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_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_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_link_your_group_uses_sso": "The group you are part of uses single sign-on",
"sso_login": "SSO login",
"sso_logs": "SSO Logs", "sso_logs": "SSO Logs",
"sso_not_active": "SSO not active", "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.", "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.",

View file

@ -348,7 +348,7 @@ class UserHelper {
if (body.message && body.message.type === 'error') { if (body.message && body.message.type === 'error') {
throw new Error(`register api error: ${body.message.text}`) throw new Error(`register api error: ${body.message.text}`)
} }
if (body.redir === '/institutional-login') { if (body.redir === '/sso-login') {
throw new Error( throw new Error(
`cannot register intitutional email: ${options.json.email}` `cannot register intitutional email: ${options.json.email}`
) )

View file

@ -554,7 +554,7 @@ describe('UserController', function () {
}) })
it('should redirect after logout', function (done) { 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.req.session.destroy = sinon.stub().callsArgWith(0)
this.res.redirect = url => { this.res.redirect = url => {
url.should.equal(this.req.body.redirect) url.should.equal(this.req.body.redirect)