This repository was archived by the owner on Sep 19, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 1111const ATTRIBUTES_DEFINITIONS = 'listOfSps.attributesDefinitions ' ;
1212const SHOW_OIDC_SERVICES = 'listOfSps.showOIDCServices ' ;
1313
14+ const PERUN_SERVICE_NAME_ATTR_NAME = 'listOfSps.serviceNameAttr ' ;
1415const PERUN_PROXY_IDENTIFIER_ATTR_NAME = 'listOfSps.perunProxyIdentifierAttr ' ;
1516const PERUN_LOGIN_URL_ATTR_NAME = 'listOfSps.loginURLAttr ' ;
1617const PERUN_TEST_SP_ATTR_NAME = 'listOfSps.isTestSpAttr ' ;
6263 );
6364}
6465
66+ $ perunServiceNameAttr = $ conf ->getString (PERUN_SERVICE_NAME_ATTR_NAME , 'urn:perun:facility:attribute-def:core:name ' );
6567$ perunLoginURLAttr = $ conf ->getString (PERUN_LOGIN_URL_ATTR_NAME , null );
6668$ perunTestSpAttr = $ conf ->getString (PERUN_TEST_SP_ATTR_NAME , null );
6769$ perunShowOnServiceListAttr
7678$ attrNames = [];
7779
7880array_push ($ attrNames , $ perunSaml2EntityIdAttr );
81+ array_push ($ attrNames , $ perunServiceNameAttr );
7982if (!empty ($ perunOidcClientIdAttr )) {
8083 array_push ($ attrNames , $ perunOidcClientIdAttr );
8184}
161164 $ json ['statistics ' ]['oidcTestServicesCount ' ] = $ statistics ['oidcTestServicesCount ' ];
162165 foreach ($ allServices as $ service ) {
163166 $ a = [];
164- $ a ['name ' ] = $ service ['facility ' ]-> getName () ;
167+ $ a ['name ' ] = $ service ['facilityAttributes ' ][ $ perunServiceNameAttr ][ ' value ' ] ;
165168
166169 if (array_key_exists ($ service ['facility ' ]->getID (), $ samlServices )) {
167170 $ a ['authenticationProtocol ' ] = 'SAML ' ;
You can’t perform that action at this time.
0 commit comments