mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
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:
parent
bf1d112d78
commit
1a91b5d65c
1 changed files with 4 additions and 1 deletions
|
@ -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, [
|
||||
|
|
Loading…
Reference in a new issue