Skip to content

Commit 219ef93

Browse files
tjholmes66jgrandjaesivakumar26uc4w6cshanman190
authored
Get latest from source (#2)
* Update to io.spring.javaformat:spring-javaformat-checkstyle:0.0.35 Closes spring-projectsgh-1089 * Update to jackson-bom:2.14.2 Closes spring-projectsgh-1090 * Update to junit-jupiter:5.9.2 Closes spring-projectsgh-1091 * Release 1.0.1 * Next Development Version * Update to Spring Security 6.1.0-M1 Closes spring-projectsgh-1093 * Update to nimbus-jose-jwt:9.30.2 Closes spring-projectsgh-1094 * Update to assertj-core:3.24.2 Closes spring-projectsgh-1095 * Update to mockito-core:4.11.0 Closes spring-projectsgh-1096 * Release 1.1.0-M1 * Next Development Version * Add user property to deploy_docs workflow * Fix broken support link Closes spring-projectsgh-1092 * Fix client secret encoding when client dynamically registered Closes spring-projectsgh-1056 * Polish spring-projectsgh-1056 * Allow PasswordEncoder to be configured in OidcClientRegistrationAuthenticationProvider Issue spring-projectsgh-1056 * Upgrade client secret when available Closes spring-projectsgh-1099 * Polish spring-projectsgh-1105 * Add support for OAuth 2.0 Device Authorization Grant Closes spring-projectsgh-44 * Switch to spring-security SNAPSHOT dependencies Issue spring-projectsgh-44 * Use spring-security 6.1 in snapshot tests Issue spring-projectsgh-1106 * Update to actions/checkout@v3 Closes spring-projectsgh-1117 * Use spring-io/spring-gradle-build-action Closes spring-projectsgh-1120 * Use spring-io/spring-gradle-build-action Closes spring-projectsgh-1120 * Revert accidental change in versions Issue spring-projectsgh-1120 * Polish spring-projectsgh-1106 * Update to Spring Framework 6.0.7 Closes spring-projectsgh-1130 * Update to Spring Security 1.1.0-M2 Closes spring-projectsgh-1131 * Update to nimbus-jose-jwt:9.31 Closes spring-projectsgh-1132 * Update to Spring Framework 6.0.7 in buildSrc Issue spring-projectsgh-1130 * Release 1.1.0-M2 * Next Development Version * Polish spring-projectsgh-1106 Device Authorization Grant * Avoid persisting client principal in device authorization request Issue spring-projectsgh-1106 * Polish spring-projectsgh-1068 Issue spring-projectsgh-1077 * Add OidcLogoutAuthenticationToken.isPrincipalAuthenticated() Issue spring-projectsgh-1077 * Ensure ID Token is active before processing logout request Issue spring-projectsgh-1077 * Allow localhost in redirect_uri Closes spring-projectsgh-651 * Fix refresh token error code INVALID_CLIENT to INVALID_GRANT Closes spring-projectsgh-1139 * Do not require authorizationRequest for device grant Issue spring-projectsgh-1127 * Add tests for OAuth 2.0 Device Authorization Grant This commit adds tests for the following components: * AuthenticationConverters * AuthenticationProviders * Endpoint Filters Issue spring-projectsgh-44 Closes spring-projectsgh-1127 * JDBC device_code authorization Issue spring-projectsgh-1156 * Polish spring-projectsgh-1143 * Add tests and update examples in docs Closes spring-projectsgh-1156 * Polish ref-doc Issue spring-projectsgh-1156 * Add customization to support public clients for device grant Issue spring-projectsgh-1157 * Polish samples Closes spring-projectsgh-1157 * Add documentation for OAuth 2.0 Device Authorization Grant Closes spring-projectsgh-1158 * Polish spring-projectsgh-1127 * Polish spring-projectsgh-1158 * Add documentation for OpenID Connect 1.0 Logout Endpoint Closes spring-projectsgh-1069 * Update Stack Overflow tag to spring-authorization-server * Update to Spring Framework 5.3.27 Closes spring-projectsgh-1162 * Update to Spring Security 5.8.3 Closes spring-projectsgh-1163 * Update to io.spring.javaformat:spring-javaformat-checkstyle:0.0.38 Closes spring-projectsgh-1164 * Update to Spring Framework 6.0.8 Closes spring-projectsgh-1165 * Update to Spring Security 6.0.3 Closes spring-projectsgh-1166 * Update to io.spring.javaformat:spring-javaformat-checkstyle:0.0.38 Closes spring-projectsgh-1167 * Update to Spring Framework 6.0.8 Closes spring-projectsgh-1168 * Update to Spring Security 6.1.0-RC1 Closes spring-projectsgh-1169 * Update to io.spring.javaformat:spring-javaformat-checkstyle:0.0.38 Closes spring-projectsgh-1170 * Update to json-path:2.8.0 Closes spring-projectsgh-1171 * Release 0.4.2 * Next Development Version * Release 1.0.2 * Next Development Version * Release 1.1.0-RC1 * Next Development Version * Update to org.jfrog.buildinfo:build-info-extractor-gradle:4.29.0 Closes spring-projectsgh-1175 * Apply ArtifactoryPlugin to SpringRootProjectPlugin Closes spring-projectsgh-1177 * Fix artifact build properties for Artifactory - Apply SpringArtifactoryPlugin in SpringRootProjectPlugin (which applies ArtifactoryPlugin) - In SpringArtifactoryPlugin don't set publication if MavenPublishPlugin is not applied Closes spring-projectsgh-1179 * Add test for dynamic client registration with custom metadata Issue spring-projectsgh-1172 * Add logout success page to default client sample Sample client (located in 'samples/messages-client' directory) is configured with a custom logout success page where the end-user is redirected to upon successful logout action. Fixes spring-projectsgh-1142 * Add sample featured-authorizationserver Issue spring-projectsgh-1189 * Merge custom-consent-authorizationserver into featured-authorizationserver Issue spring-projectsgh-1189 * Merge federated-identity-authorizationserver into featured-authorizationserver Issue spring-projectsgh-1189 * Update io.spring.ge.conventions plugin to 0.0.13 Closes spring-projectsgh-1190 * Update spring-asciidoctor-backends to 0.0.5 Closes spring-projectsgh-1192 * Merge device-grant-authorizationserver into featured-authorizationserver Issue spring-projectsgh-1189 * Merge device-client into messages-client Issue spring-projectsgh-1189 * Use custom consent page for device code flow Issue spring-projectsgh-1189 * Use current authentication for device authorization Issue spring-projectsgh-1189 * Reuse error handling Issue spring-projectsgh-1189 * Handle web client response error Issue spring-projectsgh-1189 * Update @SInCE * Rename featured-authorizationserver to demo-authorizationserver Issue spring-projectsgh-1189 * Rename messages-client to demo-client Issue spring-projectsgh-1189 * Update sample README Issue spring-projectsgh-1189 * Add integration tests for device grant Issue spring-projectsgh-1116 * Update web ui design for demo-client Issue spring-projectsgh-1196 * Polish web ui design for demo-client Issue spring-projectsgh-1196 * Update web ui design for demo-authorizationserver Issue spring-projectsgh-1196 * Polish web ui design for demo-client Issue spring-projectsgh-1196 * Polish demo sample Issue spring-projectsgh-1189 * Update to Spring Boot 3.1.0-RC1 Closes spring-projectsgh-1198 * Refresh Getting Started example Closes spring-projectsgh-1186 * Use Spring Boot starter in samples Closes spring-projectsgh-1187 * Invalidate tokens previously issued when code is reused Closes spring-projectsgh-1152 * Polish spring-projectsgh-1152 * Add How-to: Authenticate using Social Login Closes spring-projectsgh-538 * Add How-to: Authenticate using a Single Page Application with PKCE Closes spring-projectsgh-539 * Hash the sid claim in the ID Token Closes spring-projectsgh-1207 * Simplified federated login in demo sample Closes spring-projectsgh-1208 * Polish spring-projectsgh-1186 * Polish spring-projectsgh-538 * Remove FederatedIdentityConfigurer from demo sample Issue spring-projectsgh-1208 * Update exception handling config in ref-doc Closes spring-projectsgh-1205 * Update exception handling config in samples Closes spring-projectsgh-1204 * Polish ref-doc Issue spring-projectsgh-1205 * Polish tests * Add How-to: Implement an Extension Authorization Grant Type Closes spring-projectsgh-686 * Update to Spring Framework 6.0.9 Closes spring-projectsgh-1213 * Update to Spring Security 6.1.0 Closes spring-projectsgh-1214 * Update to jackson-bom 2.15.0 Closes spring-projectsgh-1215 * Update to junit-jupiter 5.9.3 Closes spring-projectsgh-1216 * Release 1.1.0 * Next Development Version * Revert serialVersionUID to 0.4.0 Closes spring-projectsgh-1218 * Revert serialVersionUID to 1.0.0 Closes spring-projectsgh-1219 * Revert serialVersionUID to 1.1.0 Closes spring-projectsgh-1220 * Exclude project dependency from spring-boot-dependencies Closes spring-projectsgh-1228 * Update to Spring Boot 3.1.0 * Update com.gradle.enterprise plugin to 3.13.3 Closes spring-projectsgh-1234 Issue spring-projectsgh-1231 * Prepare for automated validation scripts See https://github.com/gradle/gradle-enterprise-build-validation-scripts/blob/main/Gradle.md Issue spring-projectsgh-1231 * ID Token contains sid claim after refresh_token grant Closes spring-projectsgh-1224 * Use substring instead of replaceFirst in OAuth2AuthorizationConsent Closes spring-projectsgh-1222 * Validate authorized principal instead of sub during logout Closes spring-projectsgh-1235 * Revert "Prepare for automated validation scripts" This reverts commit ece9f10. Issue spring-projectsgh-1231 * Add debug log entries Closes spring-projectsgh-1245 Closes spring-projectsgh-1246 Closes spring-projectsgh-1247 Closes spring-projectsgh-1248 * Polish additional logging Issue spring-projectsgh-1245, spring-projectsgh-1246, spring-projectsgh-1247, spring-projectsgh-1248 * Enable caching of :asciidoctor gradle task * Use direct code import Issue spring-projectsgh-1231 * Next Minor Version * Fix NPE on access token in OAuth2AuthorizationCodeAuthenticationProvider Closes spring-projectsgh-1233 * Polish spring-projectsgh-1233 * Fix to save all values for multi-valued request parameters Fixes spring-projectsgh-1250 * Polish spring-projectsgh-1252 * Fix to save all values for multi-valued device grant parameters Fixes spring-projectsgh-1269 * Polish spring-projectsgh-1252 * Update to Spring Framework 5.3.28 Closes spring-projectsgh-1272 * Update to Spring Security 5.8.4 Closes spring-projectsgh-1273 * Update to jackson-bom 2.14.3 Closes spring-projectsgh-1274 * Update to Spring Framework 6.0.10 Closes spring-projectsgh-1276 * Update to Spring Security 6.0.4 Closes spring-projectsgh-1277 * Update to Spring Framework 6.0.10 Closes spring-projectsgh-1278 * Update to Spring Security 6.1.1 Closes spring-projectsgh-1279 * Update to junit-jupiter 5.9.3 Closes spring-projectsgh-1280 * Update to junit-jupiter 5.9.3 Closes spring-projectsgh-1281 * Update to jackson-bom 2.15.2 Closes spring-projectsgh-1282 * Update feature planning section to using GitHub Projects * Release 1.1.1 * Next Development Version * Fix generating ID token with null sid when refresh_token grant Closes spring-projectsgh-1283 * Polish spring-projectsgh-1289 * Fix NPE in DefaultErrorController Closes spring-projectsgh-1286 * Migrate docs to Antora Issue spring-projectsgh-1295 * Polish Antora migration Issue spring-projectsgh-1292 Closes spring-projectsgh-1295 * Remove unused antora-playbook.yml * Replaces 'install' with 'publishToMavenLocal' command in README * Adds how-to guide on adding authorities to access tokens Closes spring-projectsgh-542 * Polish spring-projectsgh-1264 * Update order of guides in nav.adoc * Fix userCode validation Issue spring-projectsgh-44 * Polish spring-projectsgh-1309 * Add Revved up by Gradle Enterprise badge * Move badges to header This is similar to Spring Boot: https://github.com/spring-projects/spring-boot/blob/main/README.adoc * Fix workflow status link * Fix samples test suite execution and failing tests Closes spring-projectsgh-1324 * Polish spring-projectsgh-1325 * Move deploy-docs.yml to correct folder Issue spring-projectsgh-1295 * Remove manual list of guides Issue spring-projectsgh-1295 * Remove reference to gh-pages Issue spring-projectsgh-1295 * Update to Spring Framework 6.0.11 Closes spring-projectsgh-1338 * Update to Spring Security 6.1.2 Closes spring-projectsgh-1339 * Update to org.hsqldb:hsqldb 2.7.2 Closes spring-projectsgh-1340 * Release 1.1.2 * Next Development Version * Adds ability to inject custom metadata at client registration Closes spring-projectsgh-1172 * Polish spring-projectsgh-1326 * Adds dynamic client registration how-to guide Closes spring-projectsgh-647 * Polish spring-projectsgh-1320 * Add code challenge methods for oidc provider configuration response Closes spring-projectsgh-1302 * Update to Spring Framework 6.1.0-M5 Closes spring-projectsgh-1364 * Update to Spring Security 6.2.0-M3 Closes spring-projectsgh-1365 * Update to nimbus-jose-jwt 9.35 Closes spring-projectsgh-1366 * Update to junit-jupiter 5.10.0 Closes spring-projectsgh-1367 * Update to okhttp 4.11.0 Closes spring-projectsgh-1368 * Release 1.2.0-M1 * Next Development Version --------- Co-authored-by: Joe Grandja <[email protected]> Co-authored-by: Siva Kumar Edupuganti <[email protected]> Co-authored-by: Yuta Saito <[email protected]> Co-authored-by: Shannon Pamperl <[email protected]> Co-authored-by: Steve Riesenberg <[email protected]> Co-authored-by: HuiYeong <[email protected]> Co-authored-by: Xu Xiaowei <[email protected]> Co-authored-by: Janne Valkealahti <[email protected]> Co-authored-by: Dmitriy Dubson <[email protected]> Co-authored-by: neochae <[email protected]> Co-authored-by: heartape <[email protected]> Co-authored-by: Dejan Varmedja <[email protected]> Co-authored-by: Jerome Prinet <[email protected]> Co-authored-by: Pavel Efros <[email protected]> Co-authored-by: Martin Lindström <[email protected]> Co-authored-by: cbilodeau <[email protected]> Co-authored-by: Rob Winch <[email protected]> Co-authored-by: Dmitriy Dubson <[email protected]> Co-authored-by: Martin Bogusz <[email protected]> Co-authored-by: Eric Haag <[email protected]> Co-authored-by: Tuxzx <[email protected]>
1 parent 5251eea commit 219ef93

File tree

286 files changed

+15886
-2094
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

286 files changed

+15886
-2094
lines changed

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
blank_issues_enabled: false
22
contact_links:
33
- name: Community Support
4-
url: https://stackoverflow.com/questions/tagged/spring-security
5-
about: Please ask and answer questions on StackOverflow with the tag `spring-security`.
4+
url: https://stackoverflow.com/questions/tagged/spring-authorization-server
5+
about: Please ask and answer questions on StackOverflow with the tag `spring-authorization-server`.

.github/workflows/continuous-integration-workflow.yml

Lines changed: 17 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,16 @@ jobs:
1818
runjobs: ${{ steps.continue.outputs.runjobs }}
1919
project_version: ${{ steps.continue.outputs.project_version }}
2020
steps:
21-
- uses: actions/checkout@v2
21+
- uses: actions/checkout@v3
2222
- id: continue
2323
name: Determine if should continue
2424
if: env.RUN_JOBS == 'true'
2525
run: |
2626
# Run jobs if in upstream repository
27-
echo "::set-output name=runjobs::true"
27+
echo "runjobs=true" >> $GITHUB_OUTPUT
2828
# Extract version from gradle.properties
2929
version=$(cat gradle.properties | grep "version=" | awk -F'=' '{print $2}')
30-
echo "::set-output name=project_version::$version"
30+
echo "project_version=$version" >> $GITHUB_OUTPUT
3131
build:
3232
name: Build
3333
needs: [prerequisites]
@@ -39,19 +39,12 @@ jobs:
3939
runs-on: ${{ matrix.os }}
4040
if: needs.prerequisites.outputs.runjobs
4141
steps:
42-
- uses: actions/checkout@v2
42+
- uses: actions/checkout@v3
4343
- name: Set up JDK ${{ matrix.jdk }}
44-
uses: actions/setup-java@v1
44+
uses: spring-io/spring-gradle-build-action@v2
4545
with:
4646
java-version: ${{ matrix.jdk }}
47-
- name: Setup gradle user name
48-
run: |
49-
mkdir -p ~/.gradle
50-
echo 'systemProp.user.name=spring-builds+github' >> ~/.gradle/gradle.properties
51-
- name: Setup Gradle
52-
uses: gradle/gradle-build-action@v2
53-
env:
54-
GRADLE_USER_HOME: ~/.gradle
47+
distribution: temurin
5548
- name: Build with Gradle
5649
env:
5750
GRADLE_ENTERPRISE_CACHE_USERNAME: ${{ secrets.GRADLE_ENTERPRISE_CACHE_USER }}
@@ -66,33 +59,31 @@ jobs:
6659
runs-on: ubuntu-latest
6760
if: needs.prerequisites.outputs.runjobs
6861
steps:
69-
- uses: actions/checkout@v2
62+
- uses: actions/checkout@v3
7063
- name: Set up JDK
71-
uses: actions/setup-java@v1
64+
uses: spring-io/spring-gradle-build-action@v2
7265
with:
7366
java-version: 17
74-
- name: Setup Gradle
75-
uses: gradle/gradle-build-action@v2
67+
distribution: temurin
7668
- name: Snapshot Tests
7769
env:
7870
GRADLE_ENTERPRISE_CACHE_USERNAME: ${{ secrets.GRADLE_ENTERPRISE_CACHE_USER }}
7971
GRADLE_ENTERPRISE_CACHE_PASSWORD: ${{ secrets.GRADLE_ENTERPRISE_CACHE_PASSWORD }}
8072
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_SECRET_ACCESS_KEY }}
8173
ARTIFACTORY_USERNAME: ${{ secrets.ARTIFACTORY_USERNAME }}
8274
ARTIFACTORY_PASSWORD: ${{ secrets.ARTIFACTORY_PASSWORD }}
83-
run: ./gradlew test --refresh-dependencies -Duser.name=spring-builds+github -PartifactoryUsername="$ARTIFACTORY_USERNAME" -PartifactoryPassword="$ARTIFACTORY_PASSWORD" -PforceMavenRepositories=snapshot -PspringFrameworkVersion='6.0.+' -PspringSecurityVersion='6.0.+' -PlocksDisabled --stacktrace
75+
run: ./gradlew test --refresh-dependencies -Duser.name=spring-builds+github -PartifactoryUsername="$ARTIFACTORY_USERNAME" -PartifactoryPassword="$ARTIFACTORY_PASSWORD" -PforceMavenRepositories=snapshot -PspringFrameworkVersion='6.0.+' -PspringSecurityVersion='6.1.+' -PlocksDisabled --stacktrace
8476
deploy_artifacts:
8577
name: Deploy Artifacts
8678
needs: [build, snapshot_tests]
8779
runs-on: ubuntu-latest
8880
steps:
89-
- uses: actions/checkout@v2
81+
- uses: actions/checkout@v3
9082
- name: Set up JDK
91-
uses: actions/setup-java@v1
83+
uses: spring-io/spring-gradle-build-action@v2
9284
with:
9385
java-version: 17
94-
- name: Setup Gradle
95-
uses: gradle/gradle-build-action@v2
86+
distribution: temurin
9687
- name: Deploy Artifacts
9788
env:
9889
GRADLE_ENTERPRISE_CACHE_USERNAME: ${{ secrets.GRADLE_ENTERPRISE_CACHE_USER }}
@@ -110,13 +101,12 @@ jobs:
110101
needs: [build, snapshot_tests]
111102
runs-on: ubuntu-latest
112103
steps:
113-
- uses: actions/checkout@v2
104+
- uses: actions/checkout@v3
114105
- name: Set up JDK
115-
uses: actions/setup-java@v1
106+
uses: spring-io/spring-gradle-build-action@v2
116107
with:
117108
java-version: 17
118-
- name: Setup Gradle
119-
uses: gradle/gradle-build-action@v2
109+
distribution: temurin
120110
- name: Deploy Docs
121111
env:
122112
GRADLE_ENTERPRISE_CACHE_USERNAME: ${{ secrets.GRADLE_ENTERPRISE_CACHE_USER }}
@@ -125,4 +115,4 @@ jobs:
125115
DOCS_USERNAME: ${{ secrets.DOCS_USERNAME }}
126116
DOCS_SSH_KEY: ${{ secrets.DOCS_SSH_KEY }}
127117
DOCS_HOST: ${{ secrets.DOCS_HOST }}
128-
run: ./gradlew deployDocs -PdeployDocsSshKey="$DOCS_SSH_KEY" -PdeployDocsSshUsername="$DOCS_USERNAME" -PdeployDocsHost="$DOCS_HOST" --stacktrace
118+
run: ./gradlew deployDocs -Duser.name=spring-builds+github -PdeployDocsSshKey="$DOCS_SSH_KEY" -PdeployDocsSshUsername="$DOCS_USERNAME" -PdeployDocsHost="$DOCS_HOST" --stacktrace

.github/workflows/deploy-docs.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Deploy Docs
2+
on:
3+
push:
4+
tags: '**'
5+
repository_dispatch:
6+
types: request-build-reference # legacy
7+
#schedule:
8+
#- cron: '0 10 * * *' # Once per day at 10am UTC
9+
workflow_dispatch:
10+
permissions:
11+
actions: write
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
if: github.repository_owner == 'spring-projects'
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v3
19+
with:
20+
ref: docs-build
21+
fetch-depth: 1
22+
- name: Dispatch (partial build)
23+
if: github.ref_type == 'branch'
24+
env:
25+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26+
run: gh workflow run deploy-docs.yml -r $(git rev-parse --abbrev-ref HEAD) -f build-refname=${{ github.ref_name }}
27+
- name: Dispatch (full build)
28+
if: github.ref_type == 'tag'
29+
env:
30+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31+
run: gh workflow run deploy-docs.yml -r $(git rev-parse --abbrev-ref HEAD)

.github/workflows/pr-build-workflow.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,11 @@ jobs:
1515
jdk: [17]
1616
fail-fast: false
1717
steps:
18-
- uses: actions/checkout@v2
18+
- uses: actions/checkout@v3
1919
- name: Set up JDK ${{ matrix.jdk }}
20-
uses: actions/setup-java@v1
20+
uses: spring-io/spring-gradle-build-action@v2
2121
with:
2222
java-version: ${{ matrix.jdk }}
23+
distribution: 'temurin'
2324
- name: Build with Gradle
2425
run: ./gradlew clean build

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,4 @@ out/
3737

3838
### Mac ###
3939
.DS_Store
40+
cached-antora-playbook.yml

CONTRIBUTING.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Please report unacceptable behavior to [email protected].
1111
== Using GitHub Issues
1212
We use GitHub issues to track bugs and enhancements.
1313
If you have a general usage question please ask on https://stackoverflow.com[Stack Overflow].
14-
The Spring Security team and the broader community monitor the https://stackoverflow.com/tags/spring-security[`spring-security`] tag.
14+
The Spring Security team and the broader community monitor the https://stackoverflow.com/tags/spring-authorization-server[`spring-authorization-server`] tag.
1515

1616
If you are reporting a bug, please help to speed up problem diagnosis by providing as much information as possible.
1717
Ideally, that would include a https://stackoverflow.com/help/minimal-reproducible-example[complete & minimal sample project] that reproduces the problem.

README.adoc

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,12 @@
1-
image::https://badges.gitter.im/Join%20Chat.svg[Gitter,link=https://gitter.im/spring-projects/spring-security?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge]
2-
3-
image:https://github.com/spring-projects/spring-authorization-server/workflows/CI/badge.svg?branch=main["Build Status", link="https://github.com/spring-projects/spring-authorization-server/actions?query=workflow%3ACI"]
4-
5-
= Spring Authorization Server
1+
= Spring Authorization Server image:https://badges.gitter.im/Join%20Chat.svg[Gitter,link=https://gitter.im/spring-projects/spring-security?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge] image:https://github.com/spring-projects/spring-authorization-server/workflows/CI/badge.svg?branch=main["Build Status", link="https://github.com/spring-projects/spring-authorization-server/actions?query=workflow%3ABuild%2Band%2BDeploy"] image:https://img.shields.io/badge/Revved%20up%20by-Gradle%20Enterprise-06A0CE?logo=Gradle&labelColor=02303A["Revved up by Gradle Enterprise", link="https://ge.spring.io/scans?&search.rootProjectNames=spring-authorization-server"]
62

73
The Spring Authorization Server project, led by the https://spring.io/projects/spring-security/[Spring Security] team, is focused on delivering https://datatracker.ietf.org/doc/html/draft-ietf-oauth-v2-1-07#section-1.1[OAuth 2.1 Authorization Server] support to the Spring community.
84

95
This project replaces the Authorization Server support provided by https://spring.io/projects/spring-security-oauth/[Spring Security OAuth].
106

117
== Feature Planning
12-
This project uses https://www.zenhub.com/[ZenHub] to prioritize the feature roadmap and help organize the project plan.
13-
The project board can be accessed https://app.zenhub.com/workspaces/authorization-server-5e8f3182b5e8f5841bfc4902/board?repos=248032165[here].
14-
It is recommended to install the ZenHub https://www.zenhub.com/extension[browser extension] as it integrates natively within GitHub's user interface.
8+
This project uses https://docs.github.com/en/issues/planning-and-tracking-with-projects/learning-about-projects/about-projects[GitHub Projects] to prioritize the feature roadmap and help organize the project plan.
9+
The project board can be accessed https://github.com/orgs/spring-projects/projects/8[here].
1510

1611
The feature list can be viewed in the https://docs.spring.io/spring-authorization-server/docs/current/reference/html/overview.html#feature-list[reference documentation].
1712

@@ -67,7 +62,7 @@ git clone [email protected]:spring-projects/spring-authorization-server.git
6762
=== Install all spring-\* jars into your local Maven cache
6863
[indent=0]
6964
----
70-
./gradlew install
65+
./gradlew publishToMavenLocal
7166
----
7267

7368
=== Compile and test; build all jars, distribution zips, and docs
@@ -79,8 +74,8 @@ git clone [email protected]:spring-projects/spring-authorization-server.git
7974
Discover more commands with `./gradlew tasks`.
8075

8176
== Getting Support
82-
Check out the https://stackoverflow.com/questions/tagged/spring-security[Spring Security tags on Stack Overflow].
83-
https://spring.io/services[Commercial support] is available too.
77+
Check out the https://stackoverflow.com/questions/tagged/spring-authorization-server[Spring Authorization Server tags on Stack Overflow].
78+
https://spring.io/support[Commercial support] is available too.
8479

8580
== Contributing
8681
https://help.github.com/articles/creating-a-pull-request[Pull requests] are welcome; see the link:CONTRIBUTING.adoc[contributor guidelines] for details.

buildSrc/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ dependencies {
2121
implementation "org.asciidoctor:asciidoctor-gradle-jvm-pdf:3.3.2"
2222
implementation "org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.10"
2323
implementation "org.hidetake:gradle-ssh-plugin:2.10.1"
24-
implementation "org.jfrog.buildinfo:build-info-extractor-gradle:4.26.1"
24+
implementation "org.jfrog.buildinfo:build-info-extractor-gradle:4.29.0"
2525
implementation "org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:2.7.1"
26-
implementation "org.springframework:spring-core:6.0.0"
26+
implementation "org.springframework:spring-core:6.0.11"
2727
}

buildSrc/src/main/java/io/spring/gradle/convention/SpringRootProjectPlugin.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2022 the original author or authors.
2+
* Copyright 2002-2023 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -22,6 +22,7 @@
2222
import org.gradle.api.plugins.PluginManager;
2323

2424
import org.springframework.gradle.classpath.SpringCheckProhibitedDependenciesLifecyclePlugin;
25+
import org.springframework.gradle.maven.SpringArtifactoryPlugin;
2526
import org.springframework.gradle.maven.SpringNexusPlugin;
2627
import org.springframework.gradle.nohttp.SpringNoHttpPlugin;
2728
import org.springframework.gradle.sonarqube.SpringSonarQubePlugin;
@@ -38,6 +39,7 @@ public void apply(Project project) {
3839
pluginManager.apply(SpringNoHttpPlugin.class);
3940
pluginManager.apply(SpringNexusPlugin.class);
4041
pluginManager.apply(SpringCheckProhibitedDependenciesLifecyclePlugin.class);
42+
pluginManager.apply(SpringArtifactoryPlugin.class);
4143
pluginManager.apply(SpringSonarQubePlugin.class);
4244

4345
// Apply default repositories

buildSrc/src/main/java/org/springframework/gradle/docs/SpringAsciidoctorPlugin.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ private void createAsciidoctorExtensionsConfiguration(Project project) {
104104
project.getConfigurations().matching((candidate) -> "management".equals(candidate.getName()))
105105
.all(configuration::extendsFrom);
106106
configuration.getDependencies().add(project.getDependencies()
107-
.create("io.spring.asciidoctor.backends:spring-asciidoctor-backends:0.0.3"));
107+
.create("io.spring.asciidoctor.backends:spring-asciidoctor-backends:0.0.5"));
108108
configuration.getDependencies()
109109
.add(project.getDependencies().create("org.asciidoctor:asciidoctorj-pdf:1.5.3"));
110110
});
@@ -120,6 +120,9 @@ private void configureAsciidoctorExtension(AbstractAsciidoctorTask asciidoctorTa
120120
// Not using intermediateWorkDir.
121121
// See https://github.com/asciidoctor/asciidoctor-gradle-plugin/issues/523
122122
resourcesSrcDirSpec.include("images/*.png", "css/**", "js/**", "**/*.java");
123+
// This exclusion is required to allow cacheability of :spring-authorization-server-docs:asciidoctor
124+
// The whole docs/src/docs/asciidoc folder is being passed as a task input
125+
resourcesSrcDirSpec.exclude("**/examples/build/**");
123126
});
124127
});
125128
if (asciidoctorTask instanceof AsciidoctorTask) {

buildSrc/src/main/java/org/springframework/gradle/maven/SpringArtifactoryPlugin.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2022 the original author or authors.
2+
* Copyright 2002-2023 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -18,6 +18,7 @@
1818

1919
import org.gradle.api.Plugin;
2020
import org.gradle.api.Project;
21+
import org.gradle.api.publish.maven.plugins.MavenPublishPlugin;
2122
import org.jfrog.gradle.plugin.artifactory.ArtifactoryPlugin;
2223
import org.jfrog.gradle.plugin.artifactory.dsl.ArtifactoryPluginConvention;
2324

@@ -49,7 +50,10 @@ public void apply(Project project) {
4950
repository.setPassword(project.findProperty("artifactoryPassword"));
5051
}
5152
});
52-
publish.defaults((defaults) -> defaults.publications("mavenJava"));
53+
// Would fail if maven publish is not applied, i.e. in root project (SpringRootProjectPlugin)
54+
project.getPlugins().withType(MavenPublishPlugin.class, mavenPublish -> {
55+
publish.defaults((defaults) -> defaults.publications("mavenJava"));
56+
});
5357
});
5458
});
5559
}

dependencies/spring-authorization-server-dependencies.gradle

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,16 @@ javaPlatform {
99
dependencies {
1010
api platform("org.springframework:spring-framework-bom:$springFrameworkVersion")
1111
api platform("org.springframework.security:spring-security-bom:$springSecurityVersion")
12-
api platform("com.fasterxml.jackson:jackson-bom:2.14.0")
12+
api platform("com.fasterxml.jackson:jackson-bom:2.15.2")
1313
constraints {
14-
api "com.nimbusds:nimbus-jose-jwt:9.24.4"
14+
api "com.nimbusds:nimbus-jose-jwt:9.35"
1515
api "jakarta.servlet:jakarta.servlet-api:6.0.0"
16-
api "org.junit.jupiter:junit-jupiter:5.9.1"
17-
api "org.assertj:assertj-core:3.23.1"
18-
api "org.mockito:mockito-core:4.8.1"
19-
api "com.squareup.okhttp3:mockwebserver:4.10.0"
20-
api "com.squareup.okhttp3:okhttp:4.10.0"
21-
api "com.jayway.jsonpath:json-path:2.7.0"
22-
api "org.hsqldb:hsqldb:2.7.1"
16+
api "org.junit.jupiter:junit-jupiter:5.10.0"
17+
api "org.assertj:assertj-core:3.24.2"
18+
api "org.mockito:mockito-core:4.11.0"
19+
api "com.squareup.okhttp3:mockwebserver:4.11.0"
20+
api "com.squareup.okhttp3:okhttp:4.11.0"
21+
api "com.jayway.jsonpath:json-path:2.8.0"
22+
api "org.hsqldb:hsqldb:2.7.2"
2323
}
2424
}

docs/antora.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: authorization-server
2+
version: true
3+
title: Spring Authorization Server
4+
nav:
5+
- modules/ROOT/nav.adoc
6+
ext:
7+
collector:
8+
run:
9+
command: gradlew -q -PbuildSrc.skipTests=true "-Dorg.gradle.jvmargs=-Xmx3g -XX:+HeapDumpOnOutOfMemoryError" :spring-authorization-server-docs:generateAntoraYml
10+
local: true
11+
scan:
12+
dir: ./build/generated-antora-resources
13+
14+
asciidoc:
15+
attributes:
16+
attribute-missing: 'warn'
17+
chomp: 'all'
18+
spring-security-reference-base-url: "https://docs.spring.io/spring-security/reference"
19+
spring-security-api-base-url: "https://docs.spring.io/spring-security/site/docs/current/api"
20+
spring-boot-reference-base-url: "https://docs.spring.io/spring-boot/docs/current/reference/html"
21+
examples-dir: example$docs-src
22+
samples-dir: example$samples
23+
docs-java: '{examples-dir}/main/java'

docs/modules/ROOT/examples/docs-src

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../src

docs/modules/ROOT/examples/samples

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../../samples

docs/modules/ROOT/nav.adoc

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
* xref:overview.adoc[]
2+
* xref:getting-help.adoc[]
3+
* xref:getting-started.adoc[]
4+
* xref:configuration-model.adoc[]
5+
* xref:core-model-components.adoc[]
6+
* xref:protocol-endpoints.adoc[]
7+
* xref:how-to.adoc[]
8+
** xref:guides/how-to-pkce.adoc[]
9+
** xref:guides/how-to-social-login.adoc[]
10+
** xref:guides/how-to-ext-grant-type.adoc[]
11+
** xref:guides/how-to-userinfo.adoc[]
12+
** xref:guides/how-to-jpa.adoc[]
13+
** xref:guides/how-to-custom-claims-authorities.adoc[]
14+
** xref:guides/how-to-dynamic-client-registration.adoc[]

0 commit comments

Comments
 (0)