From 737a8acb3c1d754567ae53c3fb8b477d56148205 Mon Sep 17 00:00:00 2001 From: David Heitzer Date: Mon, 29 Jul 2024 20:07:03 -0400 Subject: [PATCH] 892 updated urls for oidc move --- front-end/src/environments/environment.cloud.gov.dev.ts | 8 ++++---- front-end/src/environments/environment.cloud.gov.prod.ts | 8 ++++---- front-end/src/environments/environment.cloud.gov.stage.ts | 8 ++++---- front-end/src/environments/environment.local.ts | 8 ++++---- 4 files changed, 16 insertions(+), 16 deletions(-) diff --git a/front-end/src/environments/environment.cloud.gov.dev.ts b/front-end/src/environments/environment.cloud.gov.dev.ts index ff5dca0e6..f36c7bcc8 100644 --- a/front-end/src/environments/environment.cloud.gov.dev.ts +++ b/front-end/src/environments/environment.cloud.gov.dev.ts @@ -2,17 +2,17 @@ // `ng build --configuration=cloud.gov.dev` replaces `environment.ts` with `environment.cloud.gov.dev.ts`. // The list of file replacements can be found in `angular.json`. -const apiBaseUrl = 'https://dev-api.fecfile.fec.gov'; +const apiUrl = 'https://dev-api.fecfile.fec.gov/api/v1'; export const environment = { production: false, name: 'development', - apiUrl: `${apiBaseUrl}/api/v1`, + apiUrl: apiUrl, appTitle: 'FECfile', dcfConverterApiUrl: 'https://dev-efile-api.efdev.fec.gov/dcf_converter/v1', fecApiUrl: 'https://api.open.fec.gov/v1/', userCanSetFilingFrequency: true, - loginDotGovAuthUrl: `${apiBaseUrl}/oidc/authenticate`, - loginDotGovLogoutUrl: `${apiBaseUrl}/oidc/logout`, + loginDotGovAuthUrl: `${apiUrl}/oidc/authenticate`, + loginDotGovLogoutUrl: `${apiUrl}/oidc/logout`, ffapiLoginDotGovCookieName: 'ffapi_login_dot_gov', sessionIdCookieName: 'sessionid', }; diff --git a/front-end/src/environments/environment.cloud.gov.prod.ts b/front-end/src/environments/environment.cloud.gov.prod.ts index e5958d663..a31826832 100644 --- a/front-end/src/environments/environment.cloud.gov.prod.ts +++ b/front-end/src/environments/environment.cloud.gov.prod.ts @@ -2,17 +2,17 @@ // `ng build --configuration=cloud.gov.prod` replaces `environment.ts` with `environment.cloud.gov.prod.ts`. // The list of file replacements can be found in `angular.json`. -const apiBaseUrl = 'https://api.fecfile.fec.gov'; +const apiUrl = 'https://api.fecfile.fec.gov/api/v1'; export const environment = { production: true, name: 'production', - apiUrl: `${apiBaseUrl}/api/v1`, + apiUrl: apiUrl, appTitle: 'FECfile', dcfConverterApiUrl: 'https://dev-efile-api.efdev.fec.gov/dcf_converter/v1', fecApiUrl: 'https://api.open.fec.gov/v1/', userCanSetFilingFrequency: true, - loginDotGovAuthUrl: `${apiBaseUrl}/oidc/authenticate`, - loginDotGovLogoutUrl: `${apiBaseUrl}/oidc/logout`, + loginDotGovAuthUrl: `${apiUrl}/oidc/authenticate`, + loginDotGovLogoutUrl: `${apiUrl}/oidc/logout`, ffapiLoginDotGovCookieName: 'ffapi_login_dot_gov', sessionIdCookieName: 'sessionid', }; diff --git a/front-end/src/environments/environment.cloud.gov.stage.ts b/front-end/src/environments/environment.cloud.gov.stage.ts index 97a62362f..9e2275b93 100644 --- a/front-end/src/environments/environment.cloud.gov.stage.ts +++ b/front-end/src/environments/environment.cloud.gov.stage.ts @@ -2,17 +2,17 @@ // `ng build --configuration=cloud.gov.stage` replaces `environment.ts` with `environment.cloud.gov.stage.ts`. // The list of file replacements can be found in `angular.json`. -const apiBaseUrl = 'https://stage-api.fecfile.fec.gov'; +const apiUrl = 'https://stage-api.fecfile.fec.gov/api/v1'; export const environment = { production: false, name: 'stage', - apiUrl: `${apiBaseUrl}/api/v1`, + apiUrl: apiUrl, appTitle: 'FECfile', dcfConverterApiUrl: 'https://dev-efile-api.efdev.fec.gov/dcf_converter/v1', fecApiUrl: 'https://api.open.fec.gov/v1/', userCanSetFilingFrequency: true, - loginDotGovAuthUrl: `${apiBaseUrl}/oidc/authenticate`, - loginDotGovLogoutUrl: `${apiBaseUrl}/oidc/logout`, + loginDotGovAuthUrl: `${apiUrl}/oidc/authenticate`, + loginDotGovLogoutUrl: `${apiUrl}/oidc/logout`, ffapiLoginDotGovCookieName: 'ffapi_login_dot_gov', sessionIdCookieName: 'sessionid', }; diff --git a/front-end/src/environments/environment.local.ts b/front-end/src/environments/environment.local.ts index c5347953d..1c339f07d 100644 --- a/front-end/src/environments/environment.local.ts +++ b/front-end/src/environments/environment.local.ts @@ -1,14 +1,14 @@ -const apiBaseUrl = 'http://localhost:8080'; +const apiUrl = 'http://localhost:8080/api/v1'; export const environment = { production: false, name: 'local', - apiUrl: `${apiBaseUrl}/api/v1`, + apiUrl: apiUrl, appTitle: 'FECfile', dcfConverterApiUrl: 'https://dev-efile-api.efdev.fec.gov/dcf_converter/v1', fecApiUrl: 'https://api.open.fec.gov/v1/', userCanSetFilingFrequency: true, - loginDotGovAuthUrl: `${apiBaseUrl}/oidc/authenticate`, - loginDotGovLogoutUrl: `${apiBaseUrl}/oidc/logout`, + loginDotGovAuthUrl: `${apiUrl}/oidc/authenticate`, + loginDotGovLogoutUrl: `${apiUrl}/oidc/logout`, ffapiLoginDotGovCookieName: 'ffapi_login_dot_gov', sessionIdCookieName: 'sessionid', };