title: Browser does not redirects me to Twitter for authorization
body: <p>My problem is that my view does not redirect me to the <code>Twitter</code> authentication page.</p>
  
  <p>I am doing this tutorial: <a href="https://spring.io/guides/gs/accessing-twitter/" rel="nofollow noreferrer">https://spring.io/guides/gs/accessing-twitter/</a></p>
  
  <p>When I run <code>localhost:8080/connect/twitter</code> I get this view: </p>
  
  <pre><code>&lt;html&gt;
      &lt;head&gt;
          &lt;title&gt;Hello Twitter&lt;/title&gt;
      &lt;/head&gt;
      &lt;body&gt;
          &lt;h3&gt;Connect to Twitter&lt;/h3&gt;
          &lt;span th:if="${social_provider_error}"&gt;Provider error (maybe you need to configure the app id and secret?)&lt;/span&gt;
          &lt;form action="/connect/twitter" method="POST"&gt;
              &lt;div class="formInfo"&gt;
                  &lt;p&gt;You aren't connected to Twitter yet. Click the button to connect this application with your Twitter account.&lt;/p&gt;
              &lt;/div&gt;
              &lt;p&gt;&lt;button type="submit"&gt;Connect to Twitter&lt;/button&gt;&lt;/p&gt;
          &lt;/form&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>When I hit <code>submit</code> I am recieving the <code>social_provider_error</code>. Any ideas how to fix this issue?</p>
  
  <p>My <code>application.proporties</code> which is located in <code>src/main/resources</code> :</p>
  
  <pre><code>spring.social.twitter.app-id=XG5...
  spring.social.twitter.app-secret=i0T...
  </code></pre>
  
  <p><strong>application.java</strong></p>
  
  <pre><code>package application;
  
  import org.springframework.boot.SpringApplication;
  import org.springframework.boot.autoconfigure.SpringBootApplication;
  
  @SpringBootApplication
  public class Application {
  
      public static void main(String[] args) {
          SpringApplication.run(Application.class, args);
      }
  
  }
  </code></pre>
  
  <p><strong>Controller.java</strong></p>
  
  <pre><code>package controller;
  
  import javax.inject.Inject;
  
  import org.springframework.social.connect.ConnectionRepository;
  import org.springframework.social.twitter.api.CursoredList;
  import org.springframework.social.twitter.api.Twitter;
  import org.springframework.social.twitter.api.TwitterProfile;
  import org.springframework.stereotype.Controller;
  import org.springframework.ui.Model;
  import org.springframework.web.bind.annotation.RequestMapping;
  import org.springframework.web.bind.annotation.RequestMethod;
  
  @Controller
  @RequestMapping("/")
  public class TwitterController {
  
      private Twitter twitter;
  
      private ConnectionRepository connectionRepository;
  
      @Inject
      public TwitterController(Twitter twitter, ConnectionRepository connectionRepository) {
          this.twitter = twitter;
          this.connectionRepository = connectionRepository;
      }
  
      @RequestMapping(method=RequestMethod.GET)
      public String helloTwitter(Model model) {
          if (connectionRepository.findPrimaryConnection(Twitter.class) == null) {
              return "redirect:/connect/twitter";
          }
  
          model.addAttribute(twitter.userOperations().getUserProfile());
          CursoredList&lt;TwitterProfile&gt; friends = twitter.friendOperations().getFriends();
          model.addAttribute("friends", friends);
          return "hello";
      }
  
  }
  </code></pre>