Skip to content

Commit

Permalink
Merge pull request #134 from Onlineberatung/VIC-1891_Fix_Swagger_UI_a…
Browse files Browse the repository at this point in the history
…fter_CVEs_fixes

fix: enable Swagger UI after CVEs fixes
  • Loading branch information
tkuzynow authored Nov 7, 2022
2 parents 4792268 + 11d9f30 commit ef93ce0
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 14 deletions.
22 changes: 9 additions & 13 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
<openapi.generator.maven.version>6.2.0</openapi.generator.maven.version>
<hibernate-search-orm.version>5.11.10.Final</hibernate-search-orm.version>
<jackson-databind-nullable.version>0.2.3</jackson-databind-nullable.version>
<springfox-swagger2.version>3.0.0</springfox-swagger2.version>
<javax.ws.rs-api.version>2.1.1</javax.ws.rs-api.version>
<commons-lang3.version>3.11</commons-lang3.version>
<liquibase-maven-plugin.version>4.1.1</liquibase-maven-plugin.version>
Expand All @@ -40,6 +39,8 @@
<easy-random-core.version>5.0.0</easy-random-core.version>
<spring-boot-autoconfigure.version>2.7.5</spring-boot-autoconfigure.version>
<liquibase-core.version>4.9.1</liquibase-core.version>
<springfox-boot-starter.version>3.0.0</springfox-boot-starter.version>
<spring-security-core.version>5.7.5</spring-security-core.version>
</properties>

<dependencies>
Expand Down Expand Up @@ -69,6 +70,11 @@
<artifactId>spring-boot-starter-validation</artifactId>
</dependency>

<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-core</artifactId>
<version>${spring-security-core.version}</version>
</dependency>
<!-- Search dependencies -->
<dependency>
<groupId>org.hibernate</groupId>
Expand All @@ -91,18 +97,8 @@
<!-- SpringFox: generate YAML file from POJOs and generate documentation -->
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-swagger2</artifactId>
<version>${springfox-swagger2.version}</version>
</dependency>
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-bean-validators</artifactId>
<version>${springfox-swagger2.version}</version>
</dependency>
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-swagger-ui</artifactId>
<version>${springfox-swagger2.version}</version>
<artifactId>springfox-boot-starter</artifactId>
<version>${springfox-boot-starter.version}</version>
</dependency>

<!-- Keycloak dependencies -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public class SecurityConfig extends KeycloakWebSecurityConfigurerAdapter {

public static final String[] WHITE_LIST =
new String[]{"/agencies/docs", "/agencies/docs/**", "/v2/api-docs", "/configuration/ui",
"/swagger-resources/**", "/configuration/security", "/swagger-ui.html", "/webjars/**"};
"/swagger-resources/**", "/configuration/security", "/swagger-ui.html", "/swagger-ui/**", "/webjars/**"};

@SuppressWarnings("unused")
private final KeycloakClientRequestFactory keycloakClientRequestFactory;
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ server.port=8080

spring.mvc.locale=de_DE
spring.jackson.time-zone=Europe/Berlin
spring.mvc.pathmatch.matching-strategy=ant_path_matcher

# Logging: SLF4J (via Lombok)
logging.file.name=log/agencyservice.log
Expand Down

0 comments on commit ef93ce0

Please sign in to comment.