mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 09:09:36 +02:00
Merge pull request #27637 from overleaf/jel-remove-unused-group-sso
[web] Use `providerId` for group SSO and remove unused `universityId` GitOrigin-RevId: 0928cdfee78cae5cdede57159b9968c15e26f27c
This commit is contained in:
@@ -21,7 +21,7 @@ async function log(req, data, samlAssertion) {
|
||||
const { saml } = req.session
|
||||
const userId = SessionManager.getLoggedInUserId(req.session)
|
||||
|
||||
providerId = (req.session.saml?.universityId || '').toString()
|
||||
providerId = (req.session.saml?.providerId || '').toString()
|
||||
sessionId = (req.sessionID || '').toString().substr(0, 8)
|
||||
|
||||
const samlLog = new SamlLog()
|
||||
|
||||
@@ -32,7 +32,7 @@ describe('SamlLogHandler', function () {
|
||||
beforeEach(async function () {
|
||||
await SamlLogHandler.promises.log(
|
||||
{
|
||||
session: { saml: { universityId: providerId } },
|
||||
session: { saml: { providerId } },
|
||||
sessionID: sessionId,
|
||||
path: '/saml/ukamf',
|
||||
},
|
||||
@@ -46,7 +46,7 @@ describe('SamlLogHandler', function () {
|
||||
samlLog.jsonData.should.equal(
|
||||
JSON.stringify({
|
||||
foo: true,
|
||||
samlSession: { universityId: 'provider-id' },
|
||||
samlSession: { providerId: 'provider-id' },
|
||||
})
|
||||
)
|
||||
expect(samlLog.data).to.be.undefined
|
||||
@@ -61,7 +61,7 @@ describe('SamlLogHandler', function () {
|
||||
|
||||
await SamlLogHandler.promises.log(
|
||||
{
|
||||
session: { saml: { universityId: providerId } },
|
||||
session: { saml: { providerId } },
|
||||
sessionID: sessionId,
|
||||
path: '/saml/ukamf',
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user