1399 Commits

Author SHA1 Message Date
Steve Riesenberg
9728f28380
Add additional constants to OAuth2ParameterNames
These additional constants are used for optional parameters in the
Access Token Request for the OAuth 2.0 Token Exchange Grant.

Issue gh-5199
2024-03-15 15:27:42 -05:00
Steve Riesenberg
e52dd81d03
Customize mapping the OidcUser
Closes gh-14672
2024-03-07 15:45:39 -06:00
Steve Riesenberg
85c3d0ab13 Add reactive support for OAuth 2.0 Token Exchange Grant
Issue gh-5199
2024-03-06 16:02:58 -06:00
Steve Riesenberg
d2fe9094a9 Add servlet support for OAuth 2.0 Token Exchange Grant
Issue gh-5199
2024-03-06 16:02:58 -06:00
greg.lee
07ac0b616b
Introduce Customizable AuthorizationFailureHandler
Closes gh-13793
2024-03-01 13:11:46 -06:00
Marcus Hert Da Coregio
21580fd27d Merge branch '6.2.x' 2024-02-16 13:31:20 -03:00
Marcus Hert Da Coregio
15306c1007 Merge branch '6.1.x' into 6.2.x 2024-02-16 13:21:15 -03:00
Rob Winch
750cb30ce4 Add AuthenticationTrustResolver.isAuthenticated 2024-02-16 13:08:29 -03:00
Steve Riesenberg
96e3e4f8b1
Customize when user info is called
Closes gh-13259
2024-02-13 12:34:20 -06:00
ubaid4j
e77126740d Add ReactiveOidcIdTokenDecoderFactory#setWebClientResolver
Closes gh-13274
2024-02-01 10:04:06 -07:00
Josh Cummings
d7599ab192 Polish setAttributesConverter
- Add Tests
- Add Reactive Support

Issue gh-14186
2024-01-30 14:37:20 -07:00
ahmd-nabil
04f0f2597a Polish DefaultOAuth2UserService
Signed-off-by: ahmd-nabil <ahm3dnabil99@gmail.com>
2024-01-30 14:37:20 -07:00
ahmd-nabil
d9d22c75a2 Add support for nested username attribute in DefaultOAuth2User
Closes gh-14186

Signed-off-by: ahmd-nabil <ahm3dnabil99@gmail.com>
2024-01-30 14:37:20 -07:00
Josh Cummings
01b7ad42ec
Merge branch '6.2.x' 2024-01-25 17:33:33 -07:00
Josh Cummings
84c45adc70
Merge branch '6.1.x' into 6.2.x
Closes gh-14496
2024-01-25 17:33:15 -07:00
Josh Cummings
44f22ee5cf
Merge branch '5.8.x' into 6.1.x
Closes gh-14495
2024-01-25 17:32:57 -07:00
Hans Lindner
ca10187fd1 Enhance JWT decoding error handling
Previously, the `decode` method threw a `JwtException` directly when encountering an unsupported algorithm or any exception during parsing. This commit introduces a more robust error handling mechanism. Now, instead of throwing exceptions directly, it returns a `Mono.error()` with a `BadJwtException` containing detailed error information. This approach provides more flexibility and allows the caller to handle errors in a more granular way, by being able to use project reactors onError functionality.

Closes gh-14467
2024-01-25 17:32:10 -07:00
Josh Cummings
7ee974445b
Update Checkstyle
Issue gh-14178
2024-01-22 08:44:54 -07:00
Josh Cummings
04394a63cd
Update Formatting
Issue gh-14178
2024-01-22 08:26:25 -07:00
Josh Cummings
1e90bdfc0b
Update Copyright
Issue gh-14178
2024-01-19 09:26:04 -07:00
Armin Krezović
9c352c4b4b Support overriding RestOperations in OidcIdTokenDecoderFactory
Closes gh-14178
2024-01-19 09:24:56 -07:00
Armin Krezović
0041c658de Support overriding WebClient in ReactiveOidcIdTokenDecoderFactory
Closes gh-14178
2024-01-19 09:24:56 -07:00
Marcus Hert Da Coregio
9135cb4fbf Merge branch '6.2.x'
Closes gh-14406
2024-01-05 07:53:50 -03:00
Marcus Hert Da Coregio
acaf9ce7e9 Merge branch '6.1.x' into 6.2.x
Closes gh-14405
2024-01-05 07:53:43 -03:00
Marcus Hert Da Coregio
d032b23ab7 Make OAuth2AuthorizationExchange serializable
Closes gh-14402
2024-01-05 07:53:28 -03:00
Josh Cummings
1b39c1248a
Merge branch '6.2.x' 2023-12-11 10:21:18 -07:00
Josh Cummings
966c01fa90
Merge branch '6.1.x' into 6.2.x
Closes gh-14278
2023-12-11 10:21:00 -07:00
Josh Cummings
c4a99fc942
Merge branch '5.8.x' into 6.1.x
Closes gh-14277
2023-12-11 10:20:38 -07:00
Candelario
e896b14046 Dropped Nimbus Error Message
Closes gh-13730
2023-12-11 10:19:02 -07:00
Josh Cummings
10d88cdf28 Polish Introspection Authentication Converter
- Added Reactive Support
- Separated SCOPE claim and authorities work
- Adjusted for style

Issue gh-14198
2023-12-07 15:13:51 -07:00
ahmd-nabil
8279b22940 Add Introspection Authentication Converter
Closes #14198

Signed-off-by: ahmd-nabil <ahm3dnabil99@gmail.com>
2023-12-07 15:13:51 -07:00
Parker Mauney
8e93e4715f Fix typo in getClaimAsMap docstring 2023-11-22 14:02:17 -03: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
9f8db22b774fe78fef3598c07e184c371892c1c7 and adds the following
needed commit(s) that were made afterward:

- 4d6ff49b9d663d0f25454f3704a45c83b35da689
- ed6ff670d102736eea0ac360921c9015151ac630
- c823b007942a04a27d02c0a28bc2ad85e8790084
- 44fad21363bef1b06422be28c9bbfadde5e44804
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
8750608b5bca45525c99d0a41a20ed02de93d8c7 and adds the following
needed commit(s) that were made afterward:

- 5dce82c48bc0b174838501c5a111b2de70822914
2023-10-31 15:11:45 -05:00
Steve Riesenberg
975ac10f19
Merge branch '6.1.x'
Closes gh-14042
2023-10-19 16:44:03 -05:00
Steve Riesenberg
b4e0873b1e
Merge branch '6.0.x' into 6.1.x
Closes gh-14041
2023-10-19 16:43:21 -05:00
Steve Riesenberg
bb732e9d35
Merge branch '5.8.x' into 6.0.x
Closes gh-14040
2023-10-19 16:40:34 -05:00
Steve Riesenberg
5161712c35
Polish gh-13976
Closes gh-13757
2023-10-19 16:40:23 -05:00
Veli Döngelci
a6b872dcf3
Fix caching error state in ReactiveRemoteJWKSource 2023-10-19 16:40:13 -05:00
Valeriy Vyrva
0e30b923f8 Check for null value with the appropriate assertion method 2023-10-03 08:16:21 -06:00
Josh Cummings
c7ea8c6ac7
Fix Formatting
Issue gh-13654
2023-10-02 17:47:37 -06:00
Josh Cummings
a3227f041c
Polish OAuth2AuthorizationManagers
- Add OAuth2ReactiveAuthorizationManagers
- Code to interfaces
- Align error message with the same in
AuthorityAuthorizationManager
- Adjust expectations in tests to confirm an
appropriately constructed authorizaion manager
- Add JavaDoc and reference documentation

Issue gh-13654
2023-10-02 17:26:06 -06:00
Mario Petrovski
2ee8f27997 Fix imports 2023-10-02 17:23:49 -06:00
Mario Petrovski
97ec5c921e Fix imports in tests 2023-10-02 17:23:49 -06:00
Mario Petrovski
e1db108cb9 Improvements and unit tests. 2023-10-02 17:23:49 -06:00
Mario Petrovski
5e0ea6ce8a Fix formatting 2023-10-02 17:23:49 -06:00
Mario Petrovski
35e5533a4b Fix formatting 2023-10-02 17:23:49 -06:00
Mario Petrovski
e99b37a6cb Fix build 2023-10-02 17:23:49 -06:00