mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2024-11-26 17:21:53 +08:00
chore: up justauth 1.0.4
This commit is contained in:
parent
97a91e5454
commit
1184b46c40
@ -44,7 +44,7 @@
|
|||||||
<!-- Bpm 工作流相关 -->
|
<!-- Bpm 工作流相关 -->
|
||||||
<flowable.version>6.8.0</flowable.version>
|
<flowable.version>6.8.0</flowable.version>
|
||||||
<!-- 工具类相关 -->
|
<!-- 工具类相关 -->
|
||||||
<captcha-plus.version>1.0.6</captcha-plus.version>
|
<captcha-plus.version>1.0.7</captcha-plus.version>
|
||||||
<jsoup.version>1.15.4</jsoup.version>
|
<jsoup.version>1.15.4</jsoup.version>
|
||||||
<lombok.version>1.18.28</lombok.version>
|
<lombok.version>1.18.28</lombok.version>
|
||||||
<mapstruct.version>1.5.5.Final</mapstruct.version>
|
<mapstruct.version>1.5.5.Final</mapstruct.version>
|
||||||
@ -65,12 +65,12 @@
|
|||||||
<okio.version>3.0.0</okio.version>
|
<okio.version>3.0.0</okio.version>
|
||||||
<okhttp3.version>4.10.0</okhttp3.version>
|
<okhttp3.version>4.10.0</okhttp3.version>
|
||||||
<commons-io.version>2.11.0</commons-io.version>
|
<commons-io.version>2.11.0</commons-io.version>
|
||||||
<minio.version>8.5.4</minio.version>
|
<minio.version>8.5.5</minio.version>
|
||||||
<aliyun-java-sdk-core.version>4.6.3</aliyun-java-sdk-core.version>
|
<aliyun-java-sdk-core.version>4.6.3</aliyun-java-sdk-core.version>
|
||||||
<aliyun-java-sdk-dysmsapi.version>2.2.1</aliyun-java-sdk-dysmsapi.version>
|
<aliyun-java-sdk-dysmsapi.version>2.2.1</aliyun-java-sdk-dysmsapi.version>
|
||||||
<tencentcloud-sdk-java.version>3.1.758</tencentcloud-sdk-java.version>
|
<tencentcloud-sdk-java.version>3.1.758</tencentcloud-sdk-java.version>
|
||||||
<justauth.version>1.0.3</justauth.version>
|
<justauth.version>1.0.4</justauth.version>
|
||||||
<jimureport.version>1.5.8</jimureport.version>
|
<jimureport.version>1.6.1</jimureport.version>
|
||||||
<xercesImpl.version>2.12.2</xercesImpl.version>
|
<xercesImpl.version>2.12.2</xercesImpl.version>
|
||||||
<weixin-java.version>4.5.0</weixin-java.version>
|
<weixin-java.version>4.5.0</weixin-java.version>
|
||||||
</properties>
|
</properties>
|
||||||
|
@ -1,36 +0,0 @@
|
|||||||
package cn.iocoder.yudao.framework.social.config;
|
|
||||||
|
|
||||||
import cn.iocoder.yudao.framework.social.core.YudaoAuthRequestFactory;
|
|
||||||
import com.xingyuv.http.HttpUtil;
|
|
||||||
import com.xingyuv.http.support.hutool.HutoolImpl;
|
|
||||||
import com.xingyuv.jushauth.cache.AuthStateCache;
|
|
||||||
import com.xingyuv.justauth.autoconfigure.JustAuthProperties;
|
|
||||||
import lombok.extern.slf4j.Slf4j;
|
|
||||||
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;
|
|
||||||
import org.springframework.context.annotation.Primary;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 社交自动装配类
|
|
||||||
*
|
|
||||||
* @author timfruit
|
|
||||||
* @date 2021-10-30
|
|
||||||
*/
|
|
||||||
@Slf4j
|
|
||||||
@AutoConfiguration
|
|
||||||
@EnableConfigurationProperties(JustAuthProperties.class)
|
|
||||||
public class YudaoSocialAutoConfiguration {
|
|
||||||
|
|
||||||
@Bean
|
|
||||||
@Primary
|
|
||||||
@ConditionalOnProperty(prefix = "justauth", value = "enabled", havingValue = "true", matchIfMissing = true)
|
|
||||||
public YudaoAuthRequestFactory yudaoAuthRequestFactory(JustAuthProperties properties, AuthStateCache authStateCache) {
|
|
||||||
// 需要修改 HttpUtil 使用的实现,避免类报错
|
|
||||||
HttpUtil.setHttp(new HutoolImpl());
|
|
||||||
// 创建 YudaoAuthRequestFactory
|
|
||||||
return new YudaoAuthRequestFactory(properties, authStateCache);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
@ -1 +0,0 @@
|
|||||||
cn.iocoder.yudao.framework.social.config.YudaoSocialAutoConfiguration
|
|
Loading…
Reference in New Issue
Block a user