개발자의 오르막
An Authentication object was not found in the SecurityContext 본문
Trouble Shouting
An Authentication object was not found in the SecurityContext
계단 2020. 8. 26. 16:37# Error Message
An Authentication object was not found in the SecurityContext
원래 잘 되던 부분이 Post Mapping 을 날리는 부분에서 이런 오류가 났다.
아예 컨트롤러 자체를 타지 않는 것을 보아 시큐러티 환경설정 문제인듯 싶다.
일단 해당 위치는 로그인을 하지 않은 사람이 글을 쓸 수 있는 위치이다.
파트너 회원이 되기 위해 로그인 창에서 모달로 입점문의 글을 쓰는 위치이다.
accessToken 이 없어서 그럴 수 있다고 생각하긴 하는데,,
기존에는
@Override
public void configure(WebSecurity web) throws Exception {
web.ignoring().antMatchers("/api/v1/signup");
}
이 부분처럼 해당 url 을 ignore 시키는 형태인데, 어느 순간부터 위의 에러메시지가 뜨기 시작했다.
'Trouble Shouting' 카테고리의 다른 글
Multimodule Querydsl 환경설정 (0) | 2020.11.16 |
---|---|
[#Error NginX, SpringBoot ] 스프링 시큐리티 Https, ngnix 설정 (0) | 2020.05.13 |
[SpringBoot] getResultList Error [To_CHAR] (0) | 2020.03.03 |
Tinymce & SpringBoot 웹 및 모바일 게시판 에디터 파일업로드 (3) | 2020.02.24 |
[SpringBoot] 컴파일 오류. WindowDefender 를 확인하라 (0) | 2019.11.04 |
Comments