Merge branch 'master' into BAEL-5534
This commit is contained in:
@@ -52,6 +52,7 @@ public class SecurityConfiguration {
|
||||
//@formatter:off
|
||||
return http
|
||||
.authorizeHttpRequests(authorizeRequests -> authorizeRequests
|
||||
|
||||
.antMatchers("/api/auth/**", "/swagger-ui-custom.html" ,"/swagger-ui.html", "/swagger-ui/**", "/v3/api-docs/**", "/webjars/**",
|
||||
"/swagger-ui/index.html","/api-docs/**")
|
||||
.permitAll()
|
||||
|
||||
@@ -14,4 +14,3 @@ public class SecurityTokenApplication {
|
||||
SpringApplication.run(SecurityTokenApplication.class);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -43,8 +43,7 @@ class OpenApiJwtIntegrationTest
|
||||
{
|
||||
assertNotNull(authenticationApi);
|
||||
|
||||
ResponseEntity<String> response = this.restTemplate.getForEntity("http://localhost:" + port + "/api-docs",
|
||||
String.class);
|
||||
ResponseEntity<String> response = this.restTemplate.getForEntity("http://localhost:" + port + "/api-docs", String.class);
|
||||
|
||||
assertNotNull(response);
|
||||
assertEquals(HttpStatus.OK, response.getStatusCode());
|
||||
@@ -59,8 +58,8 @@ class OpenApiJwtIntegrationTest
|
||||
{
|
||||
assertNotNull(authenticationApi);
|
||||
|
||||
ResponseEntity<String> response = this.restTemplate.getForEntity("http://localhost:" + port + "/api-docs",
|
||||
String.class);
|
||||
|
||||
ResponseEntity<String> response = this.restTemplate.getForEntity("http://localhost:" + port + "/api-docs", String.class);
|
||||
|
||||
assertNotNull(response);
|
||||
assertNotNull(response.getBody());
|
||||
@@ -75,8 +74,7 @@ class OpenApiJwtIntegrationTest
|
||||
{
|
||||
assertNotNull(authenticationApi);
|
||||
|
||||
ResponseEntity<String> response = this.restTemplate.getForEntity("http://localhost:" + port + "/api-docs",
|
||||
String.class);
|
||||
ResponseEntity<String> response = this.restTemplate.getForEntity("http://localhost:" + port + "/api-docs", String.class);
|
||||
|
||||
assertNotNull(response);
|
||||
assertNotNull(response.getBody());
|
||||
|
||||
Reference in New Issue
Block a user