Implementing Bearer for logout
This commit is contained in:
parent
144d2bddf2
commit
aebfc08edf
@ -433,7 +433,9 @@ class auth:
|
||||
APIADDR = "/api/auth/logout"
|
||||
loggorilla.prcss(APIADDR, "Define parameters")
|
||||
response = {}
|
||||
jwt = params["jwt" ]
|
||||
loggorilla.prcss(APIADDR, "Extract the Authorization token from Header")
|
||||
auth_header = request.get_header('Authorization')
|
||||
jwt = auth_header.split(' ')[1]
|
||||
payload = tokenguard.decode(jwt, globalvar.ssh['key']['public'])
|
||||
session_id = payload["session"]["id"]
|
||||
self.cursor.execute("BEGIN;")
|
||||
|
Loading…
Reference in New Issue
Block a user