Commit Graph

534 Commits

Author SHA1 Message Date
Josh Cummings 08d1be5774
Fix Build to Add Missing Tests
Issue gh-11658
2024-08-06 18:14:12 -06:00
Josh Cummings 1da383b360
Add OpenSAML 5 Support
Issue gh-11658
2024-08-06 18:14:11 -06:00
Josh Cummings c6d6bfd74f
Move OpenSAML 4 Support to Separate Source Directory
Issue gh-11658
2024-08-06 18:14:11 -06:00
Josh Cummings 1be596bb2f
Use OpenSAML API for registration
Issue gh-11658
2024-08-06 18:14:11 -06:00
Josh Cummings 78a0173cc1
Use OpenSAML API for web
Issue gh-11658
2024-08-06 18:14:11 -06:00
Josh Cummings bf5b334531
Use OpenSAML API for web.authentication
Issue gh-11658
2024-08-06 18:14:10 -06:00
Josh Cummings 51fc05630d
Use OpenSAML API for web.authentication.logout
Issue gh-11658
2024-08-06 18:14:10 -06:00
Josh Cummings ff9a925e88
Use OpenSAML API for metadata
Issue gh-11658
2024-08-06 18:14:10 -06:00
Josh Cummings 80b31820cd
Use OpenSAML API in authentication
Issue gh-11658
2024-08-06 18:14:10 -06:00
Josh Cummings 416859e70e
Use OpenSAML API in authentication.logout
Issue gh-11658
2024-08-06 18:14:10 -06:00
Josh Cummings 94431d1650
Add Internal OpenSAML API
This will be useful for exposing OpenSAML functionality at
a higher level. Each OpenSAML major version release should
provide a new implementation.

Issue gh-11658
2024-08-06 18:14:09 -06:00
Josh Cummings 54a4792b7a
Remove Unneeded OpenSAML 4 References
This will reduce the number of components that need to be
duplicated between the OpenSAML 4 and 5 support

Issue gh-11658
2024-08-06 18:14:09 -06:00
Josh Cummings ab842b74b9
Use OpenSAML ParserPool Defaults
Originally, Spring Security turned off various features
XML parsing feature for the underlying DocumentBuilderFactory
that OpenSAML uses.

Both OpenSAML 4 and 5 set these values by default, so we
can safely accept the defaults at this point.

Issue gh-11658
2024-08-06 18:14:09 -06:00
Josh Cummings 2f34824d0e Fix Formatting 2024-07-29 14:03:35 -07:00
Sanghyuk Jung 3e3f2ae8f0 Remove Duplicated "the" in JavaDoc 2024-07-29 14:03:35 -07:00
Josh Cummings 335dff63c1
Fix Formatting 2024-07-29 14:54:08 -06:00
Josh Cummings 0b0ffa01f7
Repair Flaky Tests
- MockWebServer seems to start failing to respond to connections
at a certain frequency of requests. This commit builds in a small
delay of 1 millisecond to address this.

Closes gh-15395
2024-07-29 14:45:48 -06:00
Josh Cummings 9d8888c5f0 Use AssertingPartyMetadata
Issue gh-15394
2024-07-19 18:48:23 -07:00
Josh Cummings dfa67fd8a1 Polish Tests
- Use test objects
- Ensure assertThat is checked

Issue gh-11725
2024-07-19 18:48:23 -07:00
Josh Cummings e6dfb63bdf Add OpenSamlAssertingPartyMetadataRepository
Closes gh-12116
Closes gh-15395
2024-07-19 18:48:23 -07:00
Josh Cummings 7ad9ee93cf Add AssertingPartyMetadataRepository
Closes gh-15394
2024-07-19 18:48:23 -07:00
Josh Cummings 796e4d6b6c
Add query parameter support for authn requests
Closes gh-15017
2024-07-13 23:57:57 -06:00
Josh Cummings 161b0f303d
Merge branch '6.3.x' 2024-07-10 17:13:04 -06:00
Josh Cummings 8951b6e0e1
Merge branch '6.2.x' into 6.3.x 2024-07-10 17:12:55 -06:00
Josh Cummings e1fdc61360
Merge branch '5.8.x' into 6.2.x 2024-07-10 17:12:43 -06:00
Josh Cummings 32e2735f45
Clarify Valid Metadata Locations 2024-07-10 17:10:49 -06:00
Josh Cummings dcf5cc9e06
Extract EntityDescriptor to AssertingPartyDetails Logic
Closes gh-15090
2024-07-10 17:08:36 -06:00
Josh Cummings 6bd2f1ca97
Deprecate OpenSamlRelyingPartyRegistration
Closes gh-15343
2024-07-01 19:50:54 -06:00
Josh Cummings 7b39800606
Add CachingRelyingPartyRegistrationRepository
Closes gh-15341
2024-07-01 19:43:09 -06:00
Josh Cummings 1e2900328b
Add IterableRelyingPartyRegistrationRepository
Closes gh-15027
2024-07-01 19:43:09 -06:00
James Howe 902aff451f Update OpenSaml4AuthenticationProvider.java
Fix level of log message.
2024-06-24 14:10:54 -06:00
Josh Cummings 672902a8f3
Add Metadata Content Type Test
Issue gh-15147
2024-06-21 16:01:29 -06:00
Josh Cummings a529607d42
Add samlmetadata Qualifier to Content Type
Closes gh-15147
2024-06-21 12:57:10 -06:00
Josh Cummings b73155df26
Merge branch '6.3.x' 2024-05-31 14:14:02 -06:00
Josh Cummings 3defed4c3d
Merge branch '6.2.x' into 6.3.x 2024-05-31 14:13:46 -06:00
Josh Cummings 1cc66faaef
Polish Update Signature Validator
Issue gh-15022
2024-05-31 14:13:23 -06:00
Josh Cummings c4d8693063
Merge branch '6.3.x' 2024-05-31 13:46:50 -06:00
Josh Cummings 0da7284ddd
Merge branch '6.2.x' into 6.3.x
Closes gh-15183
2024-05-31 13:46:32 -06:00
Josh Cummings 99f233f98c
Update Signature Validator
Closes gh-15022
2024-05-31 13:29:28 -06:00
Josh Cummings 6695784a3f
Polish Logging
Issue gh-14801
2024-05-31 12:48:07 -06:00
Max Batischev 801e808f67 Add support sign SAML metadata
Closes gh-14801
2024-05-31 12:43:19 -06:00
Josh Cummings 63e24a3026
Adjust JavaDoc Classpath
Issue gh-14931
2024-05-20 12:42:01 -06:00
Marcus Hert Da Coregio 08f11f06ab Revert unnecessary commits from main
Issue gh-15016
2024-05-08 13:49:18 -03:00
Josh Cummings c97b2aa4e0
Merge branch '6.1.x' into 6.2.x
Closes gh-14958
2024-04-25 16:12:05 -06:00
Josh Cummings d88f2e5133
Merge branch '5.8.x' into 6.1.x
Closes gh-14957
2024-04-25 16:08:47 -06:00
Josh Cummings c35e107744
Add ProxyRestriction Validator
Closes gh-14931
2024-04-25 16:04:37 -06:00
Josh Cummings 3f11622687
Polish Status Codes
Adjusted code styling to avoid nested ifs

Closes gh-11725
2024-03-22 11:24:55 -06:00
YoungKi Hong 6e45e65cac Update to return List of StatusCodes and add Saml2Error to result object and other formatting 2024-03-22 11:08:24 -06:00
youngkih 76331a5653 Add test for status code returning parent and child status code 2024-03-22 11:08:24 -06:00
youngkih e1bcd778f0 Update copywrite to 2024 2024-03-22 11:08:24 -06:00
youngkih 994e064412 Use Optional in case child status code is null 2024-03-22 11:08:24 -06:00
YoungKi Hong 01e2971085 [ISSUE-11725] Add secondary statusCode messages on error 2024-03-22 11:08:24 -06:00
Josh Cummings a1549d9dd7
Merge branch '6.2.x' 2024-02-20 17:17:27 -07:00
Josh Cummings cfb9f1ed32
Merge branch '6.1.x' into 6.2.x
Closes gh-14641
2024-02-20 17:17:12 -07:00
Josh Cummings e8c93fdc98
Move Saml Class
Closes gh-14628
2024-02-20 17:15:41 -07:00
smallbun ceb5100ba3 Optimize Saml2MetadataFilter 2024-01-31 17:40:45 -07:00
Marcus Hert Da Coregio e3ab1c94d7 Use assertj assertions 2023-11-17 09:04:50 -03:00
Marcus Hert Da Coregio a7da9491d9 Use assertj assertions 2023-11-17 09:03:36 -03:00
Steve Riesenberg 447f40949c
Revert unnecessary merges on 6.1.x
This commit removes unnecessary main-branch merges starting from
9f8db22b77 and adds the following
needed commit(s) that were made afterward:

- 4d6ff49b9d
- ed6ff670d1
- c823b00794
- 44fad21363
2023-10-31 15:22:15 -05:00
Steve Riesenberg 9db33f33c7
Revert unnecessary merges on 6.0.x
This commit removes unnecessary main-branch merges starting from
8750608b5b and adds the following
needed commit(s) that were made afterward:

- 5dce82c48b
2023-10-31 15:11:45 -05:00
Marcus Da Coregio 10c85ccd29 Merge branch '6.1.x'
Closes gh-14039
2023-10-19 10:13:51 -03:00
Marcus Da Coregio 8ca7d19de6 Merge branch '6.0.x' into 6.1.x
Closes gh-14038
2023-10-19 10:13:40 -03:00
Marcus Da Coregio 9b2b7e58b5 Merge branch '5.8.x' into 6.0.x
Closes gh-14037
2023-10-19 10:03:33 -03:00
Marcus Da Coregio 70ad3bf749 relay_state should not be included in signing calculation when it is null
Closes gh-13913
2023-10-19 09:58:47 -03:00
Scott Shidlovsky 19c4e427ee Update OpenSamlAuthenticationRequestResolverTests from Junit 4 to Junit 5
(cherry picked from commit 508f7d7b8a)
2023-10-19 09:50:28 -03:00
Marcus Da Coregio 4ca7e842f0 Merge branch '6.1.x' 2023-10-16 08:01:33 -03:00
Roman_Dyndyn a884a45cb7 Fix parsing of GET SAML logout requests 2023-10-16 08:01:05 -03:00
adrianpoplesanu 823bc971f5 Make Optional Pretty-Printed Metadata
Closes gh-13715
2023-10-03 08:15:23 -06:00
Marcus Da Coregio cc6010876f Merge branch '6.1.x'
Closes gh-13943
2023-10-03 08:43:41 -03:00
Marcus Da Coregio 2af78c19ab Saml2LogoutRequestMixin relayState property should be binding
Closes gh-12539
2023-10-03 08:42:43 -03:00
Marcus Da Coregio 4c3c3e6c20 Merge branch '5.8.x' into 6.0.x
Closes gh-13939
2023-10-03 08:41:50 -03:00
Marcus Da Coregio 64270f28e4 Saml2LogoutRequestMixin relayState property should be binding
Closes gh-12539
2023-10-03 08:41:33 -03:00
Marcus Da Coregio 07b6c451fd Merge branch '6.1.x'
Closes gh-13884
2023-09-29 11:47:38 -03:00
Marcus Da Coregio 8adfc9b463 Merge branch '6.0.x' into 6.1.x
Closes gh-13883
2023-09-29 11:46:48 -03:00
Marcus Da Coregio 92c82191c9 Merge branch '5.8.x' into 6.0.x
Closes gh-13882
2023-09-29 11:46:00 -03:00
Marcus Da Coregio 64e2a2ff8b Apply updated Code Style
Closes gh-13881
2023-09-29 11:44:32 -03:00
Marcus Da Coregio e29ea47ff7 Use Gradle's Version Catalog
Issue gh-13868
2023-09-28 14:57:18 -03:00
Marcus Da Coregio d6fac11bfe Merge branch '6.1.x' 2023-09-25 10:10:48 -03:00
Marcus Da Coregio e916e44a5e Merge branch '6.0.x' into 6.1.x 2023-09-25 10:10:39 -03:00
Marcus Da Coregio 1a0b8b7994 Merge branch '5.8.x' into 6.0.x 2023-09-25 10:09:40 -03:00
Marcus Da Coregio 664ee9a206 Fix formatting
Issue gh-13776
2023-09-25 10:09:32 -03:00
Jannick Weisshaupt b67218c150 Fix corrupted saml2 metadata when special characters are present
Closes gh-13776
2023-09-25 14:08:14 +01:00
Steve Riesenberg d6ff58bb7f
Update Mockito to 5.5.0
Closes gh-13810
2023-09-19 10:39:03 -05:00
Steve Riesenberg 5535d17172
Merge branch '6.1.x'
Closes gh-13807
Closes gh-13803
Closes gh-13802
2023-09-12 18:55:42 -05:00
Steve Riesenberg 461bf9a09c
Merge branch '6.0.x' into 6.1.x
Closes gh-13806
2023-09-12 18:48:28 -05:00
Steve Riesenberg f03224fe7f
Merge branch '5.8.x' into 6.0.x
Closes gh-13805
2023-09-12 18:48:13 -05:00
Steve Riesenberg 3feb809b35
Fix Saml2AuthenticationExceptionMixin on JDK 17
Closes gh-13804
2023-09-12 18:39:29 -05:00
Tim te Beek 9df9cb5aed refactor: AssertJ best practices
Use this link to re-run the recipe: https://app.moderne.io/recipes/builder/bGVuS?organizationId=RGVmYXVsdA%3D%3D

Co-authored-by: Moderne <team@moderne.io>
2023-09-12 16:18:14 -06:00
Josh Cummings 3540dee259
Merge branch '6.1.x'
Closes gh-13701
2023-08-18 14:36:45 -06:00
Josh Cummings 321deb30cc
Resolve EntityID Map Key
Closes gh-13700
2023-08-18 14:36:27 -06:00
Marcus Da Coregio 9c599fa8d7 Fix formatting 2023-08-17 09:27:02 -03:00
Josh Cummings 3ba5cc0e40
Add CSRF Exception
Issue gh-13653
2023-08-16 16:54:50 -06:00
1993heqiang fb2b0a76e7 Fix typo 2023-08-07 15:01:52 -06:00
Josh Cummings 8d0e426654
Generate Shared Test SAML Response
Issue gh-13433
2023-07-11 10:36:06 -06:00
Josh Cummings f2f19270da
Update to OpenSAML 4.3.0
Closes gh-13433
2023-07-10 17:56:42 -06:00
Krzysztof Krason 9b603b99ab Using modern Java features 2023-06-22 11:24:25 -06:00
Josh Cummings 49366907e2
Merge branch '6.0.x'
Closes gh-13183
2023-05-15 17:31:48 -06:00
Josh Cummings b438bc5384
Merge branch '5.8.x' into 6.0.x
Closes gh-13182
2023-05-15 17:30:14 -06:00
lukasz.migdalek f4915890cc
Use Spec Order for Verifying Signatures
Closes gh-12346
2023-05-15 17:24:22 -06:00
Marcus Da Coregio 65baae78a9 Merge branch '6.0.x'
Closes gh-13142
2023-05-08 14:52:25 -03:00