forked from maiora/backend-api
Compare commits
3 Commits
91bc2bad30
...
31c528c73f
Author | SHA1 | Date | |
---|---|---|---|
31c528c73f | |||
bba0ca81c5 | |||
6c6d518851 |
@ -1,5 +1,5 @@
|
|||||||
plugins {
|
plugins {
|
||||||
id("org.gradle.toolchains.foojay-resolver-convention") version "0.5.0"
|
id("org.gradle.toolchains.foojay-resolver-convention") version "0.5.0"
|
||||||
}
|
}
|
||||||
rootProject.name = "Backend_API_DSU"
|
rootProject.name = "Backend_API"
|
||||||
|
|
||||||
|
@ -30,7 +30,7 @@ fun Route.auth(accountsRepository: AccountsRepositoryImpl, parametriRepository:
|
|||||||
logger.info("param: " +
|
logger.info("param: " +
|
||||||
receivedResponse.param);
|
receivedResponse.param);
|
||||||
|
|
||||||
// Decodifica la stringa da Base64
|
// Decodifica la stringa da Base64 a oggetto Credentials
|
||||||
val decodedBytes = Base64.getDecoder().decode(receivedResponse.param)
|
val decodedBytes = Base64.getDecoder().decode(receivedResponse.param)
|
||||||
val decodedString = String(decodedBytes)
|
val decodedString = String(decodedBytes)
|
||||||
val credentials = Json.decodeFromString<Credentials>(decodedString)
|
val credentials = Json.decodeFromString<Credentials>(decodedString)
|
||||||
|
Loading…
Reference in New Issue
Block a user