Skip to content

Commit

Permalink
Enable oidc in dev
Browse files Browse the repository at this point in the history
  • Loading branch information
louptheron committed Aug 12, 2024
1 parent 086c1b5 commit 25a4b98
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
8 changes: 8 additions & 0 deletions datascience/docs/source/contributing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion frontend/cypress/e2e/backoffice/fleet_segments.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion infra/configurations/application-local.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 25a4b98

Please sign in to comment.