INNER CODE UNIT · Python

logout_endpoint

fescobar/allure-docker-service · allure-docker-api/app.py:613

def logout_endpoint():
    if ENABLE_SECURITY_LOGIN is False:
        body = {
            'meta_data': {
                'message' : 'SECURITY is not enabled'
            }
        }
        resp = jsonify(body)
        return resp, 404
    try:
        jti = get_jwt()['jti']
        blacklist.add(jti)
        return jsonify({'meta_data': {'message' : 'Successfully logged out'}}), 200
    except Exception as ex:
        body = {
            'meta_data': {
                'message' : str(ex)
            }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…