[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libeufin] branch master updated: Importing dependencies to implement fo
From: |
gnunet |
Subject: |
[libeufin] branch master updated: Importing dependencies to implement form-based authentication. |
Date: |
Mon, 21 Jun 2021 12:47:16 +0200 |
This is an automated email from the git hooks/post-receive script.
ms pushed a commit to branch master
in repository libeufin.
The following commit(s) were added to refs/heads/master by this push:
new 62d0490 Importing dependencies to implement form-based authentication.
62d0490 is described below
commit 62d04901d6d9ec98ea42bdf192fa7ed048a57dbc
Author: ms <ms@taler.net>
AuthorDate: Mon Jun 21 12:46:01 2021 +0200
Importing dependencies to implement form-based authentication.
This will allow the Sandbox/Bank customers to login into their
accounts.
---
sandbox/build.gradle | 1 +
sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt | 7 +++++++
2 files changed, 8 insertions(+)
diff --git a/sandbox/build.gradle b/sandbox/build.gradle
index ce04568..c2cb39a 100644
--- a/sandbox/build.gradle
+++ b/sandbox/build.gradle
@@ -66,6 +66,7 @@ dependencies {
implementation "io.ktor:ktor-client-apache:$ktor_version"
implementation "io.ktor:ktor-server-netty:$ktor_version"
implementation "io.ktor:ktor-jackson:$ktor_version"
+ implementation "io.ktor:ktor-auth:$ktor_version"
testImplementation 'org.jetbrains.kotlin:kotlin-test-junit:1.4.30-RC'
testImplementation 'org.jetbrains.kotlin:kotlin-test:1.4.30-RC'
diff --git a/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt
b/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt
index 25ef80f..3d96517 100644
--- a/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt
+++ b/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt
@@ -69,6 +69,7 @@ import com.google.common.collect.Maps
import com.google.common.io.Resources
import execThrowableOrTerminate
import io.ktor.application.ApplicationCall
+import io.ktor.auth.*
import io.ktor.http.*
import io.ktor.http.content.*
import io.ktor.request.*
@@ -224,6 +225,12 @@ fun serverMain(dbName: String, port: Int) {
this.level = Level.DEBUG
this.logger = myLogger
}
+ install(Authentication) {
+ // Web-based authentication for Bank customers.
+ form {
+
+ }
+ }
install(ContentNegotiation) {
jackson {
enable(SerializationFeature.INDENT_OUTPUT)
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [libeufin] branch master updated: Importing dependencies to implement form-based authentication.,
gnunet <=