From 41201826efc612908b155cc088126f1841dde541 Mon Sep 17 00:00:00 2001 From: Bret Mogilefsky Date: Fri, 29 Mar 2024 11:31:17 -0700 Subject: [PATCH] Correctly parse variable name This is asking for the URL to the frontend that the backend should use, not vice-versa! --- manifest.yml | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/manifest.yml b/manifest.yml index c044be85d..e5e235c6a 100644 --- a/manifest.yml +++ b/manifest.yml @@ -22,15 +22,6 @@ applications: SPIFFWORKFLOW_FRONTEND_RUNTIME_CONFIG_BACKEND_BASE_URL: "https://spiffworkflow((slug)).app.cloud.gov/api" BACKEND_BASE_URL: "https://spiffworkflow((slug)).app.cloud.gov/api" # We may need to set BACKEND_URL; see spiffworkflow-frontend/src/config/tsx:15-72 - - # WHERE WE STOPPED: - # spiffworkflow-backend/src/spiffworkflow_backend/routes/authentication_controller.py#L111-L112 - # We are hitting: https://spiffworkflow-flamingo-stardust.app.cloud.gov/api/v1.0/login?redirect_url=https://spiffworkflow-flamingo-stardust.app.cloud.gov/&authentication_identifier=default - # We are seeing: { - # "error_code": "internal_server_error", - # "message": "InvalidRedirectUrlError: Invalid redirect url was given: 'https://spiffworkflow-flamingo-stardust.app.cloud.gov/'. It must match the domain the frontend is running on.", - # "status_code": 500 - # } # Other vars this image understands: # CYPRESS_RECORD_KEY @@ -93,7 +84,7 @@ applications: SPIFFWORKFLOW_BACKEND_OPEN_ID_CLIENT_SECRET_KEY: "((openid-secret))" SPIFFWORKFLOW_BACKEND_OPEN_ID_SERVER_URL: "https://spiffworkflow((slug)).app.cloud.gov/api/openid" SPIFFWORKFLOW_BACKEND_URL: "https://spiffworkflow((slug)).app.cloud.gov/api" - SPIFFWORKFLOW_BACKEND_URL_FOR_FRONTEND: "https://spiffworkflow((slug)).app.cloud.gov/api" + SPIFFWORKFLOW_BACKEND_URL_FOR_FRONTEND: "https://spiffworkflow((slug)).app.cloud.gov" SPIFFWORKFLOW_BACKEND_CONNECTOR_PROXY_URL: "https://spiffworkflow-connector((slug)).app.cloud.gov" # - SPIFFWORKFLOW_BACKEND_DATABASE_URI=mysql+mysqldb://root:${SPIFFWORKFLOW_BACKEND_MYSQL_ROOT_DATABASE:-my-secret-pw}@127.0.0.1:7003/${SPIFFWORKFLOW_BACKEND_DATABASE_NAME:-spiffworkflow_backend_development}