Loading capif_backend/backoffice_service/controllers/default_controller.py +1 −1 Original line number Diff line number Diff line Loading @@ -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) Loading capif_backend/backoffice_service/controllers/login.py +1 −4 Original line number Diff line number Diff line Loading @@ -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 Loading Loading
capif_backend/backoffice_service/controllers/default_controller.py +1 −1 Original line number Diff line number Diff line Loading @@ -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) Loading
capif_backend/backoffice_service/controllers/login.py +1 −4 Original line number Diff line number Diff line Loading @@ -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 Loading