Consume isMemberOf attribute as single value with semi-colon delimited list of manifest groups
1 unresolved thread
Compare changes
Files
3@@ -85,7 +85,18 @@ public interface PreauthenticatedUserDetailsAttributeMapper {
If you received inactive project deletion emails on 4/30/25, you can ignore them. The projects named in those emails will NOT be deleted on 7/30/25. Some type of inactive project deletion will be implemented later this year, but you'll receive further communications before any deletions are scheduled.
In the List Library application, which is attempting to consume Manifest groups as UW Spring Security authorities, we discovered that multiple Manifest groups are not provided by the login server as multiple isMemberOf headers but as one string with the Manifest groups delimited by semi-colons.
This PR revises the default Preauth mapper to split the isMemberOf string apart into a Java collection, which is the correct format for the authorities argument to the UWUserDetailsImpl constructor.
Notify: @paul.erickson @ahoffmann @gutkowski @bkeen
This multi-line for-loop could technically use a single-lined Java 8 stream! Since we're talking about a handful of elements here, it's not strictly necessary. However, I highly recommend taking it on as a personal coding challenge.
Target is currently set to java7, but I totally agree. #insert-crossing-the-streams-reference
MyUW should be going to Java 8 very very soon.