Skip to content

Commit

Permalink
🐛 [#58] Do not swap entityID with URL for eH
Browse files Browse the repository at this point in the history
  • Loading branch information
SilviaAmAm committed Mar 1, 2024
1 parent 970d3ed commit 410e44d
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions digid_eherkenning/models/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,11 +221,7 @@ def process_metadata_from_xml_source(self) -> tuple[dict[str, str], bytes]:
# sometimes the xml file contains urn instead of a url as an entity ID
# use the provided url instead
urls = {
"entityId": (
entity_id
if not (entity_id := idp.get("entityId")).startswith("urn:")
else self.metadata_file_source
),
"entityId": idp.get("entityId"),
"sso_url": idp.get("singleSignOnService", {}).get("url"),
"slo_url": idp.get("singleLogoutService", {}).get("url"),
}
Expand Down

0 comments on commit 410e44d

Please sign in to comment.