From 49a06a0c60b2cc12d42c2f97fc255676d0618031 Mon Sep 17 00:00:00 2001 From: Laurent Caouissin Date: Thu, 25 Jan 2024 08:47:50 +0100 Subject: [PATCH] fix: default properties --- .../api/application/web/auth/AuthenticationUserHelper.java | 2 +- src/main/resources/application.yaml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/fr/insee/publicenemy/api/application/web/auth/AuthenticationUserHelper.java b/src/main/java/fr/insee/publicenemy/api/application/web/auth/AuthenticationUserHelper.java index baf04bb..203de09 100644 --- a/src/main/java/fr/insee/publicenemy/api/application/web/auth/AuthenticationUserHelper.java +++ b/src/main/java/fr/insee/publicenemy/api/application/web/auth/AuthenticationUserHelper.java @@ -16,7 +16,7 @@ public String getUserToken() { if(getAuthenticationPrincipal() instanceof JwtAuthenticationToken auth) { return auth.getToken().getTokenValue(); } - throw new AuthenticationTokenException("Cannot retrieve token for the user. Ensure you have not disabled oidc with pilotage api enabled"); + throw new AuthenticationTokenException("Cannot retrieve token for the user."); } @Override diff --git a/src/main/resources/application.yaml b/src/main/resources/application.yaml index 1122101..1dbdcdc 100644 --- a/src/main/resources/application.yaml +++ b/src/main/resources/application.yaml @@ -57,7 +57,7 @@ spring: feature: oidc: - enabled: true + enabled: false auth-server-host: https://auth-server.host auth-server-url: ${feature.oidc.auth-server-host}/auth client-id: my-client-id @@ -92,7 +92,7 @@ application: roles: admin: 'admin' designer: 'designer' - corsOrigins: '*' + corsOrigins: pogues: url: https://pogues-url.insee.fr queen: