Skip to content

Commit eccc8e3

Browse files
Rodrigo Dos SantosRodrigo Dos Santos
authored andcommitted
Fixed redis toggle feature - build authentication-service
1 parent e3d8976 commit eccc8e3

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

authentication-common/src/main/java/com/microservice/authentication/autoconfigure/AuthenticationCommonConfiguration.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ public OAuth2AccessToken enhance(
162162
}
163163

164164
@Profile({"!dev & auth"})
165+
@ConditionalOnMissingBean
165166
@Bean
166167
KeyPair getKeyPair(AuthenticationProperties authenticationProperties) throws Exception {
167168
AuthenticationProperties.Jwt jwt = authenticationProperties.getJwt();

authentication-service/src/main/java/com/microservice/authentication/config/RedisConfiguration.java

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,20 +25,13 @@
2525

2626
@ConditionalOnProperty(value = "com.microservice.authentication.redis.enabled", havingValue = "true", matchIfMissing = true)
2727
@Configuration
28+
@EnableRedisHttpSession
2829
@Slf4j
2930
public class RedisConfiguration {
3031
public RedisConfiguration() {
3132
log.info("RedisConfiguration:constructor");
3233
}
3334

34-
@Configuration
35-
@EnableRedisHttpSession
36-
static class HttpRedisConfiguration {
37-
HttpRedisConfiguration() {
38-
log.info("HttpRedisConfiguration:constructor");
39-
}
40-
}
41-
4235
@Primary
4336
@Bean
4437
RedisIndexedSessionRepository redisIndexedSessionRepository(RedisTemplate redisTemplate) {

0 commit comments

Comments
 (0)