diff --git a/spid_cie_oidc/authority/models.py b/spid_cie_oidc/authority/models.py index 50c6bfbf..b908a83c 100644 --- a/spid_cie_oidc/authority/models.py +++ b/spid_cie_oidc/authority/models.py @@ -175,7 +175,7 @@ def entity_profiles(self): def entity_statement_as_dict(self, iss: str = None, aud: list = None) -> dict: policies = { - k: FEDERATION_DEFAULT_POLICY[k] for k in self.entity_profiles + k: FEDERATION_DEFAULT_POLICY.get(k, {}) for k in self.entity_profiles } # apply custom policies if defined