Merge pull request #2442 from overleaf/ew-check-saml-beta-on-login

use samlBeta flag to test university with sso_enabled=false

GitOrigin-RevId: 3f0dc09b23f5e7814ba78af148685a6a07e30242
This commit is contained in:
Jessica Lawshe 2019-12-09 09:09:32 -06:00 committed by Copybot
parent bf1d112d78
commit 1a91b5d65c

View file

@ -10,7 +10,10 @@ class UKAMFEntity {
getSamlConfig() {
const idp = this.data.IDPSSODescriptor[0]
const keys = idp.KeyDescriptor
const signingKey = keys.find(key => _.get(key, ['$', 'use']) === 'signing')
const signingKey =
keys.length === 1
? keys[0]
: keys.find(key => _.get(key, ['$', 'use']) === 'signing')
const entityId = this.data.$.entityID
let cert = _.get(signingKey, [