From 25a4b98197397f52e6cb2753d33d0361e5715a10 Mon Sep 17 00:00:00 2001 From: Loup Theron Date: Fri, 9 Aug 2024 11:39:19 +0200 Subject: [PATCH] Enable oidc in dev --- datascience/docs/source/contributing.rst | 8 ++++++++ frontend/cypress/e2e/backoffice/fleet_segments.spec.ts | 2 +- infra/configurations/application-local.properties | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/datascience/docs/source/contributing.rst b/datascience/docs/source/contributing.rst index 1c4dc886a2..3efd77ba86 100644 --- a/datascience/docs/source/contributing.rst +++ b/datascience/docs/source/contributing.rst @@ -65,6 +65,14 @@ To run the backend for development purpose (with hot-reload), open another termi * During the first run, dependencies will be downloaded * You'll need to install `psql` to interact with the Postgres database +The users for login are: + - User with non super-user access: + - username: "user" + - password: "fish" + - User with super-user access: + - username: "superuser" + - password: "fish" + Then, insert the GIS layers to the postgres database by executing (make sure you have `psql` installed): .. code-block:: shell diff --git a/frontend/cypress/e2e/backoffice/fleet_segments.spec.ts b/frontend/cypress/e2e/backoffice/fleet_segments.spec.ts index aa396bf092..3c5f31b5aa 100644 --- a/frontend/cypress/e2e/backoffice/fleet_segments.spec.ts +++ b/frontend/cypress/e2e/backoffice/fleet_segments.spec.ts @@ -8,7 +8,7 @@ dayjs.extend(utc) const currentYear = dayjs().utc().year() context('Fleet segments', () => { beforeEach(() => { - cy.intercept('GET', `/bff/v1/fleet_segments/backoffice/${currentYear}`).as('fleetSegments') + cy.intercept('GET', `/bff/v1/fleet_segments/${currentYear}`).as('fleetSegments') cy.visit('/backoffice/fleet_segments') cy.wait('@fleetSegments') cy.wait(1000) diff --git a/infra/configurations/application-local.properties b/infra/configurations/application-local.properties index 945466dbb7..c32dba21c7 100644 --- a/infra/configurations/application-local.properties +++ b/infra/configurations/application-local.properties @@ -14,7 +14,7 @@ spring.main.lazy-initialization=true monitorfish.sentry.enabled=false sentry.dsn= -monitorfish.oidc.enabled=false +monitorfish.oidc.enabled=true monitorfish.oidc.issuer-uri=http://localhost:8085/realms/monitor monitorfish.oidc.userinfo-endpoint=/protocol/openid-connect/userinfo