Skip to content

Commit b162097

Browse files
skorandac00kiemon5ter
authored andcommitted
Fix generation of frontend metadata for SAMLVirtualCoFrontend
Fix a bug in the generation of the frontend metadata for the SAMLVirtualCoFrontend. Signed-off-by: Ivan Kanakarakis <[email protected]>
1 parent fd282ca commit b162097

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)