[Spring Security] Security 기본 API 이해 #1

권영태·2023년 7월 31일

Security

목록 보기
1/6

이 포스트는 정수원님의 스프링 시큐리티 강의 수강 후 정리한 글입니다.

WebSecurityConfigurerAdapter

  • Spring Security의 웹 보안 기능 초기화 및 설정하는 Class다.
  • WebSecurityConfigurerAdapter를 상속 받은 SecurityConfig를 이용해 자신이 원하는 사용자 정의 보안을 만들 수 있다.
  • WebSecurityConfigurerAdapter는 세부적인 보안 기능 설정을 가능하도록 APi를 제공하는 HttpSecurity를 생성한다.
    • API는 Authentication API와 Authorization API로 나뉜다.
http
	.authorizeRequest()		// 요청에 대한 보안검사
    .anyRequest().authenticated()	// 어떠한 요청에도 인증검사
    .and()
    .formLogin();		// formLogin 형태
profile
GitHub : https://github.com/dudxo

0개의 댓글