Skip to content

Commit

Permalink
Merge pull request #89 from UWIT-IAM/gwsAttribute
Browse files Browse the repository at this point in the history
Added a new unscoped groups attribute.
  • Loading branch information
mar235av authored Dec 17, 2024
2 parents 4052362 + 32146be commit 6061b3f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions conf/attribute-resolver.xml
Original file line number Diff line number Diff line change
Expand Up @@ -753,6 +753,14 @@

</AttributeDefinition>

<AttributeDefinition id="gws_groups_unscoped" xsi:type="Simple" >
<InputDataConnector ref="gws" attributeNames="memberOf"/>

<AttributeEncoder xsi:type="SAML1String" name="urn:mace:dir:attribute-def:isMemberOf_unscoped" />
<AttributeEncoder xsi:type="SAML2String" name="urn:oid:1.2.840.113994.200.110" friendlyName="isMemberOf_unscoped" />
<AttributeEncoder xsi:type="oidc:OIDCString" name="edumember_is_member_of_unscoped" asArray="true" />
</AttributeDefinition>

<!-- Course memberships by SLN - this is just for other attributes, not delivered directly -->

<AttributeDefinition id="sln_courses" xsi:type="Simple" >
Expand Down
2 changes: 1 addition & 1 deletion local-bin/filter_scan.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def openDb():
# refid = attribute ref triggering activation
# attrids = list of triggering attributes
resolverEntities = [
{'type': 'gws', 'values': set([]), 'beanid': 'uw.GetsGwsMemberships', 'refid': 'gws_groups', 'attrids': ['gws_groups']},
{'type': 'gws', 'values': set([]), 'beanid': 'uw.GetsGwsMemberships', 'refid': 'gws_groups', 'attrids': ['gws_groups','gws_groups_unscoped']},
{'type': 'courses', 'values': set([]), 'beanid': 'uw.GetsCourseMemberships', 'refid': 'sln_courses', 'attrids': ['sln_courses']},
]
resolverNeedsUpdate = False
Expand Down

0 comments on commit 6061b3f

Please sign in to comment.