set up jwt for identity

This commit is contained in:
2024-11-25 00:32:05 +01:00
parent 2e8ea4c6a7
commit cb8875a754
5 changed files with 27 additions and 4 deletions

View File

@@ -7,11 +7,15 @@ plugins {
}
dependencies {
implementation(hlaeja.jjwt.api)
implementation(hlaeja.kotlin.reflect)
implementation(hlaeja.kotlinx.coroutines)
implementation(hlaeja.org.springframework.springboot.actuator.starter)
implementation(hlaeja.org.springframework.springboot.webflux.starter)
runtimeOnly(hlaeja.jjwt.impl)
runtimeOnly(hlaeja.jjwt.jackson)
testImplementation(hlaeja.io.mockk)
testImplementation(hlaeja.io.projectreactor.reactor.test)
testImplementation(hlaeja.kotlin.test.junit5)
@@ -25,7 +29,7 @@ group = "ltd.hlaeja"
tasks {
named("processResources") {
dependsOn("copyKeystore")
dependsOn("copyKeystore", "copyPublicKey")
}
register<Copy>("copyKeystore") {
group = "hlaeja"
@@ -33,4 +37,10 @@ tasks {
into("${layout.buildDirectory.get()}/resources/main/cert")
onlyIf { file("cert/keystore.p12").exists() }
}
register<Copy>("copyPublicKey") {
group = "hlaeja"
from("cert/public_key.pem")
into("${layout.buildDirectory.get()}/resources/main/cert")
onlyIf { file("cert/public_key.pem").exists() }
}
}