목표

<aside> 💡 Spring Security와 JWT를 이용한 사용자 인증 구현

</aside>


Spring Security란?

일반적인 공격에 대한 인증, 권한 부여 및 보호 기능을 제공하는 프레임워크 이다.

Spring Security is a framework that provides authenticationauthorization, and protection against common attacks. -Spring Docs

JWT(Json Web Token)

서로 다른 두 당사자 간에 정보를 JSON객체로 안전하게 전송하기 위한 간결한 표준이다. 토큰은 전자서명을 통해 무결성을 보장하여 신뢰할 수 있다.

JWT는 다음과 같이 세 부분으로 구성되어 있다.

설계