WIP: Spring-Upgrade auf 2.2.0
authorKai Moritz <kai@juplo.de>
Tue, 29 Oct 2019 08:32:43 +0000 (09:32 +0100)
committerKai Moritz <kai@juplo.de>
Tue, 29 Oct 2019 16:39:14 +0000 (17:39 +0100)
pom.xml
src/main/java/de/juplo/facebook/errors/FacebookErrorsOAuth2AutoConfiguration.java
src/main/java/de/juplo/facebook/errors/FacebookErrorsSpringSocialAutoConfiguration.java

diff --git a/pom.xml b/pom.xml
index c5088ff..3a8720d 100644 (file)
--- a/pom.xml
+++ b/pom.xml
 
     <sonatypeOssDistMgmtSnapshotsUrl>https://oss.sonatype.org/content/repositories/snapshots/</sonatypeOssDistMgmtSnapshotsUrl>
 
+    <spring-social-facebook.version>2.0.3.RELEASE</spring-social-facebook.version>
+
   </properties>
 
 
   <dependencies>
 
     <!-- Spring-Boot-Autoconfiguration -->
+    <dependency>
+      <groupId>org.springframework.security</groupId>
+      <artifactId>spring-security-oauth2-client</artifactId>
+    </dependency>
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-webmvc</artifactId>
@@ -74,8 +80,9 @@
       <optional>true</optional>
     </dependency>
     <dependency>
-      <groupId>org.springframework.security</groupId>
-      <artifactId>spring-security-oauth2-client</artifactId>
+      <groupId>org.springframework.social</groupId>
+      <artifactId>spring-social-facebook</artifactId>
+      <version>${spring-social-facebook.version}</version>
       <optional>true</optional>
     </dependency>
 
index c1647fc..082b0d6 100644 (file)
@@ -7,9 +7,12 @@ import org.springframework.beans.BeansException;
 import org.springframework.beans.factory.config.BeanPostProcessor;
 import org.springframework.boot.autoconfigure.AutoConfigureAfter;
 import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
-import org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration;
+import org.springframework.boot.autoconfigure.security.oauth2.OAuth2AutoConfiguration;
+import org.springframework.boot.autoconfigure.web.WebMvcAutoConfiguration;
 import org.springframework.context.annotation.Bean;
 import org.springframework.context.annotation.Configuration;
+import org.springframework.security.oauth2.client.OAuth2RestTemplate;
+import org.springframework.security.oauth2.client.http.OAuth2ErrorHandler;
 
 
 /**
index 0e542c1..49a3101 100644 (file)
@@ -12,9 +12,12 @@ import org.springframework.beans.factory.support.BeanDefinitionRegistry;
 import org.springframework.beans.factory.support.BeanDefinitionRegistryPostProcessor;
 import org.springframework.boot.autoconfigure.AutoConfigureAfter;
 import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
-import org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration;
+import org.springframework.boot.autoconfigure.social.FacebookAutoConfiguration;
+import org.springframework.boot.autoconfigure.web.WebMvcAutoConfiguration;
 import org.springframework.context.annotation.Bean;
 import org.springframework.context.annotation.Configuration;
+import org.springframework.social.facebook.api.Facebook;
+import org.springframework.social.facebook.api.impl.FacebookTemplate;
 import org.springframework.web.client.ResponseErrorHandler;
 import org.springframework.web.client.RestTemplate;