0
이 프로젝트를 실행하는 데 약간의 문제가 있습니다. https://github.com/royclarkson/spring-rest-service-oauth. 나는 그것을 복제 및 mvn spring-boot:run
를 실행하고 Tomcat이 포트 8080에 출시 되 자마자, 나는 브라우저에서 액세스 :스프링 보안이 적용된 REST 보안
http://localhost:8080/greeting
그러나 An Authentication object was not found in the SecurityContextunauthorized
당신이 [이]로 봤어 (http://thoughtfulsoftware.wordpress.com/2013/12/08/adding-security-to-spring-guides-rest-service/를)? –
403 응답은 앱이 실행 중이며 안전하다는 것을 의미합니다 (인증되지 않은 요청에 대해 401을 선호했을 수도 있음). 문제가 무엇입니까? –
@DaveSyer 나쁜데, 나는 올바른 프로세스로 가지 않았다. X_X 어쨌든, Spring Boot GAE * App 엔진과 함께이 포트를 포팅했는데 보안은 http://stackoverflow.com/questions/24109189를 시작하지 않는다./spring-security-authentication-not-firing-up – xybrek