Skip to content

Commit

Permalink
feat: added ACR comparison value in spid backend configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
peppelinux committed Sep 22, 2021
1 parent 0ccc57f commit 2d6c4fa
Show file tree
Hide file tree
Showing 3 changed files with 75 additions and 0 deletions.
1 change: 1 addition & 0 deletions example/backends/spidsaml2.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,7 @@ def authn_request(self, context, entity_id):
req_authn_context = authn_context or requested_authn_context(
class_ref=self._authn_context
)
req_authn_context.comparison = self.config.get("spid_acr_comparison", "minimum")

# force_auth = true only if SpidL >= 2
if "SpidL1" in authn_context.authn_context_class_ref[0].text:
Expand Down
72 changes: 72 additions & 0 deletions example/metadata/idp/spid-entities-idps.xml

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions example/plugins/backends/spidsaml2_backend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ config:
- https://www.spid.gov.it/SpidL2
- https://www.spid.gov.it/SpidL3

spid_acr_comparison: "minimum"

acr_mapping:
"": 'https://www.spid.gov.it/SpidL2'
# specify AuthnContext per IdP
Expand Down

0 comments on commit 2d6c4fa

Please sign in to comment.