Skip to content

Add serialVersionUID to DefaultSavedRequest and SavedCookie #10676

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
117 commits
Select commit Hold shift + click to select a range
9219cbf
Editing pass
Apr 21, 2021
0fdee9c
Further changes
Apr 21, 2021
849aaa4
Change to main
Apr 27, 2021
a6d0719
Various fixes
May 28, 2021
93893de
Accounted for feedback
Jun 2, 2021
7171521
Further changes based on feedback
Jun 4, 2021
252ef78
Add missing delimiters
Jun 4, 2021
12f3e90
Update to Spring Security 6.0
marcusdacoregio Oct 7, 2021
514558d
Temporarily downgrade Java compat level for AspectJ classes
marcusdacoregio Oct 6, 2021
5609626
Remove BlockHound dependency
marcusdacoregio Oct 7, 2021
010f719
Upgrade to JDK 17
marcusdacoregio Oct 7, 2021
e5ff139
Switch workflows to use a JDK17 baseline
marcusdacoregio Oct 7, 2021
f672754
Point to Samples on 6.0.x branch
marcusdacoregio Oct 8, 2021
b2e6c60
Remove remoting technologies support
marcusdacoregio Oct 13, 2021
4f0cc13
Upgrade to AspectJ 1.9.8-RC1
marcusdacoregio Oct 11, 2021
db60df2
Update to Spring Framework 6.0
marcusdacoregio Oct 11, 2021
5c4dd51
Fix CAS Client Java lib not working with Jakarta EE 9
marcusdacoregio Oct 19, 2021
5a0f1d5
Drop EhCache2 support
marcusdacoregio Oct 12, 2021
34e77cb
Update Structure101 version
marcusdacoregio Oct 12, 2021
17e0a47
Revert "Fix CAS Client Java lib not working with Jakarta EE 9"
marcusdacoregio Oct 25, 2021
caf4c47
Remove CAS module
marcusdacoregio Oct 25, 2021
e2c5772
Use explicit version from antora.yml
rwinch Nov 1, 2021
e4a465a
Put nav in generated docs
rwinch Nov 1, 2021
c705a09
Quote the version for antora.yml
rwinch Nov 1, 2021
869e379
Separate Namespace Servlet Docs
jzheaux Nov 1, 2021
49f3c0c
Document authentication helper method in WebClient integration
Nov 3, 2021
b27c7e1
Document parameters converter in oauth2 client servlet docs
Nov 3, 2021
8c508d6
Separate OAuth 2.0 Client Servlet Docs
jzheaux Nov 4, 2021
3db13de
Separate OAuth 2.0 Login Servlet Docs
jzheaux Nov 4, 2021
5019653
Separate OAuth 2.0 Client Reactive Docs
jzheaux Nov 4, 2021
3a3b285
Restructure LDAP Logs
jzheaux Nov 5, 2021
75abf0c
Fix Broken Link
jzheaux Nov 5, 2021
ea352e1
Add missing @since 5.6
Nov 9, 2021
b83693e
Update to Gradle 7.3
marcusdacoregio Nov 10, 2021
03504e2
Update What's New Links
jzheaux Nov 10, 2021
812d6f7
Use authorizeHttpRequests in Docs
jzheaux Nov 10, 2021
09a14bf
Port Missing Integration Docs
jzheaux Nov 10, 2021
2a6e00c
Don't Cache ReactiveJwtDecoders Errors
jzheaux Nov 11, 2021
0c12aeb
Revamp OAuth 2.0 Login Reactive documentation
Nov 5, 2021
83f76fa
Separate OAuth 2.0 Client Reactive Docs
Nov 9, 2021
ab794bf
Consistency update for servlet docs
Nov 11, 2021
4f88bb8
Antora Playbook
rwinch Nov 8, 2021
cba5d32
Fix versions
rwinch Nov 11, 2021
9887b28
Polish gh-10479
Nov 11, 2021
a3e6588
Update What's New for 5.6
Nov 11, 2021
c935959
Add Spring Security 5.6.0-RC1
rwinch Nov 11, 2021
0f0be0b
Remove old local-antora-playbook.yml
rwinch Nov 11, 2021
3c39761
Add --stacktrace Antora argument
rwinch Nov 11, 2021
939a558
Antora remove unnecessary logging
rwinch Nov 11, 2021
eceb9ed
Polish gh-10479
jgrandja Nov 12, 2021
7236f2c
Added authorizeHttpRequests Docs
jzheaux Nov 15, 2021
e398fbf
Include 5.6.0 Release in docs
rwinch Nov 15, 2021
10ac6dc
Update aspectj-plugin to 6.3.0
larsgrefer Nov 11, 2021
912c762
Support for changing prefix and suffix in `DelegatingPasswordEncoder`
heowc Sep 17, 2021
625c7d6
Rename prefix/suffix in DelegatingPasswordEncoder
rwinch Nov 16, 2021
ef25304
Add RedirectStrategy customization to ChannelSecurityConfigurer for R…
okohub Aug 12, 2021
2e4c6c3
Avoid using SpEL to change the meaning of the injection point
snicoll Jul 14, 2021
0aa75e0
Fix imports for ChannelSecurityConfigurerTests
rwinch Nov 16, 2021
e85958f
Fix CsrfConfigurer default AccessDeniedHandler consistency
christophejan Aug 3, 2021
bd34d70
Prevent Save @Transient Authentication with existing HttpSession
rwinch Jun 23, 2021
498636e
Allow custom OAuth2ErrorHttpMessageConverter with OAuth2ErrorResponse…
karhoo-renault Oct 21, 2021
5913501
#10505 Fix jwtDecoder
jmax01 Nov 15, 2021
879b2d0
Fix setJWTClaimSetJWSKeySelector Typo
jmax01 Nov 15, 2021
9316241
Fix AuthnRequestConverter Sample Typos
nor-ek Nov 1, 2021
2dac210
Polish AuthRequestConverter Sample Doc
jzheaux Nov 18, 2021
862122a
Update clockSkew javadoc according to implementation
qavid Oct 9, 2021
25feedb
Fix removal of framework deprecated code
marcusdacoregio Nov 18, 2021
0d8450a
Bump up Gradle enterprise plugin to 3.7.2
jprinet Nov 19, 2021
4f186f2
Move Dsl files to annotation Package
nor-ek Nov 5, 2021
4bc5576
Import cleanup
nor-ek Nov 5, 2021
4374905
Establish new Package Tangle Baseline
jzheaux Nov 19, 2021
ae08608
LdapAuthoritiesPopulator should be postProcessed
fhanik Dec 10, 2020
ba5a68e
Polish LdapAuthenticationPopulator Support
jzheaux Nov 19, 2021
5c012dc
Fix Gradle Deprecation Warnings
larsgrefer Nov 20, 2021
0541341
Remove usages of Gradle's jcenter() repository
larsgrefer Nov 20, 2021
04161b9
Fix return type for NoOpPasswordEncoder bean in documentation
hpoettker Nov 23, 2021
86193b9
Add ObjectIdentityGenerator customization to JdbcAclService
Jul 15, 2021
74e3abc
Polish gh-10081
Nov 23, 2021
7cfd415
Start with LDAP Jackson2 mixins
markusheiden Dec 4, 2020
4f8c1b3
Polish LDAP serialization
eleftherias Nov 29, 2021
82426e2
Fix JwtClaimValidator wrong error code
jason076 Nov 22, 2021
c6a27d4
Remove failing test due to HttpMethod changes
Nov 30, 2021
9a9136d
Fix import spacing
Nov 30, 2021
9f51240
Support IP whitelist for Spring Security Webflux
terminux Jun 27, 2021
898ba67
Polish gh-10007
Nov 30, 2021
809ff88
Address SecurityContextHolder memory leak
shirosaki Jun 16, 2021
78857c6
Polish Memory Leak Mitigation
jzheaux Nov 30, 2021
72109e2
PermitAllSupport supports AuthorizeHttpRequestsConfigurer
igorpele Nov 18, 2021
7e55c84
Add Missing Since
jzheaux Nov 30, 2021
a17dfb8
Add SP NameIDFormat Support
amergey Dec 1, 2020
41c6776
Fix case sensitive headers comparison
Dec 1, 2021
5dd2565
Update copyright year
Dec 1, 2021
176f7b2
Add missing since
Dec 1, 2021
be802f5
Add hasIpAddress to Reactive Kotlin DSL
Dec 1, 2021
c57fc30
Set details on authentication token created by HttpServlet3RequestFac…
karltinawi Apr 11, 2021
d37ff18
Polish gh-9597
Dec 2, 2021
aa3c883
Use BDD in tests
Dec 2, 2021
1896a5e
Fix Reactive OAuth2 Kotlin DSL examples
Dec 3, 2021
263665a
Prevent using both authorizeRequests and authorizeHttpRequests
marcusdacoregio Dec 2, 2021
0beb725
Add Cross Origin Policies headers
marcusdacoregio Dec 3, 2021
c68a75b
Correct imports to jakarta
eleftherias Dec 8, 2021
3935f4b
Fix the bug that the custom GrantedAuthority comparison fails
terminux Dec 8, 2021
c1b0e59
Clarify behaviour of enableSessionUrlRewriting
OrangeDog Nov 13, 2019
81a9302
Polish enableSessionUrlRewriting Clarification
jzheaux Dec 9, 2021
eda3468
Introduce AuthorizationManagerWebInvocationPrivilegeEvaluator
marcusdacoregio Dec 6, 2021
51b4bd6
Add RequestMatcherEntry
marcusdacoregio Dec 10, 2021
d884d9a
Configure WebInvocationPrivilegeEvaluator bean for multiple filter ch…
marcusdacoregio Dec 6, 2021
2fb056b
Merge Clean up Reference Documentation
rwinch Dec 13, 2021
2471e32
Fix xsd tests
rwinch Dec 13, 2021
cbf0e1d
Remove commons-logging from saml2
jzheaux Dec 10, 2021
80e39e9
Add GitHubReleasePlugin with createGitHubRelease task
Dec 22, 2021
ad90745
Fix inconsistency in hasProperty check
Dec 22, 2021
d41ec2b
Upgrade to Spring Framework 6.0.0-M1
marcusdacoregio Jan 3, 2022
d79543b
Upgrade to AspectJ 1.9.8.RC3
marcusdacoregio Jan 3, 2022
cb008fa
Support No SingleLogoutServiceLocation
jzheaux Dec 17, 2021
45b7fed
Remove SAML 2.0 Logout Default
jzheaux Dec 17, 2021
3d37b19
add serialVersionUID
jakspok Jan 4, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
20 changes: 20 additions & 0 deletions .github/actions/algolia-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"index_name": "security-docs",
"start_urls": [
"https://docs.spring.io/spring-security/reference/"
],
"selectors": {
"lvl0": {
"selector": "//nav[@class='crumbs']//li[@class='crumb'][last()-1]",
"type": "xpath",
"global": true,
"default_value": "Home"
},
"lvl1": ".doc h1",
"lvl2": ".doc h2",
"lvl3": ".doc h3",
"lvl4": ".doc h4",
"text": ".doc p, .doc td.content, .doc th.tableblock"
}
}

20 changes: 20 additions & 0 deletions .github/actions/algolia-deploy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/bin/bash

HOST="$1"
HOST_PATH="$2"
SSH_PRIVATE_KEY="$3"
SSH_KNOWN_HOST="$4"


if [ "$#" -ne 4 ]; then
echo -e "not enough arguments USAGE:\n\n$0 \$HOST \$HOST_PATH \$SSH_PRIVATE_KEY \$SSH_KNOWN_HOSTS \n\n" >&2
exit 1
fi

# Use a non-default path to avoid overriding when testing locally
SSH_PRIVATE_KEY_PATH=~/.ssh/github-actions-docs
install -m 600 -D /dev/null "$SSH_PRIVATE_KEY_PATH"
echo "$SSH_PRIVATE_KEY" > "$SSH_PRIVATE_KEY_PATH"
echo "$SSH_KNOWN_HOST" > ~/.ssh/known_hosts
rsync --delete -avze "ssh -i $SSH_PRIVATE_KEY_PATH" docs/build/site/ "$HOST:$HOST_PATH"
rm -f "$SSH_PRIVATE_KEY_PATH"
21 changes: 21 additions & 0 deletions .github/actions/algolia-docsearch-scraper.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/bash

###
# Docs
# config.json https://docsearch.algolia.com/docs/config-file
# Run the crawler https://docsearch.algolia.com/docs/run-your-own/#run-the-crawl-from-the-docker-image

### USAGE
if [ "$#" -ne 3 ]; then
echo -e "not enough arguments USAGE:\n\n$0 \$ALGOLIA_APPLICATION_ID \$ALGOLIA_API_KEY \$CONFIG_FILE\n\n" >&2
exit 1
fi

# Script Parameters
APPLICATION_ID=$1
API_KEY=$2
CONFIG_FILE=$3

#### Script
script_dir=$(dirname $0)
docker run -e "APPLICATION_ID=$APPLICATION_ID" -e "API_KEY=$API_KEY" -e "CONFIG=$(cat $CONFIG_FILE | jq -r tostring)" algolia/docsearch-scraper
4 changes: 2 additions & 2 deletions .github/actions/dispatch.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
REPOSITORY_REF="$1"
TOKEN="$2"

curl -H "Accept: application/vnd.github.everest-preview+json" -H "Authorization: token ${TOKEN}" --request POST --data '{"event_type": "request-build"}' https://api.github.com/repos/${REPOSITORY_REF}/dispatches
echo "Requested Build for $REPOSITORY_REF"
curl -H "Accept: application/vnd.github.everest-preview+json" -H "Authorization: token ${TOKEN}" --request POST --data '{"event_type": "request-build-reference"}' https://api.github.com/repos/${REPOSITORY_REF}/dispatches
echo "Requested Build for $REPOSITORY_REF"
16 changes: 16 additions & 0 deletions .github/workflows/algolia-index.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Update Algolia Index

on:
schedule:
- cron: '0 10 * * *' # Once per day at 10am UTC
workflow_dispatch: # Manual trigger

jobs:
update:
name: Update Algolia Index
runs-on: ubuntu-latest
steps:
- name: Checkout Source
uses: actions/checkout@v2
- name: Update Index
run: ${GITHUB_WORKSPACE}/.github/actions/algolia-docsearch-scraper.sh "${{ secrets.ALGOLIA_APPLICATION_ID }}" "${{ secrets.ALGOLIA_WRITE_API_KEY }}" "${GITHUB_WORKSPACE}/.github/actions/algolia-config.json"
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: reference
name: Generate Antora Files and Request Build

on:
push:
Expand Down Expand Up @@ -27,4 +27,4 @@ jobs:
repository-name: "spring-io/spring-generated-docs"
token: ${{ secrets.GH_ACTIONS_REPO_TOKEN }}
- name: Dispatch Build Request
run: ${GITHUB_WORKSPACE}/.github/actions/dispatch.sh 'spring-io/spring-reference' "$GH_ACTIONS_REPO_TOKEN"
run: ${GITHUB_WORKSPACE}/.github/actions/dispatch.sh 'spring-projects/spring-security' "$GH_ACTIONS_REPO_TOKEN"
28 changes: 14 additions & 14 deletions .github/workflows/continuous-integration-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ jobs:
name: Determine if should continue
if: env.RUN_JOBS == 'true'
run: echo "::set-output name=runjobs::true"
build_jdk_11:
name: Build JDK 11
build_jdk_17:
name: Build JDK 17
needs: [prerequisites]
strategy:
matrix:
Expand All @@ -39,10 +39,10 @@ jobs:
if: needs.prerequisites.outputs.runjobs
steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
- name: Set up JDK 17
uses: actions/setup-java@v1
with:
java-version: '11'
java-version: '17'
- name: Setup gradle user name
run: |
mkdir -p ~/.gradle
Expand All @@ -68,7 +68,7 @@ jobs:
- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: '11'
java-version: '17'
- name: Setup gradle user name
run: |
mkdir -p ~/.gradle
Expand All @@ -89,7 +89,7 @@ jobs:
- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: '11'
java-version: '17'
- name: Setup gradle user name
run: |
mkdir -p ~/.gradle
Expand All @@ -110,7 +110,7 @@ jobs:
- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: '11'
java-version: '17'
- name: Setup gradle user name
run: |
mkdir -p ~/.gradle
Expand All @@ -123,14 +123,14 @@ jobs:
./gradlew check s101 -Ps101.licenseId="$STRUCTURE101_LICENSEID" --stacktrace
deploy_artifacts:
name: Deploy Artifacts
needs: [build_jdk_11, snapshot_tests, check_samples, check_tangles]
needs: [build_jdk_17, snapshot_tests, check_samples, check_tangles]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: '11'
java-version: '17'
- name: Setup gradle user name
run: |
mkdir -p ~/.gradle
Expand All @@ -150,14 +150,14 @@ jobs:
ARTIFACTORY_PASSWORD: ${{ secrets.ARTIFACTORY_PASSWORD }}
deploy_docs:
name: Deploy Docs
needs: [build_jdk_11, snapshot_tests, check_samples, check_tangles]
needs: [build_jdk_17, snapshot_tests, check_samples, check_tangles]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: '11'
java-version: '17'
- name: Setup gradle user name
run: |
mkdir -p ~/.gradle
Expand All @@ -174,14 +174,14 @@ jobs:
DOCS_HOST: ${{ secrets.DOCS_HOST }}
deploy_schema:
name: Deploy Schema
needs: [build_jdk_11, snapshot_tests, check_samples, check_tangles]
needs: [build_jdk_17, snapshot_tests, check_samples, check_tangles]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: '11'
java-version: '17'
- name: Setup gradle user name
run: |
mkdir -p ~/.gradle
Expand All @@ -198,7 +198,7 @@ jobs:
DOCS_HOST: ${{ secrets.DOCS_HOST }}
notify_result:
name: Check for failures
needs: [build_jdk_11, snapshot_tests, check_samples, check_tangles, deploy_artifacts, deploy_docs, deploy_schema]
needs: [build_jdk_17, snapshot_tests, check_samples, check_tangles, deploy_artifacts, deploy_docs, deploy_schema]
if: failure()
runs-on: ubuntu-latest
steps:
Expand Down
33 changes: 33 additions & 0 deletions .github/workflows/deploy-reference.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Build & Deploy Reference

on:
repository_dispatch:
types: request-build-reference
schedule:
- cron: '0 10 * * *' # Once per day at 10am UTC
workflow_dispatch: # Manual trigger

jobs:
deploy:
name: deploy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'
cache: gradle
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@e6e38bacfdf1a337459f332974bb2327a31aaf4b
- name: Build with Gradle
run: ./gradlew :spring-security-docs:antora --stacktrace
- name: Cleanup Gradle Cache
# Remove some files from the Gradle cache, so they aren't cached by GitHub Actions.
# Restoring these files from a GitHub Actions cache might cause problems for future builds.
run: |
rm -f ~/.gradle/caches/modules-2/modules-2.lock
rm -f ~/.gradle/caches/modules-2/gc.properties
- name: Deploy
run: ${GITHUB_WORKSPACE}/.github/actions/algolia-deploy.sh "${{ secrets.DOCS_USERNAME }}@${{ secrets.DOCS_HOST }}" "/opt/www/domains/spring.io/docs/htdocs/spring-security/reference/" "${{ secrets.DOCS_SSH_KEY }}" "${{ secrets.DOCS_SSH_HOST_KEY }}"
2 changes: 1 addition & 1 deletion .github/workflows/pr-build-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
if: env.RUN_JOBS == 'true'
uses: actions/setup-java@v1
with:
java-version: '11'
java-version: '17'
- name: Cache Gradle packages
if: env.RUN_JOBS == 'true'
uses: actions/cache@v2
Expand Down
8 changes: 4 additions & 4 deletions README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ image:https://img.shields.io/badge/Revved%20up%20by-Gradle%20Enterprise-06A0CE?l

= Spring Security

Spring Security provides security services for the https://docs.spring.io[Spring IO Platform]. Spring Security 5.0 requires Spring 5.0 as
a minimum and also requires Java 8.
Spring Security provides security services for the https://docs.spring.io[Spring IO Platform]. Spring Security 6.0 requires Spring 6.0 as
a minimum and also requires Java 17.

For a detailed list of features and access to the latest release, please visit https://spring.io/projects[Spring projects].

Expand All @@ -30,9 +30,9 @@ In the instructions below, https://vimeo.com/34436402[`./gradlew`] is invoked fr
a cross-platform, self-contained bootstrap mechanism for the build.

=== Prerequisites
https://help.github.com/set-up-git-redirect[Git] and the https://www.oracle.com/technetwork/java/javase/downloads[JDK11 build].
https://help.github.com/set-up-git-redirect[Git] and the https://www.oracle.com/technetwork/java/javase/downloads[JDK17 build].

Be sure that your `JAVA_HOME` environment variable points to the `jdk-11` folder extracted from the JDK download.
Be sure that your `JAVA_HOME` environment variable points to the `jdk-17` folder extracted from the JDK download.

=== Check out sources
[indent=0]
Expand Down
2 changes: 0 additions & 2 deletions acl/spring-security-acl.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ dependencies {
api 'org.springframework:spring-jdbc'
api 'org.springframework:spring-tx'

optional 'net.sf.ehcache:ehcache'

testImplementation "org.assertj:assertj-core"
testImplementation "org.junit.jupiter:junit-jupiter-api"
testImplementation "org.junit.jupiter:junit-jupiter-params"
Expand Down
Loading