Scope
Scopes
call: [
{
description: "admin can remove player, newbie and admin can create player",
actions: ["player.**"],
scopes: ["player", "player.admin"],
์ ์ ์ฑ
์ player.** ํจํด(player.get, player.list, player.message.list ๋ฑ๊ณผ ์ผ์น)์ ์ก์
์ ํธ์ถํ๋ call ์ปค๋ฅํฐ๊ฐ ์ฌ์ฉ๋๋ ๋ชจ๋ ์๋ํฌ์ธํธ๊ฐ ์ํ๋๊ธฐ ์ ์ ๊ณตํต์ ์ผ๋ก ํ๊ฐ๋ฉ๋๋ค. ์ฐ์ scopes ์ ๊ทผ ์ ์ด ํ๋ฌ๊ทธ์ธ์ ๋ฐ๋ผ context์ ์ฃผ์
๋ (moleculer-iam ๊ฐ์ ์ปจํ
์คํธ ํ๋ฌ๊ทธ์ธ์ ํตํด) OAuth ํ ํฐ์ด ํ๋ํ ์ค์ฝํ๋ฅผ ํ์ธํ๊ณ ์ผ์น๋๋ ์ค์ฝํ๊ฐ ํ๋๋ผ๋ ์๋ ๊ฒฝ์ฐ ํต๊ณผํฉ๋๋ค.