提交 887528ec 编写于 作者: zhouweidong's avatar zhouweidong

oauth2开关

上级 f6def8a9
......@@ -29,6 +29,7 @@ import org.springframework.security.oauth2.provider.token.TokenStore;
import org.springframework.security.oauth2.provider.token.store.JwtAccessTokenConverter;
import org.springframework.security.oauth2.provider.token.store.JwtTokenStore;
import org.springframework.security.web.authentication.preauth.PreAuthenticatedAuthenticationToken;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.security.web.util.matcher.RequestMatcher;
import org.springframework.util.StringUtils;
......@@ -41,6 +42,7 @@ import java.util.Enumeration;
@Configuration
@EnableResourceServer
@Slf4j
@ConditionalOnProperty(name = "ibiz.oauth2.enable", havingValue = "true")
public class OAuth2SecurityConfig extends ResourceServerConfigurerAdapter {
@Value("${r'${ibiz.oauth2.header:accesstoken}'}")
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册