Commit Graph

825 Commits

Author SHA1 Message Date
Joe Grandja c2cfe92a02 Merge branch '6.3.x' 2024-11-18 05:16:16 -05:00
Joe Grandja 709103e38c Merge branch '6.2.x' into 6.3.x 2024-11-18 04:45:38 -05:00
Joe Grandja a8c4d6cead Require Locale argument for toLower/toUpperCase usage 2024-11-18 04:22:26 -05:00
Tran Ngoc Nhan e76de931ce Polish Optional usage 2024-10-25 13:42:33 -07:00
Tran Ngoc Nhan ffed4ea1dc Polish diamond usage 2024-10-25 13:42:33 -07:00
Steve Riesenberg dab6950231
Move parametersCustomizer
The parametersCustomizer was introduced in 6.4.0-M4 with
DefaultOAuth2TokenRequestParametersConverter. However, it cannot be
applied to all parameters and so does not fully solve gh-11298.

This commit moves the customizer to the abstract class so it can be
applied to all parameters.

Closes gh-15939
2024-10-18 12:22:09 -05:00
Tran Ngoc Nhan 31f8caec5f Polish diamond operator usage 2024-10-14 11:51:35 -07:00
Giovanni Lovato a3fd551fb5 Add ClientRegistrations.fromOidcConfiguration method
ClientRegistrations now provides the fromOidcConfiguration
method to create a ClientRegistration.Builder from a map
representation of an OpenID Provider Configuration Response.

This is useful when the OpenID Provider Configuration is not
available at a well-known location, or if custom validation
is needed for the issuer location (e.g. if the issuer is only
reachable via a back-channel URI that is different from the
issuer value in the configuration).

Fixes: gh-14633
2024-10-02 15:11:01 -05:00
Steve Riesenberg f5991ae176 Allow access token request parameters to override defaults
Closes gh-11298
2024-10-02 12:05:42 -05:00
Steve Riesenberg 9ba2435cb2
Support refresh token for Token Exchange
Closes gh-15534
2024-09-27 15:57:57 -05:00
Steve Riesenberg e11c188122
Customize the strategy for resolving the principal
Closes gh-15826
2024-09-27 15:39:56 -05:00
Steve Riesenberg c1a303bc92
Add tests for overriding parameters
Issue gh-15298
Issue gh-11298
2024-09-19 13:01:09 -05:00
Steve Riesenberg 5d8cf6a8bc
Polish gh-13588 2024-09-19 12:08:48 -05:00
Steve Riesenberg 63f018eb18
Update tests using deprecated classes
Issue gh-15737
2024-09-10 15:10:42 -05:00
Steve Riesenberg 7490a8162b
Deprecate default OAuth2AccessTokenResponseClients
Closes gh-15737
2024-09-10 15:10:41 -05:00
Steve Riesenberg 2cead9b73f
Add RestClient implementations
Issue gh-15298
2024-09-10 15:10:41 -05:00
Steve Riesenberg e3c19ba86c Add RestClient interceptor
Closes gh-13588
2024-08-16 17:15:18 -05:00
Marcus Hert Da Coregio aa9c1bab67 Upgrade to Spring Framework 6.2.0-M4
Closes gh-15266
2024-06-18 14:07:05 -03:00
Steve Riesenberg 7c45ebd81c
Polish gh-15012 2024-06-03 17:02:38 -05:00
Filip Hrisafov 99aee99b34
Expose user name attribute name in `OAuth2UserAuthority` 2024-06-03 12:30:34 -05:00
Steve Riesenberg db9f5935ae
Merge branch '6.2.x' into 6.3.x 2024-05-29 16:24:05 -05:00
Steve Riesenberg 5a1d261ce0
Merge branch '5.8.x' into 6.2.x 2024-05-29 16:23:37 -05:00
Steve Riesenberg e34621ec2c
Polish gh-14977 2024-05-29 16:23:00 -05:00
JANG 1695d03b72
Assert WebSession is not null
Issue gh-14975
2024-05-29 14:55:37 -05:00
Marcus Hert Da Coregio 08f11f06ab Revert unnecessary commits from main
Issue gh-15016
2024-05-08 13:49:18 -03:00
Steve Riesenberg 2598bf8c37
Polish gh-14859 2024-04-29 15:07:45 -05:00
Crain-32 d0adb2aa70
Simplify Disabling Encoding Client ID and Secret
Closes gh-11440
2024-04-29 14:46:12 -05:00
Steve Riesenberg 05d3beb6a8
Polish gh-13648 2024-04-18 16:17:49 -05:00
ch4mpy b69939c1e5
Getters for OAuth2AuthorizedClientId properties
Expose getters for principalName and clientRegistrationId which compose an OAuth2AuthorizedClientId
2024-04-18 16:10:39 -05:00
Josh Cummings b1b84f9b8a
Revert "Support overriding RestOperations in OidcIdTokenDecoderFactory"
This reverts commit 9c352c4b4b.

Issue gh-14178
2024-04-11 14:29:59 -06:00
Josh Cummings 5a50bfccac
Revert "Support overriding WebClient in ReactiveOidcIdTokenDecoderFactory"
This reverts commit 0041c658de.

Issue gh-14178
2024-04-11 14:29:59 -06:00
Max Batischev ff19f04fca Add JwtValidators append to default
Implemented simplified creation of default OAuth2TokenValidator with additional validators.

Closes gh-14831
2024-04-02 14:41:35 -07:00
Josh Cummings b648a24f5f
Polish Type Conversion API
Issue gh-6245
2024-04-01 16:14:21 -06: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 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