Skip to content

Instantly share code, notes, and snippets.

View devchangjun's full-sized avatar
๐Ÿ‡
@qqkrckdwns

ChangJun Park devchangjun

๐Ÿ‡
@qqkrckdwns
  • +82. South Korea
View GitHub Profile
@toy-crane
toy-crane / toss-frontend-rules.mdc
Last active July 21, 2025 22:06
ํ† ์Šค ํ”„๋ก ํŠธ์—”๋“œ ๊ฐ€์ด๋“œ๋ผ์ธ ๊ธฐ๋ฐ˜์œผ๋กœ ๋งŒ๋“  Cursor rule
# Frontend Design Guideline
This document summarizes key frontend design principles and rules, showcasing
recommended patterns. Follow these guidelines when writing frontend code.
# Readability
Improving the clarity and ease of understanding code.
@egoing
egoing / The OAuth 2.0 Authorization Framework: Bearer Token Usage.md
Last active October 11, 2023 03:57
Bearer Authentication ์— ๋Œ€ํ•ด์„œ ์‚ดํŽด๋ด…๋‹ˆ๋‹ค.

์†Œ๊ฐœ

์ด ๊ธ€์€ Oauth๋ฅผ ์ด์šฉํ•ด์„œ access token์„ ํš๋“ํ•œ ํ›„์— api์— ์ ‘์†ํ•˜๋Š” ๋ฐฉ๋ฒ•์— ๋Œ€ํ•ด์„œ ์„ค๋ช…ํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค.

์šฐ์„  ๊ณต๋ถ€ํ•ด์•ผ ํ•  ๊ฒƒ๋“ค

์ด ๊ธ€์€ WEB2 OAuth2 ์ˆ˜์—…๊ณผ WEB2 HTTP ์ˆ˜์—…์— ์˜์กดํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. OAuth์™€ HTTP๋ฅผ ์ž˜ ๋ชจ๋ฅด์‹ ๋‹ค๋ฉด ์ด ์ˆ˜์—…๋“ค์„ ๋จผ์ € ๋ณด์‹œ๊ณ  ์ด ๊ธ€์„ ๋ณผ ๊ฒƒ์„ ๊ถŒํ•ด๋“œ๋ฆฝ๋‹ˆ๋‹ค.

Bearer Authentication๋ž€?

API์— ์ ‘์†ํ•˜๊ธฐ ์œ„ํ•ด์„œ๋Š” access token์„ API ์„œ๋ฒ„์— ์ œ์ถœํ•ด์„œ ์ธ์ฆ์„ ํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค. ์ด ๋•Œ ์‚ฌ์šฉํ•˜๋Š” ์ธ์ฆ ๋ฐฉ๋ฒ•์ด Bearer Authentication ์ž…๋‹ˆ๋‹ค. ์ด ๋ฐฉ๋ฒ•์€ OAuth๋ฅผ ์œ„ํ•ด์„œ ๊ณ ์•ˆ๋œ ๋ฐฉ๋ฒ•์ด๊ณ , RFC 6750์— ํ‘œ์ค€๋ช…์„ธ์„œ๊ฐ€ ์žˆ์Šต๋‹ˆ๋‹ค.