Add UDDS attribute and refactor
Compare changes
Files
14@@ -14,10 +17,11 @@ class LocalUserDetailsProvider implements UserDetailsProvider
@@ -34,15 +38,15 @@ class LocalUserDetailsProvider implements UserDetailsProvider
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.
Apologies for the large and hard to read PR--it should hopefully make the code more easy to read and navigate.
This PR adds UDDS as an attribute for UserDetails
, along with a new class, PreauthUserDetailsProvider
, which is an implementation of UserDetailsProvider
for UW-Madison login.
Notable changes:
Preauth
constructors for the 'HTTP' versions of attributes. Example: wiscEduPVI
becomes HTTP_WISCEDUPVI
.UserDetailsProvider
is an abstract class now, not an interface.FED_
prefix and you will get the correct key for your particular implementation (FederatedPreauth...
vs. Preauth
) by using static::<CONSTANT_NAME>
. The only exception: UWMSN and UW-System differ on their name for 'PVI'--UWMSN uses "PVI" and UW-System uses "SPVI", so PVI
is only a constant in PreauthUserDetailsProvider
while FederatedPreauthUserDetailsProvider
has an SPVI
constant.edu\wisc\doit
namespace, the namespace structure is now much more like uw-spring-security. General classes now exist in the edu\wisc\doit\uwphps
namespace, with local
and preauth
namespaces existing for the local and preauth implementations. This change necessitated the bump to 2.0.0.Please review: @ahoffmann @weizhong-wang @KJOYNER