1
0
mirror of synced 2026-02-08 02:17:47 +08:00

支持外部自定义 Cache 缓存 state

This commit is contained in:
Yangkai.Shen
2019-08-02 16:16:22 +08:00
parent 1ea5001700
commit 5b5440d223

View File

@@ -3,7 +3,7 @@ package com.xkcoding.justauth;
import com.xkcoding.justauth.properties.JustAuthProperties;
import me.zhyd.oauth.cache.AuthDefaultStateCache;
import me.zhyd.oauth.cache.AuthStateCache;
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
@@ -28,7 +28,7 @@ public class JustAuthAutoConfiguration {
}
@Bean
@ConditionalOnBean(AuthStateCache.class)
@ConditionalOnMissingBean
public AuthStateCache authStateCache() {
return AuthDefaultStateCache.INSTANCE;
}