| | |
| | | import org.dromara.common.social.config.properties.SocialProperties; |
| | | import org.dromara.common.social.utils.AuthRedisStateCache; |
| | | import org.springframework.boot.autoconfigure.AutoConfiguration; |
| | | import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; |
| | | import org.springframework.boot.context.properties.EnableConfigurationProperties; |
| | | import org.springframework.context.annotation.Bean; |
| | | |
| | |
| | | public class SocialConfig { |
| | | |
| | | @Bean |
| | | public AuthStateCache redis() { |
| | | return new AuthRedisStateCache(); |
| | | public AuthStateCache authStateCache(SocialProperties socialProperties) { |
| | | return new AuthRedisStateCache(socialProperties); |
| | | } |
| | | |
| | | } |