diff --git a/backend/gradle.properties b/backend/gradle.properties index 020c737..18193bc 100644 --- a/backend/gradle.properties +++ b/backend/gradle.properties @@ -2,5 +2,5 @@ kotlin.code.style=official exposed_version=0.61.0 h2_version=2.3.232 kotlin_version=2.1.10 -ktor_version=3.1.3 -logback_version=1.5.13 +ktor_version=3.4.2 +logback_version=1.5.32 diff --git a/backend/src/main/kotlin/plugins/Security.kt b/backend/src/main/kotlin/plugins/Security.kt index 50e5148..ea37f02 100644 --- a/backend/src/main/kotlin/plugins/Security.kt +++ b/backend/src/main/kotlin/plugins/Security.kt @@ -7,7 +7,7 @@ import io.ktor.server.auth.* fun Application.configureSecurity(dotenv: Dotenv) { val apiKey = dotenv["API_KEY"] ?: throw Exception("API_KEY not found") - authentication { + install(Authentication) { bearer { realm = "/" authenticate { credential ->