tech.mhuang.pacebox.springboot.autoconfiguration.auth.AuthProperties Maven / Gradle / Ivy
package tech.mhuang.pacebox.springboot.autoconfiguration.auth;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.boot.context.properties.ConfigurationProperties;
import tech.mhuang.pacebox.springboot.autoconfiguration.ConfigConsts;
import java.util.ArrayList;
import java.util.List;
import java.util.stream.Stream;
/**
* 权限校验
*
* @author mhuang
* @since 1.0.0
*/
@Data
@EqualsAndHashCode(callSuper = false)
@ConfigurationProperties(prefix = ConfigConsts.AUTH)
public class AuthProperties {
/**
* default auth is false
*/
private boolean enable;
/**
* default auth redisdatabase is 0
*/
private Integer redisDataBase = 0;
/**
* default not check url
*/
private boolean checkInterceptorUrl;
/**
* interceptor include url
*/
private List interceptorIncludeUrl = new ArrayList<>();
/**
* interceptor exclude url
*/
private List interceptorExcludeUrl = new ArrayList<>();
/**
* filter include url
*/
private List filterIncludeUrl = Stream.of("/*").toList();
/**
* filter default authType
*/
private String filterDefAuthType;
/**
* security include url
*/
private List securityIncludeUrl = Stream.of("/monitor/**").toList();
}