Skip to content

Commit

Permalink
Merge pull request #709 from SUNET/jocar-improve-static-append
Browse files Browse the repository at this point in the history
Improve static append
  • Loading branch information
johanlundberg authored Oct 28, 2024
2 parents 2ed2ea8 + ae4cc76 commit bcb0e9e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/eduid/satosa/scimapi/static_attributes.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class AddStaticAttributesForVirtualIdp(ResponseMicroService):
static_appended_attributes_for_virtual_idp:
default:
virtual_idp_1:
eduPersonAssurance:
edupersonassurance:
- https://refeds.org/assurance/ATP/ePA-1m
- https://refeds.org/assurance/IAP/local-enterprise
```
Expand Down Expand Up @@ -75,6 +75,9 @@ def _build_static(self, requester: str, vidp: str, existing_attributes: dict) ->
if value not in fmt:
static_attributes[attr_name].append(value)
static_attributes[attr_name].sort()
else:
static_attributes[attr_name] = fmt


logger.debug(f"Appending static attribute {attr_name}: {fmt} for requester {requester} or {vidp}")

Expand Down

0 comments on commit bcb0e9e

Please sign in to comment.