address logout
This commit is contained in:
@@ -65,6 +65,7 @@ fun main(args: Array<String>) {
|
||||
get("/init", Auth::init)
|
||||
get("/code", Auth::code)
|
||||
get("/keys", Auth::keys)
|
||||
post("/logout", Auth::logout)
|
||||
post("/refresh", Auth::refreshToken)
|
||||
}
|
||||
before("/api/*") { ctx ->
|
||||
@@ -80,9 +81,6 @@ fun main(args: Array<String>) {
|
||||
|
||||
setAuthorizedUser(validateAuthToken(authToken = authToken))
|
||||
|
||||
if (appConfig.enforcePayloadEncryption()) {
|
||||
//todo: decrypt the request from user
|
||||
}
|
||||
}
|
||||
after("/api/*") {
|
||||
|
||||
@@ -94,9 +92,6 @@ fun main(args: Array<String>) {
|
||||
it.header("X-Checksum", outEncoded)
|
||||
it.header("X-Signature", signPayload(outEncoded))
|
||||
|
||||
if (appConfig.enforcePayloadEncryption()) {
|
||||
//todo: encrypt and send the response back to user
|
||||
}
|
||||
|
||||
}
|
||||
path("/api") {
|
||||
|
||||
Reference in New Issue
Block a user