Ejemplo n.º 1
0
 def post(self):
     identity = get_jwt_identity()
     dbm = access.DBMan(LOST_CONFIG)
     release_user_annos(dbm, identity)
     dbm.close_session()
     jti = get_raw_jwt()['jti'] 
     blacklist.add(jti)
     return {"msg": "Successfully logged out"}, 200
Ejemplo n.º 2
0
 def post(self):
     identity = get_jwt_identity()
     dbm = access.DBMan(LOST_CONFIG)
     release_user_annos(dbm, identity)
     user = dbm.get_user_by_id(identity)
     if LOST_CONFIG.worker_management == 'dynamic':
         dask_session.ds_man.shutdown_cluster(user)
     dbm.close_session()
     jti = get_raw_jwt()['jti']
     blacklist.add(jti)
     return {"msg": "Successfully logged out"}, 200
Ejemplo n.º 3
0
 def post(self):
     jti = get_raw_jwt()['jti']
     blacklist.add(jti)
     print(blacklist)
     return {"msg": "Successfully logged out"}, 200