Switched from the manual implemented authentication-layer to Spring Security
[examples/facebook-app] / src / main / java / de / juplo / yourshouter / WebMvcConfig.java
index 6676ae6..d520d24 100644 (file)
@@ -2,12 +2,9 @@ package de.juplo.yourshouter;
 
 
 
-import javax.inject.Inject;
 
 import org.springframework.context.annotation.Configuration;
-import org.springframework.social.connect.UsersConnectionRepository;
 import org.springframework.web.servlet.config.annotation.EnableWebMvc;
-import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
 import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
 import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;
 
@@ -21,24 +18,6 @@ import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter
 @EnableWebMvc
 public class WebMvcConfig extends WebMvcConfigurerAdapter
 {
-  @Inject
-  private UsersConnectionRepository usersConnectionRepository;
-
-
-  /**
-   * Configure the {@link UserCookieInterceptor} to intercept all requests.
-   *
-   * @param registry
-   *     The {@link InterceptorRegistry} to use.
-   *
-   * @see {@link UserCookieInterceptor}
-   */
-  @Override
-  public void addInterceptors(InterceptorRegistry registry)
-  {
-    registry.addInterceptor(new UserCookieInterceptor(usersConnectionRepository));
-  }
-
   /**
    * {@inheritDoc}
    */