@@ -30,14 +30,18 @@ def assert_single_sign_on_endpoints_for_saml_frontend(self, entity_descriptor, s
30
30
31
31
def assert_single_sign_on_endpoints_for_saml_mirror_frontend (self , entity_descriptors , encoded_target_entity_id ,
32
32
saml_mirror_frontend_config , backend_names ):
33
- expected_entity_id = saml_mirror_frontend_config ["config" ]["idp_config" ][
34
- "entityid" ] + "/" + encoded_target_entity_id
35
- metadata = InMemoryMetaData (None , None )
36
- for ed in entity_descriptors :
37
- metadata .parse (str (ed ))
38
- sso = metadata .service (expected_entity_id , "idpsso_descriptor" , "single_sign_on_service" )
39
-
40
33
for backend_name in backend_names :
34
+ expected_entity_id = saml_mirror_frontend_config ["config" ]["idp_config" ][
35
+ "entityid" ] + "/" + backend_name + "/" + encoded_target_entity_id
36
+ metadata = InMemoryMetaData (None , None )
37
+ for ed in entity_descriptors :
38
+ print ("ed: {}" .format (ed ))
39
+ metadata .parse (str (ed ))
40
+ sso = metadata .service (expected_entity_id , "idpsso_descriptor" , "single_sign_on_service" )
41
+
42
+ print ("expected_entity_id: {}" .format (expected_entity_id ))
43
+ print ("sso: {}" .format (sso ))
44
+
41
45
for binding , path in saml_mirror_frontend_config ["config" ]["endpoints" ]["single_sign_on_service" ].items ():
42
46
sso_urls_for_binding = [endpoint ["location" ] for endpoint in sso [binding ]]
43
47
expected_url = "{}/{}/{}/{}" .format (BASE_URL , backend_name , encoded_target_entity_id , path )
0 commit comments