Rob Winch
0b481cf4b6
Make UserBuilder.username public
...
This allows for reusing a UserBuilder to create multiple UserDetails with
similar attributes but different usernames.
Fixes gh-4453
9 years ago
Rob Winch
37011720c9
Update to latest Spring IO Cairo SNAPSHOT
...
Fixes gh-4407
9 years ago
Rob Winch
fb85ad6bd7
Revert "Work Around SPR-15651"
...
This reverts commit 6c286696b4 .
9 years ago
Rob Winch
dcef3d6ebb
Remove springIoVersion for release preparations
9 years ago
Rob Winch
6c286696b4
Work Around SPR-15651
...
Issue gh-4386
9 years ago
Rob Winch
d09fb5b500
Move UserDetailsRepository to core.userdetails
...
Fixes gh-4383
9 years ago
Rob Winch
5dee8534cd
Update SecurityJackson2Modules
...
Fixes gh-4370
9 years ago
Rob Winch
a79a81cd24
Simplify webflux samples
...
Remove the custom user from the hellowebflux and hellowebfluxfn samples.
9 years ago
Rob Winch
07234f6255
Switch back to Spring Framework 5.0.0.BUILD-SNAPSHOT
9 years ago
Rob Winch
22c1685d70
Use AssertionsForClassType
9 years ago
Vedran Pavic
e9427e421b
Update Spring version
9 years ago
Vedran Pavic
85719fcd64
Use Base64 implementation provided by Java 8
9 years ago
Rob Winch
b4f2777755
Add WebFlux
...
Fixes gh-4128
9 years ago
Rob Winch
051e3fb079
Add UserBuilders.withUserDetails
9 years ago
Rob Winch
5c7ff5c24a
Update to spring 5.0.0.RC1
9 years ago
Rob Winch
dd6fc48dd8
Standardize Build
...
The build now uses spring build conventions to simplify the build
Fixes gh-4284
9 years ago
Joe Grandja
71e491fcf0
Provide abstraction for an Authenticated Principal
9 years ago
Joe Grandja
2b81983f7c
Update to Java 8 compatibility
...
* Spring IO Athens-BUILD-SNAPSHOT -> Cairo-BUILD-SNAPSHOT
* CGLib 3.1 -> 3.2.5 latest release Issue related to ASM https://github.com/cglib/cglib/issues/20
* AssertJ 2.2.0 -> 3.6.2 latest release
* PowerMock 1.6.2 -> 1.6.5 latest release is 1.6.6 but has regression Issue https://github.com/powermock/powermock/issues/717
* Update maven-compiler-plugin source/target to 1.8
9 years ago
Rob Winch
3ca78df15f
Fix Security version Test
9 years ago
pkovacs
f99fe36e02
Refer to SimpleGrantedAuthority instead of GrantedAuthorityImpl
...
GrantedAuthorityImpl has been replaced a couple of years ago with
SimpleGrantedAuthority and this commit fixes the documentation items
which weren’t updated to reflect this change.
Fixes gh-4163.
9 years ago
stonio
901a4e183a
Update SecurityContextHolder.java
...
Use StringUtils.hasText
9 years ago
Rob Winch
b64cdb5765
Fix RoleHiearchyUtilsTests on Windows
...
Fixes gh-4228
9 years ago
Rob Winch
9c03571bbb
Use message in all Assert
...
This ensures compatibility with Spring 5.
Fixes gh-4193
9 years ago
Rob Winch
6bec625e68
Update to Spring 4.3.5.RELEASE
...
Fixes gh-4167
9 years ago
Rob Winch
a9024de734
Polish Spring Version Update
...
Fix related tests.
Issue gh-4123
9 years ago
Rob Winch
f0a9421aa4
SecurityJacksonModules->SecurityJackson2Modules
...
Fixes gh-4121
9 years ago
Rob Winch
e62596f36d
Polish PasswordEncoderUtils do not leak length
...
Fix possible / 0 if expected is empty String.
Issue gh-255
9 years ago
Rob Winch
d3685d89c5
Polish PasswordEncoderUtils do not leak length
...
Issue gh-255
9 years ago
avri-schneider
a98389fa98
PasswordEncoderUtils do not leak length
...
Enforce constant time even when expectedLength != actualLength.
Fixes gh-255
9 years ago
Rob Winch
dc9f9b140f
Polish PasswordEncoderUtilsTests
...
* Add more tests
* Smaller tests
* Follow new naming convention
9 years ago
Rob Winch
f432c04111
Create UserBuilder
...
This commit creates a UserBuilder and updates samples to use it. We do not
leverate it for JdbcUserDetailsManager because it requires the schema to
be created which is difficult with a single bean definition and
unpredicatble ordering. For this, it is still advised to use
AuthenticationManagerBuilder
Fixes gh-4095
9 years ago
Rob Winch
08c1f500a7
Version bumps for Spring 5
...
Issue gh-4080
9 years ago
Jitendra Singh
48ff518a41
Fix Jackson 2.7+
...
UnmodifiableSetDeserializer added which will ensure
Collection$UnmodifiableSet deserialize properly with jackson-databind 2.7+
Fixes gh-4073
9 years ago
Rob Winch
b443baef04
Polish GrantedAuthorityDefaults
...
* Move GrantedAuthorityDefaults to config module
* Move setting of default role into config module vs
ApplicationContextAware
Issue gh-3701
9 years ago
Eddú Meléndez
eabeaf35d6
Make single definition of `defaultRolePrefix` and `rolePrefix`
...
Previous to this commit, role prefix had to be set in every class
causing repetition. Now, bean `GrantedAuthorityDefaults` can be used to
define the role prefix in a single point.
Fixes gh-3701
9 years ago
Joe Grandja
c75a5b7279
Polish RoleHierarchyUtils and add tests
10 years ago
Thomas Darimont
06c67070a6
Add convenience method for constructing RoleHierarchy from Map.
...
Introduced `RoleHierarchyUtils` which enables convenient
construction of `RoleHierarchy` from map based representation.
Where the map key is the role name and the map value is a list
of implied role names.
Here is a small example for that in action:
https://gist.github.com/thomasdarimont/ee9fffdef1adb9243b12ad247478aad4
Fixes #3990 .
Signed-off-by: Thomas Darimont <thomas.darimont@gmail.com>
Signed-off-by: Thomas Darimont <thomas.darimont@gmail.com>
10 years ago
Rob Winch
92a59e0df7
Fix checkstyle
...
Issue gh-3736
10 years ago
Rob Winch
8ad0003456
Polish Whitespace
...
Issue gh-3736
10 years ago
Rob Winch
3531cc93c2
JSON tests ObjectMapper Cleanup
...
* Move to @Setup
* Consistently extend from AbstractMixinTests and reuse ObjectMapper
Issue gh-3736
10 years ago
Rob Winch
bd925313af
Improve Readablility of JSON test strings
...
This improves the readability of the JSON strings used for
testing JSON serialize / deserialize of Spring Security
Issue gh-3736
10 years ago
Rob Winch
d4c48dd3e1
Remove MockitoJUnitRunner from JSON tests
...
Previously the JSON tests unnecessarily had MockitoJUnitRunner.
This commit removes MockitoJUnitRunner from the JSON tests.
Issue gh-3736
10 years ago
Rob Winch
df613ed4cc
JSON UserDetails deserializes null
...
JSON UserDetails null use to be treated as "".
This changes null to be treated as a null
Issue gh-3736
10 years ago
Rob Winch
3fb77f3b59
Polish SecurityJacksonModules
...
Issue gh-3736
* ClassLoader argument - this is required because we do not want to assume
the ClassLoader that should be used
* Clean up logging - logging is now at debug level because we don't expect
all of the modules are loaded (they are quite possibly off the ClassPath)
* Remove ObjectUtils as it was being used on methods that expect a
Collection or Array with non collection based objects
* Polish Javadoc warnings
10 years ago
Rob Winch
c2d8ea92d0
SimpleGrantedAuthorityMixin role->authority
...
Issue gh-3736
10 years ago
Rob Winch
6f2b24a62b
Polish JSON warnings / javadoc
...
Issue gh-3736
10 years ago
Rob Winch
6d2003722e
Polish JSON class scope
...
Use package scope when possible
Issue gh-3736
10 years ago
Rob Winch
03d8904a03
Polish constructor assertions
...
Previously the JSON modules didn't use Spring's Assert.
This commit changes the assertions to use Spring's Assert and does
some minor restructuring.
Issue gh-3736
10 years ago
Jitendra Singh Bisht
d77ca17e95
Add JSON Serialization
...
Fixes gh-3812
10 years ago
Rob Winch
53352e336d
Polish gh-4048
10 years ago