- Aug 24, 2016
-
-
Nicholas Blair authored
fix: provide factory method for jackson to deserialize authorities `@JsonProperty` won't work with the abstract `? extends GrantedAuthority` type, as Jackson doesn't have a constructor or factory to convert a string into a concrete implementation. This change adds a factory method which takes a Collection<String> (which Jackson can understand) and uses Spring Security's utility method to convert the Collection of Strings to a Collection of GrantedAuthority instances. Note: the 'Amy Administrator' user provided by the 'local-users.json|yaml' file is no longer strictly equivalent to those provided in 'local-users.properties'. See adi-ia/uw-spring-security#5; correcting that seems to be outside of the scope of a bugfix, as it will result in something that likely requires a new feature release. cc: @bjsousa @paul.erickson @lyle @apatwary @SPYANG4 @bhill6 See merge request !21
-
Nicholas Blair authored
@JsonProperty won't work with the abstract '? extends GrantedAuthority' type, as Jackson doesn't have a constructor or factory to convert a string into a concrete implementation. This change adds a factory method which takes a Collection<String> (which Jackson can understand) and uses Spring Security's utility method to convert the Collection of Strings to a Collection of GrantedAuthority instances. Note: the 'Amy Administrator' user provided by the 'local-users.json|yaml' file is no longer strictly equivalent to those provided in 'local-users.properties'. See #5; correcting that seems to be outside of the scope of a bugfix, as it will result in something that likely requires a new feature release.
-
Nicholas Blair authored
- Aug 22, 2016
-
-
Nicholas Blair authored
feat: namespace all Spring Profiles with 'edu.wisc.uwss' prefix This pull request addresses issue #3, and thus begins the deprecation path for the profiles 'local-users' and 'preauth'. There are no behavior changes with this PR, only the acceptance of the new namespaced profiles. Votes on whether we should version bump to 1.5.0? Or will 1.4.x be satisfactory? See: * http://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/context/annotation/Profile.html * http://docs.spring.io/spring/docs/current/javadoc-api/org/springframework/core/env/Environment.html#acceptsProfiles-java.lang.String...- cc: @ahoffmann @paul.erickson @bhill6 @lyle @andrew-summers @apatwary @cknuth See merge request !20
-
Nicholas Blair authored
-
Nicholas Blair authored
-
Nicholas Blair authored
Thus begins the deprecation path for the profiles 'local-users' and 'preauth'.
-
Nicholas Blair authored
-
Nicholas Blair authored
feat: new LocalUserDetailsLoader for populating local-users store New optional user interface for populating the LocalUserDetailsManagerImpl instance provided in the `local-users` profile. The default configuration will still use the existing `LocalUserDetailsAttributesMapper.Default` implementation. To switch to the new loader, set the `edu.wisc.uwss.local.userDetailsLoader.enabled` Environment property to true. The default resource loaded is edu/wisc/uwss/local/local-users.json (classpath), to change that location set the `edu.wisc.uwss.local.userDetailsLoader.resource` Environment property to a valid Spring Resource expression ('classpath:', 'file:', etc). cc: @ahoffmann @paul.erickson @bhill6 @lyle @andrew-summers @apatwary @cknuth See merge request !19
-
Nicholas Blair authored
Clean up stale javadocs.
-
Nicholas Blair authored
The same ObjectMapper instance with a YAMLFactory can load both YAML and JSON.
-
- Aug 18, 2016
-
-
Nicholas Blair authored
-
Nicholas Blair authored
New optional user interface for populating the LocalUserDetailsManagerImpl instance provided in the 'local-users' profile. The default configuration will still use the existing LocalUserDetailsAttributesMapper.Default implementation. To switch to the new loader, set the 'edu.wisc.uwss.local.userDetailsLoader.enabled' Environment property to true. The default resource loaded is edu/wisc/uwss/local/local-users.json (classpath), to change that location set the 'edu.wisc.uwss.local.userDetailsLoader.resource' Environment property to a valid Spring Resource expression ('classpath:', 'file:', etc).
-
- Aug 03, 2016
-
-
Nicholas Blair authored
-
- Jul 11, 2016
-
-
Paul Erickson authored
-
Paul Erickson authored
Fix incorrect default header values for SPVI and UDDS @apatwary @npblair @bjsousa @alundholm See merge request !18
-
Paul Erickson authored
-
- Jul 07, 2016
-
-
Nicholas Blair authored
-
Nicholas Blair authored
fix: clone constructor now properly copies first/last name Tiny bug fix. @cknuth @paul.erickson @andrew-summers @bjsousa @apatwary See merge request !17
-
Nicholas Blair authored
-
- Jun 28, 2016
-
-
Benjamin Sousa authored
-
Benjamin Sousa authored
Define userName variable distinct from eppn in federated mapper This change is motivated by the need to set userName to a value other than default value of eppn for federated preauthenticated users. The intended use case is UW Digital ID, where we plan to use SPVI as the username for the purposes of the RequestOnBehalfOfFilter. @paul.erickson @bkeen @npblair See merge request !16
-
Benjamin Sousa authored
-
Benjamin Sousa authored
-
- Jun 24, 2016
-
-
Benjamin Sousa authored
-
- Jun 08, 2016
-
-
Nicholas Blair authored
-
Nicholas Blair authored
fix: correct configuration to activate federation attributemapper We can't just decorate the `FederatedPreauthenticatedUserDetailsAttributesMapper` with @Component, because the package edu.wisc.uwss.preauth isn't @ComponentScan'ned (edu.wisc.uwss.configuration.preauth is, by design). Corrected the logger for the Federated attributesmapper, it was incorrectly using the Default implementation (so you couldn't tell which class was lgogging). Added a Maven profile to help test: combined-simulate-federation. Ping: @paul.erickson @ahoffmann @cknuth See merge request !15
-
Nicholas Blair authored
-
- Jun 07, 2016
-
-
Nicholas Blair authored
We can't just decorate with @Component, because the package edu.wisc.uwss.preauth isn't @ComponentScan'ned (edu.wisc.uwss.configuration.preauth is). Corrected the logger for the Federated attributesmapper, it was incorrectly using the Default implementation (so you couldn't tell which class was lgogging). Added a Maven profile to help test: combined-simulate-federation.
-
- Jun 06, 2016
-
-
Benjamin Sousa authored
-
Benjamin Sousa authored
Add preauth mapper for UW System authenticated user. Bump to version 1.3.0 Creates an alternative to the default Preauth attributes mapper (which is UW-Madison focused) that is specific to the common attributes for an authenticated UW System user. Note that in the System context eppn replaces uid as the response for usernameHeader, because uid is no longer a meaningful identifier in a federated context where the bare uid might not be unique unless it's scoped to an individual campus. The more the merrier: @paul.erickson @ahoffmann See merge request !14
-
Benjamin Sousa authored
-