From 2b18a0a9f0700099ec1fd262a59a603ab4136550 Mon Sep 17 00:00:00 2001
From: HanSeungYeon <48237976+ahah525@users.noreply.github.com>
Date: Fri, 11 Nov 2022 00:32:08 +0900
Subject: [PATCH] =?UTF-8?q?#31=20-=20Docs:=204Week=5FRecord=20=EC=9E=91?=
=?UTF-8?q?=EC=84=B1?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
"4Week_Record/4Week_\355\225\234\354\212\271\354\227\260.md" | 2 ++
1 file changed, 2 insertions(+)
diff --git "a/4Week_Record/4Week_\355\225\234\354\212\271\354\227\260.md" "b/4Week_Record/4Week_\355\225\234\354\212\271\354\227\260.md"
index b3dad81..b3e345b 100644
--- "a/4Week_Record/4Week_\355\225\234\354\212\271\354\227\260.md"
+++ "b/4Week_Record/4Week_\355\225\234\354\212\271\354\227\260.md"
@@ -77,6 +77,7 @@
### ๐ ์๊ตฌ์ฌํญ ๋ฐ ์ ๊ทผ๋ฐฉ๋ฒ ์ ๋ฆฌ ๐
### JWT ํ๋ก์ธ์ค
+
1. ์ฌ์ฉ์๊ฐ `username, password` ๋ฅผ ์
๋ ฅํ๊ณ ์๋ฒ๋ก ๋ก๊ทธ์ธ ์์ฒญ์ ๋ณด๋ธ๋ค.
2. ๋ก๊ทธ์ธ ์ฑ๊ณต์ ์๋ฒ๋ ๋น๋ฐํค๋ก ์๋ช
์ ํ๊ณ ๊ณต๊ฐํค๋ก ์ํธํ ํ์ฌ `Access Token` ์ ๋ฐ๊ธํ๋ค.
3. `์๋ต Header` ์ `Access Token` ์ ๋ด์ ํด๋ผ์ด์ธํธ์๊ฒ ๋ณด๋ธ๋ค.
@@ -237,6 +238,7 @@ public Map getClaims(String accessToken) {
```
- jwt ๋ฐฉ์ ๋ก๊ทธ์ธ์ ์ํด `formLogin.disable()` ์ค์ ์ ํด์ฃผ์ด์ผ ํ๋ค.
- ํ๋๋ฉ์ธ์์ API ํธ์ถ์ ํ๊ธฐ ์ํด `cors ํ์ฉ` ์ค์ ์ ํด์ฃผ์ด์ผ ํ๋ค.
+ - [cors ์ค๋ฅ ํด๊ฒฐ](https://github.com/likelion-backendschool/FinalProject_JuMinJi_team7/pull/25)
- `/api/*/member/login` ์์ฒญ ์ธ ๋ชจ๋ `/api/**` ์์ฒญ์ ์ธ์ฆ๋ ์ฌ์ฉ์์ฌ์ผ ํ๋ค.
- ์ง์ ๋ ํํฐ๋ณด๋ค ๋จผ์ ์คํ๋๋๋ก `jwtAuthorizationFilter` (์ปค์คํ
ํํฐ) ๋ฅผ ์ถ๊ฐํ๋ค.