Phillip Webb
37fa94fafc
Organize imports
...
Use "organize imports" from Eclipse to cleanup import statements so
that they appear in a consistent and well defined order.
Issue gh-8945
5 years ago
Phillip Webb
5f64f53c3f
Use consistent "@" tag order in Javadoc
...
Ensure that Javadoc "@" tags appear in a consistent and well defined
order.
Issue gh-8945
5 years ago
Phillip Webb
b7fc18262d
Reformat code using spring-javaformat
...
Run `./gradlew format` to reformat all java files.
Issue gh-8945
5 years ago
Phillip Webb
8e092f8d2c
Add noformat blocks around withDefaultPasswordEncoder
...
Find `withDefaultPasswordEncoder` calls and protect them against
formatting.
Issue gh-8945
5 years ago
Phillip Webb
63b5998fad
Add noformat blocks around auth config
...
Find `auth` config using a regex search of `^\s*auths*$` and protect
them against formatting.
Issue gh-8945
5 years ago
Phillip Webb
103d822e46
Add noformat blocks around http config
...
Find `http` config using a regex search of `^\s*https*$` and protect
them against formatting.
Issue gh-8945
5 years ago
Joe Grandja
1d74d556c2
Revert "Lock Dependency Versions for 5.4.0-RC1"
...
This reverts commit f3a1e5d40c .
5 years ago
Joe Grandja
f3a1e5d40c
Lock Dependency Versions for 5.4.0-RC1
5 years ago
Dávid Kováč
af1c96b425
Simplify OAuth 2.0 Introspection Attribute Retrieval
...
In order to simplify retrieving of OAuth 2.0 Introspection specific
attributes, OAuth2IntrospectionClaimAccessor interface was introduced
and also new OAuth2AuthenticatedPrincipal implementing this new
interface (OAuth2IntrospectionAuthenticatedPrincipal).
Also DefaultOAuth2AuthenticatedPrincipal was replaced by
OAuth2IntrospectionAuthenticatedPrincipal in cases where OAuth 2.0
Introspection is performed (NimbusOpaqueTokenIntrospector,
NimbusReactiveOpaqueTokenIntrospector).
DefaultOAuth2AuthenticatedPrincipal can be still used by applications
that introspected the token without OAuth 2.0 Introspection.
OAuth2IntrospectionAuthenticatedPrincipal will also be used as a
default principal in tests where request is post-processed/mutated
by OpaqueTokenRequestPostProcessor/OpaqueTokenMutator.
Closes gh-6489
6 years ago
Josh Cummings
146d0b6358
Revert "Lock Dependency Versions for 5.4.0-M2"
...
This reverts commit 68538897c8 .
6 years ago
Josh Cummings
68538897c8
Lock Dependency Versions for 5.4.0-M2
6 years ago
Rob Winch
dac7806cf5
Test beforeTestMethod delays creation of SecurityContext
...
Issue gh-6591
6 years ago
Markus Gabriel
97ee6d66f1
Fix SecurityContext creation for TEST_EXECUTION
...
Currently, there is support for setting up a SecurityContext after @Before by
using TestExecutionEvent.TEST_EXECUTION. The current implementation, however,
already creates the SecurityContext in @Before and just does not set it yet.
This leads to issues like #6591 . For the case of @WithUserDetails , the
creation of the SecurityContext already looks up a user from the repository.
If the user was inserted in @Before , the user is not found despite using
TestExecutionEvent.TEST_EXECUTION. This commit changes the creation of the
SecurityContext to happen after @Before if using
TestExecutionEvent.TEST_EXECUTION.
Closes gh-6591
6 years ago
Dávid Kovács
88028d82ed
formLogin() and login() implement Mergable
...
This is necessary so that default requests like Spring REST Docs work.
Closes gh-7572
6 years ago
Josh Cummings
900f551890
Inject TestOAuth2AuthorizedClientRepository
...
Fixes gh-8603
6 years ago
Joe Grandja
86ca6b013c
Unlock dependencies
...
This reverts commit 206960cf44 .
6 years ago
Joe Grandja
206960cf44
Lock dependencies for 5.4.0-M1
6 years ago
Dávid Kovács
1f1ddeb025
SecurityMockMvcConfigurer$DelegateFilter is not null-safe
...
This commit adds null-check to getter method, so instead of NPE an IllegalStateException will be thrown with additional details.
Fixes gh-7745
6 years ago
Markus Engelbrecht
d81321bc29
Fix typo 'properites' in documentation
...
Fixes gh-8095
6 years ago
Josh Cummings
6eadf7b140
Unlock dependencies for 5.3.0.RELEASE
...
This reverts commit 147d7dadd7 .
6 years ago
Josh Cummings
147d7dadd7
Lock dependencies for 5.3.0.RELEASE
6 years ago
Josh Cummings
85b0e468ad
Add missing calls to principalName
...
Issue gh-8054
6 years ago
Josh Cummings
2064214f39
Add principal name to oauth2Client Test Support
...
Fixes gh-8054
6 years ago
Josh Cummings
3bc1b7a933
Simplify opaqueToken support
...
Remove scopes convenience method to alleviate potential confusion with
the "scope" attribute.
Issue gh-7827
Issue gh-7712
6 years ago
Josh Cummings
689fc9df0c
Align Test Support Claims
...
Make all sub claims 'user' and all scopes 'read' to align with
existing support for JWT
Issue gh-7828
Issue gh-7789
Issue gh-7680
Issue gh-7618
6 years ago
Josh Cummings
30adabb685
Simplify oauth2Login Test Support
...
Remove nameAttributeKey as this is easily done by constructing
a DefaultOAuth2User instance.
Issue gh-7789
Issue gh-7828
6 years ago
Josh Cummings
bd593a3431
Add Opaque Token WebTestClient Support
...
Fixes gh-7827
6 years ago
Josh Cummings
ffb5a3a0d4
Add oauth2Client WebTestClient Support
...
Fixes gh-7910
6 years ago
Eleftheria Stein
84b8a5abd7
Unlock dependencies for next development version
...
This reverts commit 064616f1ef .
6 years ago
Eleftheria Stein
064616f1ef
Lock dependencies for 5.3.0.RC1
6 years ago
Josh Cummings
c367378421
Add OAuth2Client MockMvc Test Support
...
Fixes gh-7886
6 years ago
Josh Cummings
982f3f902c
Add oauth2Login Reactive Test Support
...
Fixes gh-7828
6 years ago
Josh Cummings
8f1d0cf528
opaqueToken MockMvc Configuration Order
...
Fixes gh-7800
6 years ago
Eleftheria Stein
fcc6457bef
Unlock dependencies for next development version
...
This reverts commit 93acf8f0f1 .
6 years ago
Eleftheria Stein
93acf8f0f1
Lock dependencies for 5.3.0.M1
6 years ago
Josh Cummings
09810b8df9
oidcLogin Test Configuration Flow
...
Fixes gh-7794
6 years ago
Josh Cummings
84ba3ddf26
Add oauth2Login MockMvc Support
...
Fixes gh-7789
6 years ago
Josh Cummings
e1fdb24b5d
Add opaqueToken MockMvc Test Support
...
Fixes gh-7712
6 years ago
Josh Cummings
d102cae243
oidcLogin MockMvc Documentation
...
Remove documentation requiring a valid ClientRegistrationRepository
Issue: gh-7618
6 years ago
Josh Cummings
8c32d5fe48
Add oidcLogin WebFlux Test Support
...
Fixes: gh-7680
6 years ago
Josh Cummings
b35e18ff31
Add oidcLogin MockMvc Test Support
...
Fixes gh-7618
6 years ago
Josh Cummings
7cbd1665a6
Isolate Jwt Test Support
...
Isolating Jwt test support inside JwtRequestPostProcessor and
JwtMutator.
Fixes gh-7641
6 years ago
Drummond Dawson
4f82be7e68
Support URI vars in formLogin and logout MockMvc requests
6 years ago
Josh Cummings
05caf3d8fb
Use Jwt.Builder
...
Fixes gh-7443
6 years ago
Josh Cummings
b55b2914c2
Mock Jwt Disables CSRF
...
Fixes gh-7170
6 years ago
Lars Grefer
95511331fa
fix checkstyle
6 years ago
Lars Grefer
34dd5fea30
Remove redundant throws clauses
...
Removes exceptions that are declared in a method's signature but never thrown by the method itself or its implementations/derivatives.
6 years ago
Rob Winch
9d63c36f93
Fix JDK 10+
...
Issue gh-7265
6 years ago
Rob Winch
0c6bff4afb
SecurityMockMvcConfigurer Honors Filter Order
...
Fixes gh-7265
6 years ago
Lars Grefer
ff1070df36
remove redundant modifiers found by checkstyle
6 years ago