BAEL-315 Adding spring session as mechanism for sharing authentication tokens created by the edge service.
|
@ -4,10 +4,19 @@ server.port=8080
|
||||||
eureka.client.region = default
|
eureka.client.region = default
|
||||||
eureka.client.registryFetchIntervalSeconds = 5
|
eureka.client.registryFetchIntervalSeconds = 5
|
||||||
|
|
||||||
|
management.security.sessions=always
|
||||||
|
|
||||||
zuul.routes.resource.path=/resource/**
|
zuul.routes.resource.path=/resource/**
|
||||||
zuul.routes.resource.sensitiveHeaders=Set-Cookie,Authorization,Cookie
|
zuul.routes.resource.sensitive-headers=Set-Cookie,Authorization
|
||||||
hystrix.command.resource.execution.isolation.thread.timeoutInMilliseconds: 5000
|
hystrix.command.resource.execution.isolation.thread.timeoutInMilliseconds=600000
|
||||||
|
|
||||||
|
zuul.routes.discovery.path=/discovery/**
|
||||||
|
zuul.routes.discovery.sensitive-headers=Set-Cookie,Authorization
|
||||||
|
hystrix.command.discovery.execution.isolation.thread.timeoutInMilliseconds=600000
|
||||||
|
|
||||||
|
logging.level.org.springframework.web.=debug
|
||||||
|
logging.level.org.springframework.security=debug
|
||||||
|
logging.level.org.springframework.cloud.netflix.zuul=debug
|
||||||
|
|
||||||
spring.redis.host=localhost
|
spring.redis.host=localhost
|
||||||
spring.redis.port=6379
|
spring.redis.port=6379
|
||||||
|
|
||||||
|
|
|
@ -8,5 +8,10 @@ resource.admin.returnString=hello cloud admin
|
||||||
eureka.client.region = default
|
eureka.client.region = default
|
||||||
eureka.client.registryFetchIntervalSeconds = 5
|
eureka.client.registryFetchIntervalSeconds = 5
|
||||||
|
|
||||||
|
management.security.sessions=never
|
||||||
|
|
||||||
|
logging.level.org.springframework.web.=debug
|
||||||
|
logging.level.org.springframework.security=debug
|
||||||
|
|
||||||
spring.redis.host=localhost
|
spring.redis.host=localhost
|
||||||
spring.redis.port=6379
|
spring.redis.port=6379
|
||||||
|
|
|
@ -24,6 +24,7 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
|
||||||
http
|
http
|
||||||
.authorizeRequests()
|
.authorizeRequests()
|
||||||
.antMatchers("/resource/hello/cloud").permitAll()
|
.antMatchers("/resource/hello/cloud").permitAll()
|
||||||
|
.antMatchers("/static/eureka/**").hasRole("ADMIN")
|
||||||
.anyRequest().authenticated()
|
.anyRequest().authenticated()
|
||||||
.and()
|
.and()
|
||||||
.formLogin()
|
.formLogin()
|
||||||
|
|
|
@ -5,14 +5,3 @@ spring.cloud.config.username=configUser
|
||||||
spring.cloud.config.password=configPassword
|
spring.cloud.config.password=configPassword
|
||||||
|
|
||||||
eureka.client.serviceUrl.defaultZone=http://discUser:discPassword@localhost:8082/eureka/
|
eureka.client.serviceUrl.defaultZone=http://discUser:discPassword@localhost:8082/eureka/
|
||||||
|
|
||||||
management.security.sessions=always
|
|
||||||
|
|
||||||
zuul.routes.resource.path=/resource/**
|
|
||||||
zuul.routes.resource.sensitive-headers=Set-Cookie,Authorization
|
|
||||||
zuul.routes.resource.retryable=true
|
|
||||||
hystrix.command.resource.execution.isolation.thread.timeoutInMilliseconds=600000
|
|
||||||
|
|
||||||
logging.level.org.springframework.web.=debug
|
|
||||||
logging.level.org.springframework.security=debug
|
|
||||||
logging.level.org.springframework.cloud.netflix.zuul=debug
|
|
After Width: | Height: | Size: 83 KiB |
After Width: | Height: | Size: 362 KiB |
After Width: | Height: | Size: 109 KiB |
After Width: | Height: | Size: 8.9 KiB |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 3.7 KiB |
After Width: | Height: | Size: 6.1 KiB |
|
@ -5,8 +5,3 @@ spring.cloud.config.username=configUser
|
||||||
spring.cloud.config.password=configPassword
|
spring.cloud.config.password=configPassword
|
||||||
|
|
||||||
eureka.client.serviceUrl.defaultZone=http://discUser:discPassword@localhost:8082/eureka/
|
eureka.client.serviceUrl.defaultZone=http://discUser:discPassword@localhost:8082/eureka/
|
||||||
|
|
||||||
management.security.sessions=never
|
|
||||||
|
|
||||||
logging.level.org.springframework.web.=debug
|
|
||||||
logging.level.org.springframework.security=debug
|
|