8035 Commits

Author SHA1 Message Date
Lars Grefer
1048601f3d Use correct encoding for compilation 2019-08-14 08:47:00 -05:00
Eddú Meléndez
2e63def05b Add tests 2019-08-14 00:56:26 -05:00
Eddú Meléndez
93142f3e30 Remove unboundid dependency 2019-08-13 20:39:25 -05:00
Eddú Meléndez
c03fb701ce Improve logic to pick embedded server 2019-08-13 20:36:46 -05:00
Eddú Meléndez
3511c0ea4f Update xsd 2019-08-13 20:17:51 -05:00
Lars Grefer
ee9a3a2fa8 Prevent IntelliJ IDEA from generating spaces for indentation 2019-08-13 13:43:44 -05:00
Josh Cummings
4ed197e515 Rename OAuth2TokenIntrospectionClient
Renamed to OpaqueTokenIntrospector

Fixes gh-7245
2019-08-12 18:05:28 -04:00
Rob Winch
cfef52f50c Revert OpenJDK for Jenkinsfile
Unable to download the openjdk installations that are setup
2019-08-12 14:28:57 -05:00
Rob Winch
39d2b32603 Polish io.freefair.aspectj Usage
Consistent aspectj version throughout
2019-08-12 14:19:50 -05:00
Rob Winch
caeae6aa5b Jenkinsfile use jdk8
Jenkins does not have openjdk8 defined
2019-08-12 13:48:00 -05:00
Rob Winch
cd79818454 Jenkins use openjdk 2019-08-12 13:37:43 -05:00
Rob Winch
c1db1aad91
Cleanup Code Style Issues
Cleanup Code Style Issues
2019-08-12 13:06:49 -05:00
Lars Grefer
a51318eb95 Use the 'io.freefair.aspectj' gradle plugin 2019-08-12 11:46:28 -05:00
Lars Grefer
ec6ca97226 Fix tests 2019-08-11 21:09:10 +02:00
Eddú Meléndez
9b2af944fa Add unbounid support in xml
Currently, spring-security provides apacheds integration by default. This
commit introduces a new `mode` in the `ldap-server` tag which allows to choose
beetween `apacheds` and `unboundid`. In order to keep backward compatibility
if `mode` is not set and apacheds jars are in the classpath apacheds is used
as a embedded ldap.

Fixes gh-6011
Currently, unboundid was added as a support for embbeded LDAP and it
is used on the Java Config. This commit introduces support from XML side.
Also, give the chance to users to move from apacheds to unboundid using
a new attribute `mode`.

Fixes gh-6011
2019-08-10 19:07:45 -05:00
Francesco Chicchiriccò
0410bac559 Add support for oauth2Login().securityContextRepository(...)
Fixes gh-7222
2019-08-10 15:56:20 -04:00
Lars Grefer
ff1070df36 remove redundant modifiers found by checkstyle 2019-08-10 00:18:56 +02:00
Lars Grefer
bbefc491b2 unused imports 2019-08-09 16:59:07 -05:00
Lars Grefer
38de737663 Java 8: Statement lambda can be replaced with expression lambda 2019-08-09 16:59:07 -05:00
Lars Grefer
7b2a7847e5 Java 8: Single Map method can be used 2019-08-09 16:59:07 -05:00
Lars Grefer
3a5d8ba696 Java 8: Collections.sort() can be replaced with List.sort() 2019-08-09 16:59:07 -05:00
Lars Grefer
25c06be1eb Java 7: Identical 'catch' branches in 'try' statement 2019-08-09 16:59:07 -05:00
Lars Grefer
5e44a249f8 Java 5: while-loop replaceable with foreach 2019-08-09 16:59:07 -05:00
Lars Grefer
91c846756e Java 5: Unnecessary Boxing 2019-08-09 16:59:07 -05:00
Lars Grefer
578d628774 'Collection.toArray()' call style 2019-08-09 16:57:31 -05:00
Lars Grefer
b3352c7c6e Add Checkstyle configuration for IntelliJ IDEA 2019-08-09 16:21:30 -05:00
Lars Grefer
d9016e52e6 Let checkstyle prevent redundant modifiers in the future 2019-08-09 02:52:19 +02:00
Lars Grefer
b388976ac8 fix checkstyle 2019-08-09 02:46:20 +02:00
Lars Grefer
50b4883756 Revert Documentation changes 2019-08-09 00:45:42 +02:00
Lars Grefer
35bdf1f009 Unnecessary semicolon 2019-08-09 00:43:13 +02:00
Lars Grefer
d9c1f03b84 Unnecessary interface modifier 2019-08-09 00:42:35 +02:00
Lars Grefer
40bee457f9 Unnecessary enum modifier 2019-08-09 00:42:07 +02:00
Lars Grefer
8d0ca14e55 Unnecessary conversion to String 2019-08-09 00:41:46 +02:00
Lars Grefer
eddcd1622f Type parameter extends Object
Reports any type parameters and wildcard type arguments explicitly declared to extend java.lang.Object.
2019-08-09 00:40:13 +02:00
Lars Grefer
fe9e454978 StandardCharsets can be used
Reports methods and constructors where constant charset String literal is used (like "UTF-8") which could be replaced with a predefined Charset object like StandardCharsets.UTF_8. This may work a little bit faster, because charset lookup becomes unnecessary. Also catching UnsupportedEncodingException may become unnecessary as well. In this case the catch block will be removed automatically.
2019-08-09 00:39:09 +02:00
Eddú Meléndez
a171d8b4bf Make ldap integration tests independent
Fixes gh-5942
2019-08-08 17:52:58 -04:00
Eddú Meléndez
76718c4db6 Add method getPort in ApacheDSContainer
Fixes gh-7236
2019-08-08 17:52:58 -04:00
Lars Grefer
fb39d9c255 Anonymous type can be replaced with lambda 2019-08-08 17:09:09 -04:00
Lars Grefer
05f42a4995 Remove unused imports 2019-08-08 14:22:31 -04:00
Josh Cummings
3a831820f6
Polish LdapUserDetailsManagerModifyPasswordTests
Issue gh-3392
2019-08-07 14:37:46 -06:00
Josh Cummings
65f6025cef
Polish OAuth2LoginConfigurer
Improve way of accessing ApplicationContext to ensure backward
compatibility.

Issue gh-7232
2019-08-07 13:25:38 -06:00
Josh Cummings
a00ad37168
OAuth2LoginConfigurer UserService Beans
Fixes gh-7232
2019-08-07 10:58:23 -06:00
Lars Grefer
f5cd0ec302 Use try-with-resources instead of try-finally 2019-08-06 15:33:04 -05:00
Jeffrey Morlan
a17d66463d 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:45:50 -05:00
Henrique Luis Schmidt
da62c31fdc Add test examples for the resource server sample
- Add a post endpoint in /messages
- Changes the security config to require the read scope to GET a message and the write scope
to POST a new message.
- Changes the jwks of the mock server so I could create a new access token with the write scope.
- Creates tests and integration-tests for the POST endpoint.
- Changes the README to add an example of a POST request.

Fixes gh-7118
2019-08-06 14:27:29 -04:00
kostya05983
646f257e01 docs, change name of class in multiple httpSecurity 2019-08-06 13:05:55 -05:00
Lars Grefer
2056834432 Cleanup unnecessary unboxing
Unboxing is unnecessary under Java 5 and newer, and can be safely removed.
2019-08-06 10:17:38 -04:00
Lars Grefer
2306d987e9 Cleanup unnecessary boxing 2019-08-06 10:17:38 -04:00
Filip Hanik
2055466ad7 Add Javadoc 2019-08-05 19:43:00 -04:00
Filip Hanik
ddf68821cb Add RequestMatcher.matcher(HttpServletRequest)
Step 3 - Usage of RequestVariablesExtractor or types that are assigned
to AntPathRequestMatcher should be replaced with the new method.

[closes #7148]
2019-08-05 19:43:00 -04:00