Browse Source

๐ŸŒ Update Korean translation for `docs/ko/docs/tutorial/security/simple-oauth2.md` (#13335)

pull/13378/head
Lee Yesong (์ด์˜ˆ์†ก) 2 months ago
committed by GitHub
parent
commit
39b4692525
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 18
      docs/ko/docs/tutorial/security/simple-oauth2.md

18
docs/ko/docs/tutorial/security/simple-oauth2.md

@ -32,7 +32,7 @@ OAuth2๋Š” (์šฐ๋ฆฌ๊ฐ€ ์‚ฌ์šฉํ•˜๊ณ  ์žˆ๋Š”) "ํŒจ์Šค์›Œ๋“œ ํ”Œ๋กœ์šฐ"์„ ์‚ฌ์šฉํ• 
* `instagram_basic`์€ ํŽ˜์ด์Šค๋ถ/์ธ์Šคํƒ€๊ทธ๋žจ์—์„œ ์‚ฌ์šฉํ•ฉ๋‹ˆ๋‹ค.
* `https://www.googleapis.com/auth/drive`๋Š” Google์—์„œ ์‚ฌ์šฉํ•ฉ๋‹ˆ๋‹ค.
/// ์ •๋ณด
/// info | ์ •๋ณด
OAuth2์—์„œ "๋ฒ”์œ„"๋Š” ํ•„์š”ํ•œ ํŠน์ • ๊ถŒํ•œ์„ ์„ ์–ธํ•˜๋Š” ๋ฌธ์ž์—ด์ž…๋‹ˆ๋‹ค.
@ -61,7 +61,7 @@ OAuth2์˜ ๊ฒฝ์šฐ ๋ฌธ์ž์—ด์ผ ๋ฟ์ž…๋‹ˆ๋‹ค.
* `scope`๋Š” ์„ ํƒ์ ์ธ ํ•„๋“œ๋กœ ๊ณต๋ฐฑ์œผ๋กœ ๊ตฌ๋ถ„๋œ ๋ฌธ์ž์—ด๋กœ ๊ตฌ์„ฑ๋œ ํฐ ๋ฌธ์ž์—ด์ž…๋‹ˆ๋‹ค.
* `grant_type`(์„ ํƒ์ ์œผ๋กœ ์‚ฌ์šฉ).
/// ํŒ
/// tip | ํŒ
OAuth2 ์‚ฌ์–‘์€ ์‹ค์ œ๋กœ `password`๋ผ๋Š” ๊ณ ์ • ๊ฐ’์ด ์žˆ๋Š” `grant_type` ํ•„๋“œ๋ฅผ *์š”๊ตฌ*ํ•˜์ง€๋งŒ `OAuth2PasswordRequestForm`์€ ์ด๋ฅผ ๊ฐ•์š”ํ•˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค.
@ -72,7 +72,7 @@ OAuth2 ์‚ฌ์–‘์€ ์‹ค์ œ๋กœ `password`๋ผ๋Š” ๊ณ ์ • ๊ฐ’์ด ์žˆ๋Š” `grant_type`
* `client_id`(์„ ํƒ์ ์œผ๋กœ ์‚ฌ์šฉ) (์˜ˆ์ œ์—์„œ๋Š” ํ•„์š”ํ•˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค).
* `client_secret`(์„ ํƒ์ ์œผ๋กœ ์‚ฌ์šฉ) (์˜ˆ์ œ์—์„œ๋Š” ํ•„์š”ํ•˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค).
/// ์ •๋ณด
/// info | ์ •๋ณด
`OAuth2PasswordRequestForm`์€ `OAuth2PasswordBearer`์™€ ๊ฐ™์ด **FastAPI**์— ๋Œ€ํ•œ ํŠน์ˆ˜ ํด๋ž˜์Šค๊ฐ€ ์•„๋‹™๋‹ˆ๋‹ค.
@ -86,7 +86,7 @@ OAuth2 ์‚ฌ์–‘์€ ์‹ค์ œ๋กœ `password`๋ผ๋Š” ๊ณ ์ • ๊ฐ’์ด ์žˆ๋Š” `grant_type`
### ํผ ๋ฐ์ดํ„ฐ ์‚ฌ์šฉํ•˜๊ธฐ
/// ํŒ
/// tip | ํŒ
์ข…์†์„ฑ ํด๋ž˜์Šค `OAuth2PasswordRequestForm`์˜ ์ธ์Šคํ„ด์Šค์—๋Š” ๊ณต๋ฐฑ์œผ๋กœ ๊ตฌ๋ถ„๋œ ๊ธด ๋ฌธ์ž์—ด์ด ์žˆ๋Š” `scope` ์†์„ฑ์ด ์—†๊ณ  ๋Œ€์‹  ์ „์†ก๋œ ๊ฐ ๋ฒ”์œ„์— ๋Œ€ํ•œ ์‹ค์ œ ๋ฌธ์ž์—ด ๋ชฉ๋ก์ด ์žˆ๋Š” `scopes` ์†์„ฑ์ด ์žˆ์Šต๋‹ˆ๋‹ค.
@ -126,7 +126,7 @@ OAuth2 ์‚ฌ์–‘์€ ์‹ค์ œ๋กœ `password`๋ผ๋Š” ๊ณ ์ • ๊ฐ’์ด ์žˆ๋Š” `grant_type`
๋”ฐ๋ผ์„œ ํ•ด์ปค๋Š” ๋‹ค๋ฅธ ์‹œ์Šคํ…œ์—์„œ ๋™์ผํ•œ ์•”ํ˜ธ๋ฅผ ์‚ฌ์šฉํ•˜๋ ค๊ณ  ์‹œ๋„ํ•  ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค(๋งŽ์€ ์‚ฌ์šฉ์ž๊ฐ€ ๋ชจ๋“  ๊ณณ์—์„œ ๋™์ผํ•œ ์•”ํ˜ธ๋ฅผ ์‚ฌ์šฉํ•˜๋ฏ€๋กœ ์ด๋Š” ์œ„ํ—˜ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค).
//// tab | PํŒŒ์ด์ฌ 3.7 ์ด์ƒ
//// tab | ํŒŒ์ด์ฌ 3.7 ์ด์ƒ
{* ../../docs_src/security/tutorial003.py hl[80:83] *}
@ -150,7 +150,7 @@ UserInDB(
)
```
/// ์ •๋ณด
/// info | ์ •๋ณด
`**user_dict`์— ๋Œ€ํ•œ ์ž์„ธํ•œ ์„ค๋ช…์€ [**์ถ”๊ฐ€ ๋ชจ๋ธ** ๋ฌธ์„œ](../extra-models.md#about-user_indict){.internal-link target=_blank}๋ฅผ ๋‹ค์‹œ ์ฝ์–ด๋ด…์‹œ๋‹ค.
@ -166,7 +166,7 @@ UserInDB(
์ด ๊ฐ„๋‹จํ•œ ์˜ˆ์ œ์—์„œ๋Š” ์™„์ „ํžˆ ์•ˆ์ „ํ•˜์ง€ ์•Š๊ณ , ๋™์ผํ•œ `username`์„ ํ† ํฐ์œผ๋กœ ๋ฐ˜ํ™˜ํ•ฉ๋‹ˆ๋‹ค.
/// ํŒ
/// tip | ํŒ
๋‹ค์Œ ์žฅ์—์„œ๋Š” ํŒจ์Šค์›Œ๋“œ ํ•ด์‹ฑ ๋ฐ <abbr title="JSON Web Tokens">JWT</abbr> ํ† ํฐ์„ ์‚ฌ์šฉํ•˜์—ฌ ์‹ค์ œ ๋ณด์•ˆ ๊ตฌํ˜„์„ ๋ณผ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
@ -176,7 +176,7 @@ UserInDB(
{* ../../docs_src/security/tutorial003.py hl[85] *}
/// ํŒ
/// tip | ํŒ
์‚ฌ์–‘์— ๋”ฐ๋ผ ์ด ์˜ˆ์ œ์™€ ๋™์ผํ•˜๊ฒŒ `access_token` ๋ฐ `token_type`์ด ํฌํ•จ๋œ JSON์„ ๋ฐ˜ํ™˜ํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค.
@ -202,7 +202,7 @@ UserInDB(
{* ../../docs_src/security/tutorial003.py hl[58:66,69:72,90] *}
/// ์ •๋ณด
/// info | ์ •๋ณด
์—ฌ๊ธฐ์„œ ๋ฐ˜ํ™˜ํ•˜๋Š” ๊ฐ’์ด `Bearer`์ธ ์ถ”๊ฐ€ ํ—ค๋” `WWW-Authenticate`๋„ ์‚ฌ์–‘์˜ ์ผ๋ถ€์ž…๋‹ˆ๋‹ค.

Loadingโ€ฆ
Cancel
Save