7620 Commits

Author SHA1 Message Date
Josh Cummings
404ad9ab45
Remove BlockHound dependency
Since it is not yet GA

Fixes gh-7220
2019-08-05 17:21:26 -06:00
Josh Cummings
23d06534e0
Revert "Release 5.1.6.RELEASE"
This reverts commit 6712ab50568e1d21be6cbd36bbd85164c358c5ad.
2019-08-05 17:01:26 -06:00
Josh Cummings
6712ab5056
Release 5.1.6.RELEASE 2019-08-05 15:56:30 -06:00
Josh Cummings
80c747b672
Update to jython 2.5.3
Fixes gh-7216
2019-08-05 15:43:44 -06:00
Josh Cummings
f48e26d051
Update to Spring Boot 2.1.6.RELEASE
Fixes gh-7215
2019-08-05 14:42:38 -06:00
Josh Cummings
25d7392e13
Update to jetty 9.4.19.v20190610
Fixes: gh-7210
2019-08-05 14:42:00 -06:00
Josh Cummings
e7f0bdd5bb
Update to groovy 2.4.17
Fixes gh-7209
2019-08-05 14:39:09 -06:00
Josh Cummings
f6c7c29c46
Update to jaxb-impl 2.3.2
Fixes gh-7202
2019-08-05 14:37:45 -06:00
Josh Cummings
9146725fdc
Update to powermock 2.0.2
Fixes gh-7214
2019-08-05 13:33:05 -06:00
Josh Cummings
536587e58d
Update to hibernate-validator 6.0.17.Final
Fixes gh-7212
2019-08-05 13:31:23 -06:00
Josh Cummings
115a240ba0
Update to hibernate-entitymanager 5.3.10.Final
Fixes gh-7211
2019-08-05 13:30:50 -06:00
Josh Cummings
e6765b0c4e
Update to bcpkix-jdk15on 1.62
Fixes gh-7208
2019-08-05 13:29:19 -06:00
Josh Cummings
a05ec35a33
Update to httpclient 4.5.9
Fixes gh-7207
2019-08-05 13:28:36 -06:00
Josh Cummings
75f46cfe83
Update to unboundid-ldapsdk 4.0.11
Fixes gh-7203
2019-08-05 13:27:04 -06:00
Josh Cummings
b2e8ffde4f
Update to mockwebserver 3.12.3
Fixes gh-7201
2019-08-05 13:26:00 -06:00
Josh Cummings
ad626f5f8c
Update to appengine 1.9.76
Fixes gh-7200
2019-08-05 13:24:55 -06:00
Josh Cummings
900f082350
Update to jackson-annotations and -core 2.9.9
Fixes gh-7217
2019-08-05 13:22:43 -06:00
Josh Cummings
382177e9b5
Update to jackson-databind 2.9.9.2
Fixes gh-7199
2019-08-05 13:22:43 -06:00
Josh Cummings
7fa60c9b4e
Update to cglib-nodep 3.2.12
Fixes gh-7198
2019-08-05 13:22:35 -06:00
Josh Cummings
ecc66e9c75
Update to Spring Data Lovelace-SR9
Fixes gh-7206
2019-08-05 13:15:35 -06:00
Josh Cummings
494bc52014
Update to Reactor Californium-SR10
Fixes gh-7204
2019-08-05 13:14:51 -06:00
Josh Cummings
252ec584b3
Update to Spring Framework 5.1.9.RELEASE
Fixes gh-7205
2019-08-05 13:13:51 -06:00
Joe Grandja
e87be80f65 Fix checkstyle 2019-07-26 15:39:49 -04:00
Joe Grandja
26a0107e95 Fix blocking in ServletOAuth2AuthorizedClientExchangeFilterFunction
Fixes gh-7156
2019-07-26 14:48:25 -04:00
Édouard Hue
e7588fb32f Fixed validation in ClientRegistration.Builder
ClientRegistration.Builder defaulted to validating as an
authorization_code registration, though a custom grant type could be in
use. The actual grant_type is now verified for every case.
 - Fixed validation in ClientRegistration.Builder
 - New test that fails unless the issue is fixed.

Also made OAuth2AuthorizationGrantRequestEntityUtils public to help
implementing custom token response clients.

Fixes gh-7040
2019-07-03 16:19:57 -05:00
Rob Winch
57bc456ad6 Revert "Polish SCrypt Upgrade Support"
This reverts commit 0d5392103990430787b0f322c2c9fc94494bb7e5.
2019-07-03 16:18:02 -05:00
Rob Winch
0d53921039 Polish SCrypt Upgrade Support
* Break up tests
* Rename test methods to follow conventions
* Fix checkstyle

Fixes gh-7057

# Conflicts:
#	crypto/src/main/java/org/springframework/security/crypto/scrypt/SCryptPasswordEncoder.java
#	crypto/src/test/java/org/springframework/security/crypto/scrypt/SCryptPasswordEncoderTests.java
2019-07-03 16:15:32 -05:00
Behrang
48a5c854fd Minor fix
These four items, not three items, constitute the auth process:

. A user is prompted to log in with a username and password.
. The system (successfully) verifies that the password is correct for the username.
. The context information for that user is obtained (their list of roles and so on).
. A security context is established for the user
2019-06-28 11:42:12 -05:00
Rob Winch
9d543ce4d1 Allow custom ReactiveAuthenticationManager for basic and form auth
Prior to this change, "HttpBasicSpec#authenticationManager" and
"FormLoginSpec#authenticationManager" were always overridden by
"ServerHttpSecurity#authenticationManager".

This commit makes sure override only happens when custom authentication
manager was not specified.

Fixes: gh-5660
2019-06-28 11:21:18 -05:00
Rob Winch
aac854453e
ServerBearerTokenAuthenticationConverter Handles Empty Tokens
Previously ServerBearerTokenAuthenticationConverter would throw an
IllegalArgumentException when the access token in a URI was empty String.
It also incorrectly provided HttpStatus.BAD_REQUEST for an empty String
access token in the headers.

This changes ServerBearerTokenAuthenticationConverter to consistently
throw a OAuth2AuthenticationException with an HttpStatus.UNAUTHORIZED

Fixes gh-7011
2019-06-28 06:48:46 -06:00
Joe Grandja
b0597f45a8 Revert OAuth2AuthorizationCodeGrantWebFilter works with /{action}/
Issue #5856
Commit 385bdfc055854581e9e9f671d11f86a978c27c42

NOTE: This commit 'partially' reverts #5856. Only the ServerWebExchangeMatcher for OAuth2LoginSpec is reverted.

Fixes gh-6890
2019-06-19 16:53:19 -04:00
Joe Grandja
efe64aa7d9 Revert OAuth2LoginAuthenticationFilter should ignore authenticated requests
Issue #5915
Commit 93ca45540556c4e8ade7f8948883f94fb0851ebb

Fixes gh-6890
2019-06-19 16:51:01 -04:00
Josh Cummings
1707f16a4d
Release Scripts
Added a script for polling Maven Central to notify when release is
uploaded.
2019-06-19 13:40:15 -06:00
Rob Winch
4103525dd4 Fix typo in OAuth2TokenValidator doc
Fixes gh-6925

# Conflicts:
#	docs/manual/src/docs/asciidoc/_includes/servlet/preface/java-configuration.adoc
2019-06-17 15:36:57 -05:00
Rob Winch
4f1d7f7cdd DefaultServerOAuth2AuthorizationRequestResolver uses fromUri
Fixes gh-6952
2019-06-04 15:41:17 -05:00
Josh Cummings
ad1773c488 Reinstate docs and schema deployments
Fixes: gh-6929
2019-05-31 21:51:58 -06:00
Josh Cummings
1833af5571
Temporarily remove docs and schema deployments
Issue: gh-6929
2019-05-31 13:57:43 -06:00
Josh Cummings
9c17e235d7
Adding JAVA_HOME for JDK 8
Fixes: gh-6928
2019-05-31 13:57:43 -06:00
Joe Grandja
163445aceb client_credentials client should not set Authorization header when ClientAuthenticationMethod.POST
Fixes gh-6911
2019-05-31 15:12:19 -04:00
Rob Winch
ab14b57063 Snapshot Tests use Framework 5.1.x
The 5.1.x code will only update patch versions of Spring Framework, so we
should lock down the Snapshot tests to use the latest 5.1.x changes

Fixes: gh-6880
2019-05-15 10:35:48 -05:00
Joe Grandja
ac3f9b8fb3 oauth2Login does not auto-redirect for XHR request
Fixes gh-6812
2019-05-02 16:32:13 -04:00
Kyle Anderson
f03d726e49
Fix Broken Documentation Link
Fixes: gh-6553
2019-04-13 20:59:59 -06:00
Joe Grandja
d066e1a4be Next Development Version 2019-04-02 11:59:04 -04:00
Joe Grandja
1e694b1304 Release 5.1.5.RELEASE 5.1.5.RELEASE 2019-04-02 11:35:44 -04:00
Josh Cummings
3ddcbde466
Align Code with Javadoc
Fixes: gh-6734
2019-04-02 09:32:28 -06:00
Rob Winch
cd326df659 Update to Spring Data Lovelace-SR6
Fixes: gh-6665
2019-04-02 09:19:41 -05:00
Phil Clay
4c530661e7 Make UnAuthenticatedServerOAuth2AuthorizedClientRepository threadsafe
Previously UnAuthenticatedServerOAuth2AuthorizedClientRepository used a HashMap for storing OAuth2AuthorizedClients.
UnAuthenticatedServerOAuth2AuthorizedClientRepository and its HashMap are potentially accessed by multiple threads without any synchronization.
Since HashMap is not threadsafe itself, this makes UnAuthenticatedServerOAuth2AuthorizedClientRepository not threadsafe.

Now UnAuthenticatedServerOAuth2AuthorizedClientRepository uses a ConcurrentHashMap for storing OAuth2AuthorizedClients.
Since ConcurrentHashMap is threadsafe, UnAuthenticatedServerOAuth2AuthorizedClientRepository will now be threadsafe as well.

Fixes gh-6717
2019-04-01 17:09:47 -04:00
Phil Clay
2df411fed0 Defer downstream filter execution if no OAuth2AuthorizedClient is found
Prior to this change, ServerOAuth2AuthorizedClientExchangeFilterFunction would invoke next.exchange:
- first at assembly time inside the .switchIfEmpty call.
- second at execution time inside .flatMap when a OAuth2AuthorizedClient is found.

While this double-call should not technically cause any functional problems, since the Mono returned by the first call will not be subscribed if a OAuth2AuthorizedClient is found,
it does result in a lot of unnecessary execution and object creation.  There is no technical need to invoke the downstream filters twice.

This change defers the call inside .switchIfEmpty, so that it will only execute at execution time if an OAuth2AuthorizedClient is not found.

After this change, ServerOAuth2AuthorizedClientExchangeFilterFunction will not invoke next.exchange at assembly time, and will only execute next.exchange once per subscription at execution time.

Fixes gh-6719
2019-04-01 16:36:51 -04:00
Joe Grandja
ede969384d Update to Spring 5.1.6.RELEASE
Fixes gh-6664
2019-04-01 09:51:52 -04:00
Joe Grandja
d3840c262d Manual URL Cleanup 2019-03-28 18:17:39 -04:00