Skip to content
Snippets Groups Projects
  1. May 16, 2016
  2. Mar 11, 2016
  3. Mar 09, 2016
    • Andy Summers's avatar
      Add PviAttributeBindingFilter · 98f7248f
      Andy Summers authored
      PviAttributeBindingFilter is a filter that binds the currently
      authenticated user's PVI to the request as an attribute with the key
      "wiscedupvi".
      
      Switch to Map<String, String> for attributes
      
      Using a Map allows for multiple attributes to be added to the request.
      
      Change to AttributeBindingFilter for user specific attributes
      
      Filter supports UWUserDetails style attributes (such as `wiscedupvi`) for
      adding attributes specific to an authenticated user to a request.
      
      Change to PviAttributeBindingFilter
      
      The filter only needs to add a user's PVI as an attribute.
      
      Add type check for principal
      
      Principal is not always guaranteed to be a UWUserDetails instance at the
      point it will hit this filter.
      98f7248f
  4. Mar 03, 2016
  5. Feb 29, 2016
  6. Feb 25, 2016
    • Nicholas Blair's avatar
      Merge branch 'flexible-identifiers' into 'master' · 8ff50507
      Nicholas Blair authored
      Add IdentifiersFactory for more configurable UDS UserDetailsService
      
      Defaults to same behavior (treat argument to loadUserByUsername as a NetID username), but allows for easy override with PVI and others.
      
      Use case: consider STAR. star-war supports impersonation via 'On-Behalf-Of' header. Inside the `SwitchUserOnHeaderFilter` is a reference to a `UserDetailsService`. The user attribute value of the 'On-Behalf-Of' header is passed into that `UserDetailsService#loadUserByUsername(String)` method.
      Prior to this contribution, `UdsPersonUserDetailsServiceImpl` could ONLY accept a NetID username. 
      
      This contribution defaults to that same behavior. However, if one wants to use a different user attribute, they would simply add a `@Bean` to their Spring ApplicationContext:
      
      ```java
      @Bean
      public IdentifiersFactory pviIdentifiersFactory() {
        return new IdentifiersFactory.PVI();
      }
      ```
      
      With the magic of `@Autowired(required=false)`, the default Netid configuration is replaced, and one can now pass PVIs into the `SwitchUserOnHeaderFilter`.
      
      A few other interested parties: @paul.erickson @ahoffmann @bjsousa 
      
      See merge request !6
      8ff50507
    • Nicholas Blair's avatar
      Add IdentifiersFactory for more configurable Uds UserDetailsService · 046ce483
      Nicholas Blair authored
      Defaults to same behavior (treat argument to loadUserByUsername as a NetID username), but allows for easy override with PVI and others.
      046ce483
  7. Feb 24, 2016
  8. Feb 23, 2016
  9. Feb 19, 2016
  10. Feb 02, 2016
  11. Feb 01, 2016
Loading