Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreBesson committed Dec 30, 2017
2 parents 2761304 + a64630e commit 0e6eeb5
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 10 deletions.
19 changes: 9 additions & 10 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@
<profile.swagger />

<!-- Dependency versions -->
<jhipster-dependencies.version>0.0.5</jhipster-dependencies.version>
<mapstruct.version>1.1.0.Final</mapstruct.version>
<jhipster-dependencies.version>0.1.4</jhipster-dependencies.version>
<mapstruct.version>1.2.0.Final</mapstruct.version>
<!-- The spring-boot version should match the one managed by
https://mvnrepository.com/artifact/io.github.jhipster/jhipster-dependencies/${jhipster-dependencies.version} -->
<spring-boot.version>1.5.7.RELEASE</spring-boot.version>
<spring-boot.version>1.5.9.RELEASE</spring-boot.version>

<!-- Plugin versions -->
<maven-clean-plugin.version>2.6.1</maven-clean-plugin.version>
Expand Down Expand Up @@ -131,11 +131,6 @@
<artifactId>h2</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.awaitility</groupId>
<artifactId>awaitility</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.jayway.jsonpath</groupId>
<artifactId>json-path</artifactId>
Expand All @@ -160,8 +155,8 @@
<artifactId>commons-lang3</artifactId>
</dependency>
<dependency>
<groupId>net.jpountz.lz4</groupId>
<artifactId>lz4</artifactId>
<groupId>org.lz4</groupId>
<artifactId>lz4-java</artifactId>
</dependency>
<dependency>
<groupId>org.assertj</groupId>
Expand Down Expand Up @@ -276,6 +271,7 @@
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-config-server</artifactId>
<version>1.2.3.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
Expand Down Expand Up @@ -630,6 +626,7 @@
<phase>generate-resources</phase>
<configuration>
<arguments>run webpack:build:dev</arguments>
<yarnInheritsProxyConfigFromMaven>false</yarnInheritsProxyConfigFromMaven>
</configuration>
</execution>
</executions>
Expand Down Expand Up @@ -733,6 +730,7 @@
<phase>test</phase>
<configuration>
<arguments>run webpack:test</arguments>
<yarnInheritsProxyConfigFromMaven>false</yarnInheritsProxyConfigFromMaven>
</configuration>
</execution>
<execution>
Expand All @@ -743,6 +741,7 @@
<phase>generate-resources</phase>
<configuration>
<arguments>run webpack:prod</arguments>
<yarnInheritsProxyConfigFromMaven>false</yarnInheritsProxyConfigFromMaven>
</configuration>
</execution>
</executions>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,11 @@ protected void configure(HttpSecurity http) throws Exception {
.authorizeRequests()
.antMatchers("/services/**").authenticated()
.antMatchers("/eureka/**").hasAuthority(AuthoritiesConstants.ADMIN)
.antMatchers("/api/profile-info").permitAll()
.antMatchers("/api/**").authenticated()
.antMatchers("/config/**").hasAuthority(AuthoritiesConstants.ADMIN)
.antMatchers("/management/health").permitAll()
.antMatchers("/management/**").hasAuthority(AuthoritiesConstants.ADMIN)
.anyRequest().permitAll();
}
}
2 changes: 2 additions & 0 deletions src/main/resources/config/application-oauth2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,5 @@ server:
session:
cookie:
http-only: true
# custom session cookie name to prevent conflict with another application on the same domain
name: JSESSIONID_REGISTRY

0 comments on commit 0e6eeb5

Please sign in to comment.