Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
uses: ./.github/workflows/java-release.yml
needs: rl-scanner
with:
java-version: 17
java-version: 17.0.19-tem
secrets:
ossr-username: ${{ secrets.OSSR_USERNAME }}
ossr-token: ${{ secrets.OSSR_TOKEN }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/rl-secure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ jobs:
- name: Set up Gradle
uses: gradle/actions/setup-gradle@50e97c2cd7a37755bbfafc9c5b7cafaece252f6e # v6.1.0

- name: Test and Assemble and ApiDiff with Gradle
run: ./gradlew assemble apiDiff check jacocoTestReport --continue --console=plain
- name: Test and Assemble with Gradle
run: ./gradlew assemble check jacocoTestReport --continue --console=plain

- name: Get Artifact Version
id: get_version
Expand Down
33 changes: 33 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,38 @@
# Change Log

## [2.0.0-beta.0](https://github.com/auth0/auth0-java-mvc-common/tree/2.0.0-beta.0) (2026-05-29)

This is the first beta release of the v2 major version. See the [Migration Guide](MIGRATION_GUIDE.md) for full upgrade instructions.

**Added**
- Jakarta EE 10 / Jakarta Servlet 6.0 support (replaces `javax.servlet`) [\#154](https://github.com/auth0/auth0-java-mvc-common/pull/154) ([tanya732](https://github.com/tanya732))
- Transaction-keyed cookies to prevent multi-tab OAuth state race conditions [\#231](https://github.com/auth0/auth0-java-mvc-common/pull/231) ([tanya732](https://github.com/tanya732))
- `withHttpClient(Auth0HttpClient)` builder method for custom HTTP client configuration [\#234](https://github.com/auth0/auth0-java-mvc-common/pull/234) ([tanya732](https://github.com/tanya732))
- Algorithm auto-detection from token `alg` header (RS256/HS256) [\#154](https://github.com/auth0/auth0-java-mvc-common/pull/154) ([tanya732](https://github.com/tanya732))
- ID Token signature is now always verified — no code path allows unverified tokens [\#154](https://github.com/auth0/auth0-java-mvc-common/pull/154) ([tanya732](https://github.com/tanya732))
- MCD security fix: HMAC-signed origin domain cookies bound to state parameter [\#154](https://github.com/auth0/auth0-java-mvc-common/pull/154) ([tanya732](https://github.com/tanya732))
- JPMS module support (`com.auth0.mvc.commons`) [\#154](https://github.com/auth0/auth0-java-mvc-common/pull/154) ([tanya732](https://github.com/tanya732))
- ID Token validation delegated to auth0-java v3's `IdTokenVerifier` [\#154](https://github.com/auth0/auth0-java-mvc-common/pull/154) ([tanya732](https://github.com/tanya732))
- Migration guide for v1 to v2 upgrade [\#233](https://github.com/auth0/auth0-java-mvc-common/pull/233) ([tanya732](https://github.com/tanya732))

**Changed**
- Minimum Java version raised from 8 to 17 [\#154](https://github.com/auth0/auth0-java-mvc-common/pull/154) ([tanya732](https://github.com/tanya732))
- Upgraded auth0-java from v2 to v3.5.1 (`AuthAPI.newBuilder()` pattern) [\#154](https://github.com/auth0/auth0-java-mvc-common/pull/154) ([tanya732](https://github.com/tanya732))
- Upgraded java-jwt from v3 to v4.5.0 [\#154](https://github.com/auth0/auth0-java-mvc-common/pull/154) ([tanya732](https://github.com/tanya732))
- Upgraded jwks-rsa to v0.24.1 [\#154](https://github.com/auth0/auth0-java-mvc-common/pull/154) ([tanya732](https://github.com/tanya732))

**Removed**
- Deprecated `handle(HttpServletRequest)` — use `handle(HttpServletRequest, HttpServletResponse)` instead [\#154](https://github.com/auth0/auth0-java-mvc-common/pull/154) ([tanya732](https://github.com/tanya732))
- Deprecated `buildAuthorizeUrl(HttpServletRequest, String)` — use `buildAuthorizeUrl(HttpServletRequest, HttpServletResponse, String)` instead [\#154](https://github.com/auth0/auth0-java-mvc-common/pull/154) ([tanya732](https://github.com/tanya732))
- `withHttpOptions(HttpOptions)` on Builder — use `withHttpClient(Auth0HttpClient)` instead [\#154](https://github.com/auth0/auth0-java-mvc-common/pull/154) ([tanya732](https://github.com/tanya732))
- `InvalidRequestException.getDescription()` — use `getMessage()` instead [\#154](https://github.cm/auth0/auth0-java-mvc-common/pull/154) ([tanya732](https://github.com/tanya732))
- Custom signature verifier classes: `IdTokenVerifier`, `SignatureVerifier`, `AsymmetricSignatureVerifier`, `SymmetricSignatureVerifier`, `AlgorithmNameVerifier`, `TokenValidationException` [\#154](https://github.com/auth0/auth0-java-mvc-common/pull/154) ([tanya732](https://github.com/tanya732))
- Session-based storage classes: `RandomStorage`, `SessionUtils` [\#154](https://github.com/auth0/auth0-java-mvc-common/pull/154) ([tanya732](https://github.com/tanya732))

> **Note:** All deprecated endpoints from v1.x have been removed in this release. Session (HTTP Session) based state/nonce storage has been replaced with secure transient cookies — the library no longer uses `HttpSession` for OAuth state management.

---

## [1.12.0](https://github.com/auth0/auth0-java-mvc-common/tree/1.12.0) (2026-04-09)
[Full Changelog](https://github.com/auth0/auth0-java-mvc-common/compare/1.11.1...1.12.0)

Expand Down
66 changes: 0 additions & 66 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,19 +1,7 @@
buildscript {
repositories {
jcenter()
}

dependencies {
// https://github.com/melix/japicmp-gradle-plugin/issues/36
classpath 'com.google.guava:guava:31.1-jre'
}
}

plugins {
id 'java'
id 'java-library'
id 'jacoco'
id 'me.champeau.gradle.japicmp' version '0.4.6'
id 'io.github.gradle-nexus.publish-plugin' version '2.0.0'
}

Expand All @@ -27,61 +15,7 @@ version = getVersionFromFile()
group = GROUP
logger.lifecycle("Using version ${version} for ${name} group $group")

import me.champeau.gradle.japicmp.JapicmpTask

//project.afterEvaluate {
// def versions = project.ext.testInJavaVersions
// for (pluginJavaTestVersion in versions) {
// def taskName = "testInJava-${pluginJavaTestVersion}"
// tasks.register(taskName, Test) {
// def versionToUse = taskName.split("-").getAt(1) as Integer
// description = "Runs unit tests on Java version ${versionToUse}."
// project.logger.quiet("Test will be running in ${versionToUse}")
// group = 'verification'
// javaLauncher.set(javaToolchains.launcherFor {
// languageVersion = JavaLanguageVersion.of(versionToUse)
// })
// shouldRunAfter(tasks.named('test'))
// }
// tasks.named('check') {
// dependsOn(taskName)
// }
// }
//
// project.configure(project) {
// def baselineVersion = project.ext.baselineCompareVersion
// task('apiDiff', type: JapicmpTask, dependsOn: 'jar') {
// oldClasspath.from(files(getBaselineJar(project, baselineVersion)))
// newClasspath.from(files(jar.archiveFile))
// onlyModified = true
// failOnModification = true
// ignoreMissingClasses = true
// htmlOutputFile = file("$buildDir/reports/apiDiff/apiDiff.html")
// txtOutputFile = file("$buildDir/reports/apiDiff/apiDiff.txt")
// doLast {
// project.logger.quiet("Comparing against baseline version ${baselineVersion}")
// }
// }
// }
//}
//
//private static File getBaselineJar(Project project, String baselineVersion) {
// // Use detached configuration: https://github.com/square/okhttp/blob/master/build.gradle#L270
// def group = project.group
// try {
// def baseline = "${project.group}:${project.name}:$baselineVersion"
// project.group = 'virtual_group_for_japicmp'
// def dependency = project.dependencies.create(baseline + "@jar")
// return project.configurations.detachedConfiguration(dependency).files.find {
// it.name == "${project.name}-${baselineVersion}.jar"
// }
// } finally {
// project.group = group
// }
//}

ext {
baselineCompareVersion = '1.5.0'
testInJavaVersions = [17, 21]
}

Expand Down
9 changes: 3 additions & 6 deletions gradle/maven-publish.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ tasks.withType(Javadoc).configureEach {
javadoc {
// Specify the Java version that the project targets
options.addStringOption('-release', "17")
if(JavaVersion.current().isJava9Compatible()) {
options.addBooleanOption('html5', true)
}
}
artifacts {
archives sourcesJar, javadocJar
Expand Down Expand Up @@ -88,12 +91,6 @@ signing {
sign publishing.publications.mavenJava
}

javadoc {
if(JavaVersion.current().isJava9Compatible()) {
options.addBooleanOption('html5', true)
}
}

tasks.named('publish').configure {
dependsOn tasks.named('assemble')
}
Loading