thiszhc
2023-06-15 005e7df1b8d7733b459c24104bc775c52e528454
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
package org.dromara.common.social.config.properties;
 
import lombok.Data;
import org.springframework.boot.autoconfigure.cache.CacheProperties;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
 
import java.util.Map;
 
/**
 * Social 配置属性
 * @author thiszhc
 */
@Data
@Component
@ConfigurationProperties(prefix = "justauth")
public class SocialProperties {
 
    /**
     * 是否启用
     */
    private boolean enabled;
 
    /**
     * 授权类型
     */
    private Map<String, SocialLoginConfigProperties> type;
 
    /**
     * 授权过期时间
     */
    private long timeout;
 
    /**
     * 授权缓存配置
     */
    private CacheProperties cache = new CacheProperties();
 
}