Selaa lähdekoodia

增加HswebResponseJudgeSupport

zhouhao 7 vuotta sitten
vanhempi
commit
6fd6aa71aa

+ 5 - 0
hsweb-authorization/hsweb-authorization-oauth2/hsweb-authorization-oauth2-client/src/main/java/org/hswebframework/web/authorization/oauth2/client/OAuth2ClientAutoConfiguration.java

@@ -6,6 +6,7 @@ import org.hswebframework.web.authorization.builder.AuthenticationBuilderFactory
 import org.hswebframework.web.authorization.oauth2.client.request.DefaultResponseJudge;
 import org.hswebframework.web.authorization.oauth2.client.request.DefaultResponseJudge;
 import org.hswebframework.web.authorization.oauth2.client.simple.*;
 import org.hswebframework.web.authorization.oauth2.client.simple.*;
 import org.hswebframework.web.authorization.oauth2.client.simple.provider.HswebResponseConvertSupport;
 import org.hswebframework.web.authorization.oauth2.client.simple.provider.HswebResponseConvertSupport;
+import org.hswebframework.web.authorization.oauth2.client.simple.provider.HswebResponseJudgeSupport;
 import org.hswebframework.web.authorization.oauth2.client.simple.request.builder.SimpleOAuth2RequestBuilderFactory;
 import org.hswebframework.web.authorization.oauth2.client.simple.request.builder.SimpleOAuth2RequestBuilderFactory;
 import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
 import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
 import org.springframework.boot.context.properties.ConfigurationProperties;
 import org.springframework.boot.context.properties.ConfigurationProperties;
@@ -23,6 +24,10 @@ public class OAuth2ClientAutoConfiguration {
         return new SimpleRequestBuilder();
         return new SimpleRequestBuilder();
     }
     }
 
 
+    @Bean
+    public HswebResponseJudgeSupport hswebResponseJudgeSupport() {
+        return new HswebResponseJudgeSupport();
+    }
 
 
     @Bean
     @Bean
     @ConditionalOnMissingBean(OAuth2RequestBuilderFactory.class)
     @ConditionalOnMissingBean(OAuth2RequestBuilderFactory.class)

+ 0 - 1
hsweb-authorization/hsweb-authorization-oauth2/hsweb-authorization-oauth2-client/src/main/java/org/hswebframework/web/authorization/oauth2/client/simple/provider/HswebResponseJudgeSupport.java

@@ -28,7 +28,6 @@ import org.springframework.stereotype.Component;
 /**
 /**
  * @author zhouhao
  * @author zhouhao
  */
  */
-@Component
 public class HswebResponseJudgeSupport implements ResponseJudgeForProviderDefinition {
 public class HswebResponseJudgeSupport implements ResponseJudgeForProviderDefinition {
 
 
     @Override
     @Override