Skip to content

Commit

Permalink
SHIBUI-1747
Browse files Browse the repository at this point in the history
minor fixes/updates
  • Loading branch information
chasegawa committed Sep 18, 2021
1 parent d6397f9 commit 45de780
Show file tree
Hide file tree
Showing 4 changed files with 1,005 additions and 1,004 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ User buildAndPersistNewUserFromProfile(CommonProfile profile) {

// get profile attribute for groups
Object obj = profile.getAttribute(simpleProfileMapping.getGroups());
log.debug("User's incoming group from mapping: [{}]", obj);
if (obj != null) {
final ArrayList<String> groupNames = new ArrayList<>();
if (obj instanceof String) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@
<bean parent="shibboleth.TranscodingProperties">
<property name="properties">
<props merge="true">
<prop key="id">businessCategofy</prop>
<prop key="id">businessCategory</prop>
<prop key="transcoder">SAML2StringTranscoder SAML1StringTranscoder</prop>
<prop key="saml2.name">urn:oid:2.5.4.15</prop>
<prop key="saml1.name">urn:mace:dir:attribute-def:businessCategory</prop>
Expand All @@ -519,4 +519,4 @@
</constructor-arg>
</bean>

</beans>
</beans>
6 changes: 3 additions & 3 deletions testbed/authentication/shibui/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ spring:
include:
shibui:
user-bootstrap-resource: file:/conf/users.csv
roles: ROLE_ADMIN,ROLE_NONE,ROLE_USER,ROLE_PONY
roles: ROLE_ADMIN,ROLE_NONE,ROLE_USER,ROLE_ENABLE,ROLE_PONY
pac4j-enabled: true
pac4j:
keystorePath: "/conf/samlKeystore.jks"
Expand All @@ -23,5 +23,5 @@ shibui:
firstName: urn:oid:2.5.4.42
lastName: urn:oid:2.5.4.4
email: urn:oid:0.9.2342.19200300.100.1.3
groups: businessCategory
roles: urn:oid:1.3.6.1.4.1.5923.1.1.1.7
groups: urn:oid:2.5.4.15 # businessCategory
roles: urn:oid:1.3.6.1.4.1.5923.1.1.1.7 # eduPersonEntitlement
Loading

0 comments on commit 45de780

Please sign in to comment.