강의

멘토링

커뮤니티

Inflearn Community Q&A

philipwq39632868's profile image
philipwq39632868

asked

Spring Security

Spring Security에 Postman을 쓸려고 하는데 로그인 페이지만 자꾸 나옵니다.

Resolved

Written on

·

2.8K

0

spring-bootjavaSpring Security

Answer 3

0

JJ NAM님의 프로필 이미지
JJ NAM
Questioner

감사합니다

0

leaven님의 프로필 이미지
leaven
Instructor

지금  화면을 보시면 

Authorization Type 이 Basic Auth 로 되어 있습니다.

즉 헤더 값에 Basic 으로 생성되는 토큰값이 자동적으로 붙어서  httpBasic 인증으로 요청하고 있습니다.

그래서 스프링시큐리티가 Form 인증이 아닌 httpBasicAuthenticationFilter 로 처리하는 것 같습니다.

Authorization Type 을 확인해 보시기 바랍니다.

0

JJ NAM님의 프로필 이미지
JJ NAM
Questioner

httpBasic().and()를 설정하니까 작동하네요 이유를 잘 모르겠습니다.

philipwq39632868's profile image
philipwq39632868

asked

Ask a question