security:authorization:openfga:keyword-vs-name
Differences
This shows you the differences between two versions of the page.
| security:authorization:openfga:keyword-vs-name [2026/07/09 04:14] – created phong2018 | security:authorization:openfga:keyword-vs-name [2026/07/09 04:14] (current) – removed phong2018 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== OpenFGA DSL Syntax: Keywords vs Names ====== | ||
| - | In the DSL there are two kinds of words: **keywords** you must type exactly, and | ||
| - | **names** you make up (or point to). Symbols like '' | ||
| - | |||
| - | ===== Keywords (fixed — you cannot change them) ===== | ||
| - | |||
| - | Built-in words. Spell them exactly. | ||
| - | |||
| - | ^ Keyword ^ What it does ^ | ||
| - | | '' | ||
| - | | '' | ||
| - | | '' | ||
| - | | '' | ||
| - | | '' | ||
| - | | '' | ||
| - | | '' | ||
| - | |||
| - | ===== Names (values — you choose these) ===== | ||
| - | |||
| - | Words //you// invent to fit your app. | ||
| - | |||
| - | * **Type names**: '' | ||
| - | * **Relation names**: '' | ||
| - | |||
| - | There is a small twist. Sometimes you //create// a name, and sometimes you | ||
| - | //refer// to a name you already made. | ||
| - | |||
| - | * '' | ||
| - | * '' | ||
| - | * '' | ||
| - | |||
| - | ===== Symbols (fixed punctuation) ===== | ||
| - | |||
| - | * '' | ||
| - | * '' | ||
| - | * ''#'' | ||
| - | |||
| - | ===== One line, broken into parts ===== | ||
| - | |||
| - | Take this line: | ||
| - | |||
| - | < | ||
| - | define viewer: [user] or owner | ||
| - | </ | ||
| - | |||
| - | ^ Token ^ Kind ^ Note ^ | ||
| - | | '' | ||
| - | | '' | ||
| - | | '' | ||
| - | | '' | ||
| - | | '' | ||
| - | | '' | ||
| - | | '' | ||
| - | | '' | ||
| - | |||
| - | ===== The general shape ===== | ||
| - | |||
| - | Uppercase = keywords (fixed). ''< | ||
| - | |||
| - | < | ||
| - | MODEL | ||
| - | SCHEMA 1.1 | ||
| - | |||
| - | TYPE <your type name> | ||
| - | RELATIONS | ||
| - | DEFINE <your relation name>: [< | ||
| - | </ | ||
| - | |||
| - | ===== See also ===== | ||
| - | |||
| - | * [[security: | ||
| - | * [[security: | ||
| - | * [[https:// | ||
security/authorization/openfga/keyword-vs-name.1783570465.txt.gz · Last modified: by phong2018
