JunsuLime / spring-cloud-native-explorer

Spring cloud explorer
1 stars 0 forks source link

Spring Security 를 사용하여 BasicAuth 를 적용해보자. #47

Open JunsuLime opened 2 years ago

JunsuLime commented 2 years ago

https://docs.spring.io/spring-security/reference/servlet/authentication/passwords/basic.html

보기전에 architecture 부터 파악해보자. https://docs.spring.io/spring-security/reference/servlet/architecture.html

in-memory 기반 authentication 설정은 어케 하는가? https://docs.spring.io/spring-security/reference/servlet/authentication/passwords/in-memory.html#page-title

UserDetailService 는 https://docs.spring.io/spring-security/reference/servlet/authentication/passwords/user-details-service.html#page-title 이걸 참고해서 설명을 보자.

This is only used if the AuthenticationManagerBuilder has not been populated and no AuthenticationProviderBean is defined. bean 으로 등록하는케이스를 말하는듯

JunsuLime commented 2 years ago

https://docs.spring.io/spring-security/reference/servlet/configuration/java.html 설정할때는 이걸 살살 보자

JunsuLime commented 2 years ago

WebSecurityConfigurerAdapter.getHttp

JunsuLime commented 2 years ago

configure(AuthenticationManagerBuilder auth) 메서드 설명을 상세히 읽어보자.