7535 Commits

Author SHA1 Message Date
Rob Winch
f8f1e9a3d4 Use ConcurrentHashMap in InMemoryReactiveClientRegistrationRepository
Fixes gh-7299
2019-09-04 19:21:22 -05:00
Bouke Nijhuis
bf78e43403 add media type jwk-set+json to accept header
Fixes gh-7290
2019-09-03 14:39:18 -04:00
Angel Aguilera
3599ad7547 use simple link instead of 'pass' macro 2019-08-29 06:23:26 -05:00
Angel Aguilera
143e3ac249 fix footnotes markup
Fixes #3180
2019-08-29 06:23:26 -05:00
Josh Cummings
362356dea5
Add WebSecurityConfigurerAdapter Doc Detail
Fixes gh-6809
2019-08-22 17:58:14 -06:00
Daniel Wegener
f28fe2d501
Add OnCommittedResponseWrapper.setContentLengthLong
Add setContentLengthLong tracking to OnCommittedResponseWrapper in
order to detect commits on servlets that use setContentLengthLong to
announce the entity size they are about to write (as used in the
Apache Tomcat's DefaultServlet).

Fixes gh-7261
2019-08-22 12:19:33 -06:00
Rob Winch
5114190cb6 Fix WebClient Memory Leaks
WebClient exchange requires that the body is consumed. Before this commit
there were places where an Exception was thrown without consuming the body
if the status was not successful. There was also the potential for the
statusCode invocation to throw an Exception of the status code was not
defined which would cause a leak.

This commit ensures that before the Exception is thrown the body is
consumed. It also uses the http status in a way that will ensure an
Exception is not thrown.

Fixes gh-7293
2019-08-21 12:46:54 -05:00
Rob Winch
93d1c7f59f Fix JDK 10+
Issue gh-7265
2019-08-16 11:15:01 -05:00
Rob Winch
2c128e85fa SecurityMockMvcConfigurer Honors Filter Order
Fixes gh-7265
2019-08-16 09:41:16 -05:00
Eleftheria Stein
a17b75e862 Expire as many sessions as exceed maximum allowed
Fixes: gh-7166
2019-08-15 09:49:08 -05:00
Jeffrey Morlan
178a5e0819 Fix race condition in SessionRegistryImpl
Adding/removing sessions from principals wasn't atomic. If one thread
removed the last session from a principal while another thread added a
new one, the addition could be lost.

Fixes gh-3189
2019-08-06 13:46:08 -05:00
kostya05983
7542d59364 Fix docs typo WebSecurityConfigurationAdapter->WebSecurityConfigurerAdapter
Fixes gh-7026
2019-08-06 13:08:19 -05:00
Josh Cummings
83b7d7d461
Update to 5.1.7.BUILD-SNAPSHOT 2019-08-05 17:47:15 -06:00
Josh Cummings
17b48b0b60
Next Development Version 2019-08-05 17:43:50 -06:00
Josh Cummings
f3cdd44350
Release 5.1.6.RELEASE 5.1.6.RELEASE 2019-08-05 17:22:17 -06:00
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