2
0
forked from maiora/backend-api

Compare commits

..

No commits in common. "a8f31470de89b37608aed77f2b8a03ead363b85d" and "40292f5572956ce7c7d73694fc640337ff3c69dc" have entirely different histories.

3 changed files with 4 additions and 1 deletions

View File

@ -33,6 +33,7 @@ dependencies {
//implementation("org.postgresql:postgresql:42.7.2") //implementation("org.postgresql:postgresql:42.7.2")
implementation("com.microsoft.sqlserver:mssql-jdbc:11.2.0.jre18") implementation("com.microsoft.sqlserver:mssql-jdbc:11.2.0.jre18")
implementation("com.oracle.database.jdbc:ojdbc8:19.8.0.0") implementation("com.oracle.database.jdbc:ojdbc8:19.8.0.0")
implementation("io.ktor:ktor-server-call-logging:$ktor_version")
implementation("io.ktor:ktor-server-cors:$ktor_version") implementation("io.ktor:ktor-server-cors:$ktor_version")
implementation("org.jetbrains.exposed:exposed-jdbc:0.55.0") implementation("org.jetbrains.exposed:exposed-jdbc:0.55.0")
implementation("org.jetbrains.exposed:exposed-dao:$exposed_version") implementation("org.jetbrains.exposed:exposed-dao:$exposed_version")

View File

@ -7,6 +7,7 @@ import io.ktor.server.application.*
import io.ktor.server.config.* import io.ktor.server.config.*
import io.ktor.server.engine.* import io.ktor.server.engine.*
import io.ktor.server.netty.* import io.ktor.server.netty.*
import io.ktor.server.plugins.callloging.*
import io.ktor.server.plugins.cors.routing.* import io.ktor.server.plugins.cors.routing.*
import java.io.FileInputStream import java.io.FileInputStream
import java.util.* import java.util.*
@ -30,6 +31,7 @@ fun Application.module(configFile: Properties) {
configureRouting() configureRouting()
configureSerialization() configureSerialization()
install(CallLogging)
install(CORS){ install(CORS){
anyHost() anyHost()
allowSameOrigin = true allowSameOrigin = true

View File

@ -31,7 +31,7 @@ fun Route.auth(accountsRepository: AccountsRepositoryImpl) {
logger.info( logger.info(
"param: " + "param: " +
receivedResponse.param receivedResponse.param
) );
// Decodifica la stringa da Base64 a oggetto Credentials // Decodifica la stringa da Base64 a oggetto Credentials
val decodedBytes = Base64.getDecoder().decode(receivedResponse.param) val decodedBytes = Base64.getDecoder().decode(receivedResponse.param)