Skip to content

Commit ec27a7c

Browse files
Merge pull request #243 from skoranda/saml_co_frontend_03
Fix generation of frontend metadata for SAMLVirtualCoFrontend
2 parents fd282ca + b162097 commit ec27a7c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/satosa/frontends/saml2.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -908,7 +908,10 @@ def _overlay_for_saml_metadata(self, config, co_name):
908908
909909
:return: config with updated details for SAML metadata
910910
"""
911-
co_config = self._get_co_config(co_name)
911+
all_co_configs = self.config[self.KEY_CO]
912+
co_config = next(
913+
item for item in all_co_configs if item[self.KEY_ENCODEABLE_NAME] == co_name
914+
)
912915

913916
key = self.KEY_ORGANIZATION
914917
if key in co_config:

0 commit comments

Comments
 (0)