Class JwtAutoConfiguration
java.lang.Object
com.github.catomat0.oauthhelper.jwt.autoconfigure.JwtAutoConfiguration
@AutoConfiguration(after=org.springframework.boot.autoconfigure.data.redis.RedisAutoConfiguration.class)
@ConditionalOnClass(io.jsonwebtoken.Jwts.class)
@ConditionalOnProperty(prefix="jwt",
name="secret-key")
@EnableConfigurationProperties(OahJwtProperties.class)
public class JwtAutoConfiguration
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjwtProvider(OahJwtProperties properties) refreshTokenCookieWriter(OahJwtProperties properties) org.springframework.context.ApplicationListener<org.springframework.boot.context.event.ApplicationReadyEvent>jwt.secret-key 는 세팅됐는데 RedisTemplate 빈이 없으면 refresh token 기능이 조용히 비활성화된다.
-
Constructor Details
-
JwtAutoConfiguration
public JwtAutoConfiguration()
-
-
Method Details
-
jwtProvider
-
refreshTokenCookieWriter
@Bean @ConditionalOnMissingBean @ConditionalOnClass(jakarta.servlet.http.HttpServletResponse.class) public OahRefreshTokenCookieWriter refreshTokenCookieWriter(OahJwtProperties properties) -
refreshTokenRedisMissingWarner
@Bean @ConditionalOnMissingBean(org.springframework.data.redis.core.RedisTemplate.class) public org.springframework.context.ApplicationListener<org.springframework.boot.context.event.ApplicationReadyEvent> refreshTokenRedisMissingWarner()jwt.secret-key 는 세팅됐는데 RedisTemplate 빈이 없으면 refresh token 기능이 조용히 비활성화된다. 이 경우 사용자가 뒤늦게 알아채기 쉬우므로 startup 시점에 명시적으로 경고를 남긴다.
-