Commit cec60a9d authored by Guillermo Sanz López's avatar Guillermo Sanz López
Browse files

debug get security context

parent 4e354fac
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -34,7 +34,7 @@ def get_num_providers():
@backoffice_routes.route("/resources/invokers/security/<invoker_id>", methods=["GET"])
@jwt_required()
def get_invoker_security_context(invoker_id):
    print("ESTOY EN DEFAULT CONTROLLER     INVOKER ID: ", invoker_id)
    print("ESTOY EN BACKOFFICE ROUTES     INVOKER ID: ", invoker_id)
    if invoker_id == "null":
        return jsonify(message="Invalid invoker_id", security_contexts=None), 400
    return operations.get_invoker_security_context(invoker_id)
+1 −4
Original line number Diff line number Diff line
@@ -16,14 +16,11 @@ def login():
    #password = request.json.get("password", None)
    #username = request().form['username']
    #password = request().form['password']
    print("Bad username or password")
    print("username: ", username)
    print("password: ", password)  

    if username != "superadmin" or password != "1234":
        print("Bad username or password")   
        print("username: ", username)
        print("password: ", password)        
        return jsonify({"msg": "Bad username or password"}), 401

    # identity es un dato serializable en json -> username = superadmin