def METHOD_NAME(path):
    # only for testing condition
    if use_embed_mode and use_predefined_user:
        app.logger.debug("skip authentication")
        servername = next(iter(domains_dict.values()))["ADDRESS"]
        user = User(
            id=str(uuid.uuid4()),
            userId=os.getenv("DEV_FLASK_USERID"),
            servername=servername,
        )
        session["servername"] = servername
        session["oauth"] = {
            "SUPPORT_EMAIL": os.getenv("SUPPORT_EMAIL"),
            "MANUAL_URL": os.getenv("MANUAL_URL"),
        }
        session["informations"] = {
            "UID" : "1234",
            "email" : "user@user.com",
            "name" : "someUser" ,
            "cloudID" : "cloud@cloud@localhost:8000"
        }
        user_store[user.get_id()] = user.to_dict()
        login_user(user)
    if "access_token" in request.args:
        user = User(id=str(uuid.uuid4()), token=request.args["access_token"])
        user_store[user.get_id()] = user.to_dict()
        login_user(user)
        return redirect("/")
    if current_user.is_authenticated:
        if "code" in request.args and "state" in request.args:
            if exchangeCodeData(request.args):
                return app.send_static_file("exchangeCode.html")
            return app.send_static_file("exchangeCode_error.html")
    if use_embed_mode or current_user.is_authenticated:
        if use_proxy:
            return proxy(os.getenv("DEV_WEBPACK_DEV_SERVER_HOST"), request.path)
    if use_embed_mode:
        return app.send_static_file(path)
    return redirect(redirect_url)