Skip to content

Commit

Permalink
fix: default properties
Browse files Browse the repository at this point in the history
  • Loading branch information
laurentC35 committed Jan 25, 2024
1 parent dfada99 commit 49a06a0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -92,7 +92,7 @@ application:
roles:
admin: 'admin'
designer: 'designer'
corsOrigins: '*'
corsOrigins:
pogues:
url: https://pogues-url.insee.fr
queen:
Expand Down

0 comments on commit 49a06a0

Please sign in to comment.