]> git.aero2k.de Git - tmp/jakarta-migration.git/commit
SAML SSO unit tests etc. (#455)
authorAnthony Bucci <anthony@bucci.onl>
Thu, 20 Mar 2025 18:58:33 +0000 (14:58 -0400)
committerMichael Ritter <mike.ritter@lyrasis.org>
Thu, 20 Mar 2025 19:37:45 +0000 (13:37 -0600)
commitff75376dcfb8ea501d2bf1d7b6ece03bcc0226b3
treec4312bb92365af5d307d67a1f86d3701656defe7
parentd44481eb01cfd8d4db5dfb8d5da3d0b2167e312f
SAML SSO unit tests etc. (#455)

* Added two unit tests to SecurityUtilsTest to verify the found email address is correct
* Removed unused imports in SecurityUtilsTest
* Added unit tests for ServicesConfigReader while investigating DRYD-1702
* cleaned up leftover printlns in SecurityUtilsTest
* cleaned up imports in SecurityUtilsTest
* reorganized methods in ServicesConfigReaderImplTest
* refactored findUser method to make it easier to test and prepare it for deprecation of ReponseToken
* refactored some useful common code out of SecurityUtilsTest into AbstractSecurityTestBase
* refactored some of the SAML-object-creating utility methods
* made 'parse' methods public so they can be tested
* added unit test to check that 'identifier' probe assertions correctly pull out attribute values
* source cleanup: organizing imports, formatting
* added .mvn to .gitignore to ignore local, per-developer maven properties

---------

Co-authored-by: Anthony Bucci <abucci@bucci.onl>
.gitignore
services/common/src/main/java/org/collectionspace/services/common/security/CSpaceSaml2ResponseAuthenticationConverter.java
services/common/src/test/java/org/collectionspace/services/common/test/AbstractSecurityTestBase.java [new file with mode: 0644]
services/common/src/test/java/org/collectionspace/services/common/test/SecurityUtilsTest.java
services/config/pom.xml
services/config/src/main/java/org/collectionspace/services/common/config/AbstractConfigReaderImpl.java
services/config/src/test/java/org/collectionspace/services/common/config/ServicesConfigReaderImplTest.java [new file with mode: 0644]