Merge branch 'uwmadison-attr' into 'master'
Add UDDS attribute and refactor 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: 1. 'HTTP' is now assumed by default. This is the flag that can be passed to `Preauth` constructors for the 'HTTP' versions of attributes. Example: `wiscEduPVI` becomes `HTTP_WISCEDUPVI`. 2. `UserDetailsProvider` is an abstract class now, not an interface. 3. Constants used for header keys are much more consistent. Keys for UW-System login no longer have the `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. 4. *Namespace reorganization*. Rather than lumping everything into the `edu\wisc\doit` namespace, the namespace structure is now much more like [uw-spring-security](https://git.doit.wisc.edu/adi-ia/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 See merge request !8
No related branches found
No related tags found
Showing
- composer.json 2 additions, 2 deletionscomposer.json
- src/main/edu/wisc/doit/FederatedPreauthUserDetailsProvider.php 0 additions, 76 deletions...ain/edu/wisc/doit/FederatedPreauthUserDetailsProvider.php
- src/main/edu/wisc/doit/UserDetailsProvider.php 0 additions, 33 deletionssrc/main/edu/wisc/doit/UserDetailsProvider.php
- src/main/edu/wisc/doit/uwphps/UWUserDetails.php 15 additions, 6 deletionssrc/main/edu/wisc/doit/uwphps/UWUserDetails.php
- src/main/edu/wisc/doit/uwphps/UserDetails.php 3 additions, 3 deletionssrc/main/edu/wisc/doit/uwphps/UserDetails.php
- src/main/edu/wisc/doit/uwphps/UserDetailsProvider.php 54 additions, 0 deletionssrc/main/edu/wisc/doit/uwphps/UserDetailsProvider.php
- src/main/edu/wisc/doit/uwphps/local/LocalUserDetailsProvider.php 16 additions, 12 deletions...n/edu/wisc/doit/uwphps/local/LocalUserDetailsProvider.php
- src/main/edu/wisc/doit/uwphps/preauth/FederatedPreauthUserDetailsProvider.php 64 additions, 0 deletions...it/uwphps/preauth/FederatedPreauthUserDetailsProvider.php
- src/main/edu/wisc/doit/uwphps/preauth/PreauthUserDetailsProvider.php 66 additions, 0 deletions...u/wisc/doit/uwphps/preauth/PreauthUserDetailsProvider.php
- src/main/resources/localuser.json 6 additions, 9 deletionssrc/main/resources/localuser.json
- src/test/edu/wisc/doit/uwphps/local/LocalUserDetailsProviderTest.php 7 additions, 3 deletions...u/wisc/doit/uwphps/local/LocalUserDetailsProviderTest.php
- src/test/edu/wisc/doit/uwphps/preauth/HTTPFederatedPreauthUserDetailsProviderTest.php 25 additions, 16 deletions...s/preauth/HTTPFederatedPreauthUserDetailsProviderTest.php
- src/test/resources/localuser.json 7 additions, 10 deletionssrc/test/resources/localuser.json
- src/test/resources/testuser_http.json 1 addition, 4 deletionssrc/test/resources/testuser_http.json
... | ... | @@ -4,7 +4,7 @@ |
"type": "library", | ||
"homepage": "https://git.doit.wisc.edu/adi-ia/uw-php-security", | ||
"license": "Apache-2.0", | ||
"version": "1.0.3", | ||
"version": "2.0.0", | ||
"authors": [{ | ||
"name": "UW-Madison DoIT ADI Integrated Applications", | ||
"email": "adi-ia@lists.wisc.edu", | ||
... | ... | @@ -19,7 +19,7 @@ |
}, | ||
"autoload": { | ||
"psr-4": { | ||
"edu\\wisc\\doit\\": "src/main/edu/wisc/doit/" | ||
"edu\\wisc\\doit\\uwphps\\": "src/main/edu/wisc/doit/uwphps" | ||
} | ||
} | ||
} |
Please register or sign in to comment