title: Redirects to login AuthServer Spring oauth2 not found
body: <p>I have an AuthorizationServer with spring in one app and I want to authorize and authenticate calls with Bearer tokens in my api rest.</p>
  
  <p>The comunications goes well ( I think ) but when the token is valid shows:</p>
  
  <pre><code>{
    "timestamp": 1466606797251,
    "status": 404,
    "error": "Not Found",
    "message": "No message available",
    "path": "/api/authorizationServer/login"
  }
  </code></pre>
  
  <p>when token is invalid saids:</p>
  
  <pre><code>{
    "error": "invalid_token",
    "error_description": "Access token expired: cc281c6a-aeef-401c-879a-624c94058c7b"
  }
  </code></pre>
  
  <p>Why shows not found?</p>
  
  <p>EDIT:</p>
  
  <p>My rest service is pretty simple:</p>
  
  <p>Application:</p>
  
  <pre><code>@SpringBootApplication
  @EnableOAuth2Sso
  public class Application extends SpringBootServletInitializer {
  
      public static void main(String[] args) {
          SpringApplication.run(Application.class, args);
      }
  
  }
  </code></pre>
  
  <p>end point:</p>
  
  <pre><code>@Controller
  public class HelloController {
  
      @RequestMapping(value = "/hello",
              method = RequestMethod.GET)
      @ResponseBody
      public String sayHello() {
          return "Hello User!";
      }
  }
  </code></pre>
  
  <p>config:</p>
  
  <pre><code>security:
    oauth2:
      client:
        clientId: client
        clientSecret: secret
        accessTokenUri: http://localhost:8080/api/v1/secure/oauth/token
        userAuthorizationUri: http://localhost:8080/api/v1/secure/oauth/authorize
        clientAuthenticationScheme: header
      resource:
        tokenInfoUri: http://localhost:8080/api/v1/secure/oauth/check_token
  server:
    port: 8082
    contextPath: /api/v1/auth
  </code></pre>