Skip to content

Commit

Permalink
feat: remoe sugoi (#856)
Browse files Browse the repository at this point in the history
  • Loading branch information
EmmanuelDemey authored Jan 17, 2025
1 parent 5e9624a commit 3033bdb
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 8 deletions.
4 changes: 0 additions & 4 deletions src/main/java/fr/insee/rmes/webservice/PublicResources.java
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ public class PublicResources extends GenericResources {
private final String maxLengthScopeNote;
private final String defaultMailSender;
private final String defaultContributor;
private final String sugoiUi;
private final String appHost;
private final List<String> activeModules;
private final List<String> modules;
Expand All @@ -67,7 +66,6 @@ public PublicResources(@Autowired StampsService stampsService,
@Value("${fr.insee.rmes.bauhaus.concepts.maxLengthScopeNote}") String maxLengthScopeNote,
@Value("${fr.insee.rmes.bauhaus.concepts.defaultMailSender}") String defaultMailSender,
@Value("${fr.insee.rmes.bauhaus.concepts.defaultContributor}") String defaultContributor,
@Value("${fr.insee.rmes.bauhaus.sugoi.ui}") String sugoiUi,
@Value("${fr.insee.rmes.bauhaus.appHost}") String appHost,
@Value("${fr.insee.rmes.bauhaus.activeModules}") List<String> activeModules,
@Value("${fr.insee.rmes.bauhaus.modules}") List<String> modules,
Expand All @@ -79,7 +77,6 @@ public PublicResources(@Autowired StampsService stampsService,
this.maxLengthScopeNote = maxLengthScopeNote;
this.defaultMailSender = defaultMailSender;
this.defaultContributor = defaultContributor;
this.sugoiUi = sugoiUi;
this.appHost = appHost;
this.activeModules=activeModules;
this.modules = modules;
Expand All @@ -92,7 +89,6 @@ public ResponseEntity<Object> getProperties() throws RmesException {
JSONObject props = new JSONObject();
try {
props.put("appHost", this.appHost);
props.put("authorizationHost", this.sugoiUi);
props.put("defaultContributor", this.defaultContributor);
props.put("defaultMailSender", this.defaultMailSender);
props.put("maxLengthScopeNote", this.maxLengthScopeNote);
Expand Down
2 changes: 0 additions & 2 deletions src/main/resources/bauhaus-local-dev.properties
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ fr.insee.rmes.bauhaus.sesame.publication.baseURI = http://id.insee.fr/
fr.insee.rmes.bauhaus.sesame.publication.interne.sesameServer = http://localhost:7200
fr.insee.rmes.bauhaus.sesame.publication.interne.repository = publicationinterne

fr.insee.rmes.bauhaus.sugoi.ui = XXX

# Keycloak token
jwt.id-claim = preferred_username
jwt.role-claim = realm_access
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
"fr.insee.rmes.bauhaus.concepts.maxLengthScopeNote=35",
"fr.insee.rmes.bauhaus.concepts.defaultMailSender=email",
"fr.insee.rmes.bauhaus.concepts.defaultContributor=stamp",
"fr.insee.rmes.bauhaus.sugoi.ui=sugoUi",
"fr.insee.rmes.bauhaus.appHost=http://localhost",
"fr.insee.rmes.bauhaus.activeModules=operations,concepts",
"fr.insee.rmes.bauhaus.modules=operations,concepts"
Expand Down Expand Up @@ -60,7 +59,6 @@ void shouldReturnTheInitPayload() throws Exception {
.andExpect(status().isOk())
.andExpect(content().json("""
{
"authorizationHost":"sugoUi",
"defaultMailSender":"email",
"lg2":"en",
"lg1":"fr",
Expand Down

0 comments on commit 3033bdb

Please sign in to comment.