|
|
@@ -8,8 +8,28 @@ class UKAMFEntity {
|
|
|
}
|
|
|
|
|
|
getSamlConfig() {
|
|
|
+ let hiddenIdP = false
|
|
|
const idp = this.data.IDPSSODescriptor[0]
|
|
|
+ const idpMetaData =
|
|
|
+ _.get(this.data, [
|
|
|
+ 'Extensions',
|
|
|
+ 0,
|
|
|
+ 'mdattr:EntityAttributes',
|
|
|
+ 0,
|
|
|
+ 'saml:Attribute',
|
|
|
+ ]) || []
|
|
|
+ idpMetaData.forEach(data => {
|
|
|
+ const value = _.get(data, ['saml:AttributeValue', 0])
|
|
|
+ if (
|
|
|
+ value === 'http://refeds.org/category/hide-from-discovery' ||
|
|
|
+ value === 'https://refeds.org/category/hide-from-discovery'
|
|
|
+ ) {
|
|
|
+ hiddenIdP = true
|
|
|
+ }
|
|
|
+ })
|
|
|
+
|
|
|
const keys = idp.KeyDescriptor
|
|
|
+
|
|
|
const signingKey =
|
|
|
keys.length === 1
|
|
|
? keys[0]
|
|
|
@@ -43,6 +63,7 @@ class UKAMFEntity {
|
|
|
cert,
|
|
|
entityId,
|
|
|
entryPoint,
|
|
|
+ hiddenIdP,
|
|
|
}
|
|
|
}
|
|
|
}
|