<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Spring Security on Korobopolly's Dev Blog</title><link>https://korobopolly.github.io/tags/spring-security/</link><description>Recent content in Spring Security on Korobopolly's Dev Blog</description><generator>Hugo</generator><language>ko</language><lastBuildDate>Mon, 16 Feb 2026 13:24:00 +0900</lastBuildDate><atom:link href="https://korobopolly.github.io/tags/spring-security/index.xml" rel="self" type="application/rss+xml"/><item><title>JWT 인증 시스템 - Spring Security 통합, Refresh Token, 보안 설정</title><link>https://korobopolly.github.io/posts/security-jwt-authentication/</link><pubDate>Mon, 16 Feb 2026 13:24:00 +0900</pubDate><guid>https://korobopolly.github.io/posts/security-jwt-authentication/</guid><description>&lt;h2 id="들어가며"&gt;들어가며&lt;/h2&gt;
&lt;p&gt;웹 애플리케이션에서 사용자 인증은 가장 기본적이면서도 중요한 기능입니다. 전통적인 세션 기반 인증 방식은 서버에 상태를 저장하기 때문에 확장성과 분산 환경에서 한계가 있습니다. JWT(JSON Web Token)는 이러한 문제를 해결하는 토큰 기반 인증 방식으로, 최근 REST API와 마이크로서비스 환경에서 널리 사용되고 있습니다.&lt;/p&gt;
&lt;p&gt;이 글에서는 JWT의 원리부터 Spring Boot와 프론트엔드에서의 실전 구현까지 다룹니다.&lt;/p&gt;
&lt;h2 id="세션-기반-vs-토큰-기반-인증"&gt;세션 기반 vs 토큰 기반 인증&lt;/h2&gt;
&lt;h3 id="세션-기반-인증"&gt;세션 기반 인증&lt;/h3&gt;
&lt;p&gt;전통적인 방식으로, 서버가 세션 정보를 메모리나 DB에 저장합니다.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#cdd6f4;background-color:#1e1e2e;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;1. 사용자 로그인 → 서버가 세션 ID 생성 → 메모리/DB 저장
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;2. 클라이언트에 세션 ID 쿠키 전송
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;3. 이후 요청마다 쿠키로 세션 ID 전송 → 서버가 세션 저장소 조회
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;&lt;strong&gt;장점:&lt;/strong&gt;&lt;/p&gt;</description></item></channel></rss>