Add TODO's

This commit is contained in:
2021-01-15 23:28:41 +01:00
parent ce90884758
commit 128510fe88
3 changed files with 3 additions and 3 deletions

View File

@@ -128,7 +128,7 @@ fun Application.module(env: Env = PROD) {
verifier(JwtConfig.verifier)
realm = "dc-project.fr"
authHeader { call ->
call.request.queryParameters.get("token")?.let {
call.request.queryParameters["token"]?.let {
HttpAuthHeader.Single("Bearer", it)
}
}

View File

@@ -47,6 +47,7 @@ object JwtConfig {
/**
* Produce a token for this combination of User and Account
* TODO move token creator in other place
*/
fun makeToken(user: UserI): String = JWT.create()
.withSubject("Authentication")