Skip to content

Commit 908c3f6

Browse files
chore(deps): bump the github group across 1 directory with 21 updates (#765)
* chore(deps): bump the github group across 1 directory with 21 updates Bumps the github group with 21 updates in the / directory: | Package | From | To | | --- | --- | --- | | [com.fasterxml.jackson.core:jackson-databind](https://github.com/FasterXML/jackson) | `2.17.2` | `2.18.1` | | [com.fasterxml.jackson.module:jackson-module-kotlin](https://github.com/FasterXML/jackson-module-kotlin) | `2.17.2` | `2.18.1` | | [ch.qos.logback:logback-classic](https://github.com/qos-ch/logback) | `1.5.7` | `1.5.12` | | [com.nimbusds:oauth2-oidc-sdk](https://bitbucket.org/connect2id/oauth-2.0-sdk-with-openid-connect-extensions) | `11.18` | `11.20.1` | | [io.netty:netty-codec-http](https://github.com/netty/netty) | `4.1.112.Final` | `4.1.114.Final` | | [org.bouncycastle:bcpkix-jdk18on](https://github.com/bcgit/bc-java) | `1.78.1` | `1.79` | | [org.jetbrains.kotlinx:kotlinx-serialization-json](https://github.com/Kotlin/kotlinx.serialization) | `1.7.1` | `1.7.3` | | [org.junit.jupiter:junit-jupiter-api](https://github.com/junit-team/junit5) | `5.11.0` | `5.11.3` | | [org.junit.jupiter:junit-jupiter-params](https://github.com/junit-team/junit5) | `5.11.0` | `5.11.3` | | [org.junit.jupiter:junit-jupiter-engine](https://github.com/junit-team/junit5) | `5.11.0` | `5.11.3` | | [org.jetbrains.kotlin:kotlin-test-junit5](https://github.com/JetBrains/kotlin) | `2.0.20` | `2.0.21` | | [org.springframework.boot:spring-boot-starter-webflux](https://github.com/spring-projects/spring-boot) | `3.3.3` | `3.3.5` | | [org.springframework.boot:spring-boot-starter-oauth2-resource-server](https://github.com/spring-projects/spring-boot) | `3.3.3` | `3.3.5` | | [org.springframework.boot:spring-boot-starter-oauth2-client](https://github.com/spring-projects/spring-boot) | `3.3.3` | `3.3.5` | | [org.springframework.boot:spring-boot-starter-test](https://github.com/spring-projects/spring-boot) | `3.3.3` | `3.3.5` | | [org.springframework.boot:spring-boot-test](https://github.com/spring-projects/spring-boot) | `3.3.3` | `3.3.5` | | [org.yaml:snakeyaml](https://bitbucket.org/snakeyaml/snakeyaml) | `2.2` | `2.3` | | [io.projectreactor:reactor-test](https://github.com/reactor/reactor-core) | `3.6.9` | `3.6.11` | | [com.fasterxml.woodstox:woodstox-core](https://github.com/FasterXML/woodstox) | `7.0.0` | `7.1.0` | | [jvm](https://github.com/JetBrains/kotlin) | `2.0.20` | `2.0.21` | | com.google.cloud.tools.jib | `3.4.3` | `3.4.4` | Updates `com.fasterxml.jackson.core:jackson-databind` from 2.17.2 to 2.18.1 - [Commits](https://github.com/FasterXML/jackson/commits) Updates `com.fasterxml.jackson.module:jackson-module-kotlin` from 2.17.2 to 2.18.1 - [Commits](FasterXML/jackson-module-kotlin@jackson-module-kotlin-2.17.2...jackson-module-kotlin-2.18.1) Updates `ch.qos.logback:logback-classic` from 1.5.7 to 1.5.12 - [Commits](qos-ch/logback@v_1.5.7...v_1.5.12) Updates `com.nimbusds:oauth2-oidc-sdk` from 11.18 to 11.20.1 - [Changelog](https://bitbucket.org/connect2id/oauth-2.0-sdk-with-openid-connect-extensions/src/master/CHANGELOG.txt) - [Commits](https://bitbucket.org/connect2id/oauth-2.0-sdk-with-openid-connect-extensions/branches/compare/11.20.1..11.18) Updates `io.netty:netty-codec-http` from 4.1.112.Final to 4.1.114.Final - [Commits](netty/netty@netty-4.1.112.Final...netty-4.1.114.Final) Updates `com.fasterxml.jackson.module:jackson-module-kotlin` from 2.17.2 to 2.18.1 - [Commits](FasterXML/jackson-module-kotlin@jackson-module-kotlin-2.17.2...jackson-module-kotlin-2.18.1) Updates `org.bouncycastle:bcpkix-jdk18on` from 1.78.1 to 1.79 - [Changelog](https://github.com/bcgit/bc-java/blob/main/docs/releasenotes.html) - [Commits](https://github.com/bcgit/bc-java/commits) Updates `org.jetbrains.kotlinx:kotlinx-serialization-json` from 1.7.1 to 1.7.3 - [Release notes](https://github.com/Kotlin/kotlinx.serialization/releases) - [Changelog](https://github.com/Kotlin/kotlinx.serialization/blob/master/CHANGELOG.md) - [Commits](Kotlin/kotlinx.serialization@v1.7.1...v1.7.3) Updates `org.junit.jupiter:junit-jupiter-api` from 5.11.0 to 5.11.3 - [Release notes](https://github.com/junit-team/junit5/releases) - [Commits](junit-team/junit5@r5.11.0...r5.11.3) Updates `org.junit.jupiter:junit-jupiter-params` from 5.11.0 to 5.11.3 - [Release notes](https://github.com/junit-team/junit5/releases) - [Commits](junit-team/junit5@r5.11.0...r5.11.3) Updates `org.junit.jupiter:junit-jupiter-engine` from 5.11.0 to 5.11.3 - [Release notes](https://github.com/junit-team/junit5/releases) - [Commits](junit-team/junit5@r5.11.0...r5.11.3) Updates `org.junit.jupiter:junit-jupiter-params` from 5.11.0 to 5.11.3 - [Release notes](https://github.com/junit-team/junit5/releases) - [Commits](junit-team/junit5@r5.11.0...r5.11.3) Updates `org.jetbrains.kotlin:kotlin-test-junit5` from 2.0.20 to 2.0.21 - [Release notes](https://github.com/JetBrains/kotlin/releases) - [Changelog](https://github.com/JetBrains/kotlin/blob/master/ChangeLog.md) - [Commits](JetBrains/kotlin@v2.0.20...v2.0.21) Updates `org.junit.jupiter:junit-jupiter-engine` from 5.11.0 to 5.11.3 - [Release notes](https://github.com/junit-team/junit5/releases) - [Commits](junit-team/junit5@r5.11.0...r5.11.3) Updates `org.springframework.boot:spring-boot-starter-webflux` from 3.3.3 to 3.3.5 - [Release notes](https://github.com/spring-projects/spring-boot/releases) - [Commits](spring-projects/spring-boot@v3.3.3...v3.3.5) Updates `org.springframework.boot:spring-boot-starter-oauth2-resource-server` from 3.3.3 to 3.3.5 - [Release notes](https://github.com/spring-projects/spring-boot/releases) - [Commits](spring-projects/spring-boot@v3.3.3...v3.3.5) Updates `org.springframework.boot:spring-boot-starter-oauth2-client` from 3.3.3 to 3.3.5 - [Release notes](https://github.com/spring-projects/spring-boot/releases) - [Commits](spring-projects/spring-boot@v3.3.3...v3.3.5) Updates `org.springframework.boot:spring-boot-starter-test` from 3.3.3 to 3.3.5 - [Release notes](https://github.com/spring-projects/spring-boot/releases) - [Commits](spring-projects/spring-boot@v3.3.3...v3.3.5) Updates `org.springframework.boot:spring-boot-test` from 3.3.3 to 3.3.5 - [Release notes](https://github.com/spring-projects/spring-boot/releases) - [Commits](spring-projects/spring-boot@v3.3.3...v3.3.5) Updates `org.springframework.boot:spring-boot-starter-oauth2-resource-server` from 3.3.3 to 3.3.5 - [Release notes](https://github.com/spring-projects/spring-boot/releases) - [Commits](spring-projects/spring-boot@v3.3.3...v3.3.5) Updates `org.springframework.boot:spring-boot-starter-oauth2-client` from 3.3.3 to 3.3.5 - [Release notes](https://github.com/spring-projects/spring-boot/releases) - [Commits](spring-projects/spring-boot@v3.3.3...v3.3.5) Updates `org.springframework.boot:spring-boot-starter-test` from 3.3.3 to 3.3.5 - [Release notes](https://github.com/spring-projects/spring-boot/releases) - [Commits](spring-projects/spring-boot@v3.3.3...v3.3.5) Updates `org.springframework.boot:spring-boot-test` from 3.3.3 to 3.3.5 - [Release notes](https://github.com/spring-projects/spring-boot/releases) - [Commits](spring-projects/spring-boot@v3.3.3...v3.3.5) Updates `org.yaml:snakeyaml` from 2.2 to 2.3 - [Commits](https://bitbucket.org/snakeyaml/snakeyaml/branches/compare/snakeyaml-2.3..snakeyaml-2.2) Updates `io.projectreactor:reactor-test` from 3.6.9 to 3.6.11 - [Release notes](https://github.com/reactor/reactor-core/releases) - [Commits](reactor/reactor-core@v3.6.9...v3.6.11) Updates `com.fasterxml.woodstox:woodstox-core` from 7.0.0 to 7.1.0 - [Commits](FasterXML/woodstox@woodstox-core-7.0.0...woodstox-core-7.1.0) Updates `jvm` from 2.0.20 to 2.0.21 - [Release notes](https://github.com/JetBrains/kotlin/releases) - [Changelog](https://github.com/JetBrains/kotlin/blob/master/ChangeLog.md) - [Commits](JetBrains/kotlin@v2.0.20...v2.0.21) Updates `com.google.cloud.tools.jib` from 3.4.3 to 3.4.4 --- updated-dependencies: - dependency-name: com.fasterxml.jackson.core:jackson-databind dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github - dependency-name: com.fasterxml.jackson.module:jackson-module-kotlin dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github - dependency-name: ch.qos.logback:logback-classic dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github - dependency-name: com.nimbusds:oauth2-oidc-sdk dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github - dependency-name: io.netty:netty-codec-http dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github - dependency-name: com.fasterxml.jackson.module:jackson-module-kotlin dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github - dependency-name: org.bouncycastle:bcpkix-jdk18on dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github - dependency-name: org.jetbrains.kotlinx:kotlinx-serialization-json dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github - dependency-name: org.junit.jupiter:junit-jupiter-api dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github - dependency-name: org.junit.jupiter:junit-jupiter-params dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github - dependency-name: org.junit.jupiter:junit-jupiter-engine dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github - dependency-name: org.junit.jupiter:junit-jupiter-params dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github - dependency-name: org.jetbrains.kotlin:kotlin-test-junit5 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github - dependency-name: org.junit.jupiter:junit-jupiter-engine dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github - dependency-name: org.springframework.boot:spring-boot-starter-webflux dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github - dependency-name: org.springframework.boot:spring-boot-starter-oauth2-resource-server dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github - dependency-name: org.springframework.boot:spring-boot-starter-oauth2-client dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github - dependency-name: org.springframework.boot:spring-boot-starter-test dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github - dependency-name: org.springframework.boot:spring-boot-test dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github - dependency-name: org.springframework.boot:spring-boot-starter-oauth2-resource-server dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github - dependency-name: org.springframework.boot:spring-boot-starter-oauth2-client dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github - dependency-name: org.springframework.boot:spring-boot-starter-test dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github - dependency-name: org.springframework.boot:spring-boot-test dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github - dependency-name: org.yaml:snakeyaml dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github - dependency-name: io.projectreactor:reactor-test dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github - dependency-name: com.fasterxml.woodstox:woodstox-core dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github - dependency-name: jvm dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github - dependency-name: com.google.cloud.tools.jib dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github ... Signed-off-by: dependabot[bot] <[email protected]> * refactor: remove deprecated methods * format --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Tommy Trøen <[email protected]>
1 parent 5aa7bdb commit 908c3f6

File tree

4 files changed

+37
-29
lines changed

4 files changed

+37
-29
lines changed

build.gradle.kts

+14-14
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,18 @@ import org.jetbrains.kotlin.gradle.dsl.JvmTarget
44

55
val assertjVersion = "3.26.3"
66
val kotlinLoggingVersion = "3.0.5"
7-
val logbackVersion = "1.5.7"
8-
val nimbusSdkVersion = "11.18"
7+
val logbackVersion = "1.5.12"
8+
val nimbusSdkVersion = "11.20.1"
99
val mockWebServerVersion = "4.12.0"
10-
val jacksonVersion = "2.17.2"
11-
val nettyVersion = "4.1.112.Final"
12-
val junitJupiterVersion = "5.11.0"
13-
val kotlinVersion = "2.0.20"
10+
val jacksonVersion = "2.18.1"
11+
val nettyVersion = "4.1.114.Final"
12+
val junitJupiterVersion = "5.11.3"
13+
val kotlinVersion = "2.0.21"
1414
val freemarkerVersion = "2.3.33"
1515
val kotestVersion = "5.9.1"
16-
val bouncyCastleVersion = "1.78.1"
17-
val springBootVersion = "3.3.3"
18-
val reactorTestVersion = "3.6.9"
16+
val bouncyCastleVersion = "1.79"
17+
val springBootVersion = "3.3.5"
18+
val reactorTestVersion = "3.6.11"
1919
val ktorVersion = "2.3.12"
2020
val jsonPathVersion = "2.9.0"
2121

@@ -24,11 +24,11 @@ val mainClassKt = "no.nav.security.mock.oauth2.StandaloneMockOAuth2ServerKt"
2424

2525
plugins {
2626
application
27-
kotlin("jvm") version "2.0.20"
27+
kotlin("jvm") version "2.0.21"
2828
id("se.patrikerdes.use-latest-versions") version "0.2.18"
2929
id("com.github.ben-manes.versions") version "0.51.0"
3030
id("org.jmailen.kotlinter") version "4.4.1"
31-
id("com.google.cloud.tools.jib") version "3.4.3"
31+
id("com.google.cloud.tools.jib") version "3.4.4"
3232
id("com.github.johnrengelman.shadow") version "8.1.1"
3333
id("net.researchgate.release") version "3.0.2"
3434
id("io.github.gradle-nexus.publish-plugin") version "2.0.0"
@@ -67,7 +67,7 @@ dependencies {
6767
implementation("com.fasterxml.jackson.module:jackson-module-kotlin:$jacksonVersion")
6868
implementation("org.freemarker:freemarker:$freemarkerVersion")
6969
implementation("org.bouncycastle:bcpkix-jdk18on:$bouncyCastleVersion")
70-
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.7.1")
70+
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.7.3")
7171
testImplementation("org.assertj:assertj-core:$assertjVersion")
7272
testImplementation("org.junit.jupiter:junit-jupiter-api:$junitJupiterVersion")
7373
testImplementation("org.junit.jupiter:junit-jupiter-params:$junitJupiterVersion")
@@ -95,7 +95,7 @@ dependencies {
9595
require("2.10.0")
9696
}
9797
}
98-
testImplementation("org.yaml:snakeyaml:2.2") {
98+
testImplementation("org.yaml:snakeyaml:2.3") {
9999
because("previous versions have security vulnerabilities")
100100
}
101101
add("api", "com.squareup.okio:okio") {
@@ -125,7 +125,7 @@ dependencies {
125125

126126
configurations {
127127
all {
128-
resolutionStrategy.force("com.fasterxml.woodstox:woodstox-core:7.0.0")
128+
resolutionStrategy.force("com.fasterxml.woodstox:woodstox-core:7.1.0")
129129
}
130130
}
131131

src/main/kotlin/no/nav/security/mock/oauth2/MockOAuth2Server.kt

+14-6
Original file line numberDiff line numberDiff line change
@@ -241,11 +241,12 @@ open class MockOAuth2Server(
241241
val uri = tokenEndpointUrl(issuerId)
242242
val issuerUrl = issuerUrl(issuerId)
243243
val tokenRequest =
244-
TokenRequest(
245-
uri.toUri(),
246-
ClientSecretBasic(ClientID(clientId), Secret("secret")),
247-
AuthorizationCodeGrant(AuthorizationCode("123"), URI.create("http://localhost")),
248-
)
244+
TokenRequest
245+
.Builder(
246+
uri.toUri(),
247+
ClientSecretBasic(ClientID(clientId), Secret("secret")),
248+
AuthorizationCodeGrant(AuthorizationCode("123"), URI.create("http://localhost")),
249+
).build()
249250
return config.tokenProvider.accessToken(tokenRequest, issuerUrl, tokenCallback, null)
250251
}
251252

@@ -290,8 +291,15 @@ open class MockOAuth2Server(
290291
object : AuthorizationGrant(GrantType("MockGrant")) {
291292
override fun toParameters(): MutableMap<String, MutableList<String>> = mutableMapOf()
292293
}
294+
val request =
295+
TokenRequest
296+
.Builder(
297+
URI.create("http://mockgrant"),
298+
ClientID("mockclientid"),
299+
mockGrant,
300+
).build()
293301
return this.config.tokenProvider.exchangeAccessToken(
294-
TokenRequest(URI.create("http://mockgrant"), ClientID("mockclientid"), mockGrant),
302+
request,
295303
issuerUrl,
296304
jwtClaimsSet,
297305
DefaultOAuth2TokenCallback(

src/main/kotlin/no/nav/security/mock/oauth2/http/OAuth2HttpRequest.kt

+9-8
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,15 @@ data class OAuth2HttpRequest(
4040
val tokenExchangeGrant = TokenExchangeGrant.parse(formParameters.map)
4141

4242
// TODO: add scope if present in request
43-
return TokenRequest(
44-
this.url.toUri(),
45-
clientAuthentication,
46-
tokenExchangeGrant,
47-
null,
48-
emptyList(),
49-
formParameters.map.mapValues { mutableListOf(it.value) },
50-
)
43+
val builder =
44+
TokenRequest.Builder(
45+
this.url.toUri(),
46+
clientAuthentication,
47+
tokenExchangeGrant,
48+
)
49+
formParameters.map.forEach { (key, value) -> builder.customParameter(key, value) }
50+
51+
return builder.build()
5152
}
5253

5354
@Suppress("MemberVisibilityCanBePrivate")

src/main/kotlin/no/nav/security/mock/oauth2/token/KeyProvider.kt

-1
Original file line numberDiff line numberDiff line change
@@ -73,5 +73,4 @@ open class KeyProvider
7373
jwkSelector: JWKSelector?,
7474
context: SecurityContext?,
7575
): MutableList<JWK> = jwkSelector?.select(JWKSet(signingKeys.values.toList()).toPublicJWKSet()) ?: mutableListOf()
76-
7776
}

0 commit comments

Comments
 (0)