Skip to content

Commit

Permalink
Merge pull request #2069 from fecgov/feature/892
Browse files Browse the repository at this point in the history
feature/892 - migrate mozilla-django-oidc items into api repo
  • Loading branch information
mjtravers authored Jul 31, 2024
2 parents 40e62ec + f330231 commit 97448dd
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 16 deletions.
8 changes: 4 additions & 4 deletions front-end/src/environments/environment.cloud.gov.dev.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
};
Expand Down
8 changes: 4 additions & 4 deletions front-end/src/environments/environment.cloud.gov.prod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
};
Expand Down
8 changes: 4 additions & 4 deletions front-end/src/environments/environment.cloud.gov.stage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
};
Expand Down
8 changes: 4 additions & 4 deletions front-end/src/environments/environment.local.ts
Original file line number Diff line number Diff line change
@@ -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',
};

0 comments on commit 97448dd

Please sign in to comment.