package com.yami.trading.security.common.adapter;
|
|
import org.slf4j.Logger;
|
import org.slf4j.LoggerFactory;
|
|
import java.util.Collections;
|
import java.util.List;
|
|
/**
|
* 授权过滤器的配置
|
*
|
* @author admin
|
*/
|
public class DefaultAuthConfigAdapter implements AuthConfigAdapter {
|
private static final Logger logger = LoggerFactory.getLogger(DefaultAuthConfigAdapter.class);
|
|
public DefaultAuthConfigAdapter() {
|
logger.info("not implement other AuthConfigAdapter, use DefaultAuthConfigAdapter... all url need auth...");
|
}
|
|
@Override
|
public List<String> pathPatterns() {
|
return Collections.singletonList("/*");
|
}
|
|
@Override
|
public List<String> excludePathPatterns() {
|
return Collections.emptyList();
|
}
|
|
@Override
|
public List<String> maybeAuthUri() {
|
return Collections.emptyList();
|
}
|
}
|