Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for read_own_items (0.13 sec)

  1. docs/em/docs/advanced/security/oauth2-scopes.md

    *➡ 🛠️* ⚫️ 📣 ↔, `"items"`, 👉 🔜 📇 `security_scopes.scopes` 🚶‍♀️ `get_current_user`.
    
    📥 ❔ 🔗 🔗 & ↔ 👀 💖:
    
    *  *➡ 🛠️* `read_own_items` ✔️:
        * ✔ ↔ `["items"]` ⏮️ 🔗:
        * `get_current_active_user`:
            *  🔗 🔢 `get_current_active_user` ✔️:
                * ✔ ↔ `["me"]` ⏮️ 🔗:
                * `get_current_user`:
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 11K bytes
    - Viewed (0)
  2. docs/en/docs/advanced/security/oauth2-scopes.md

    Here's how the hierarchy of dependencies and scopes looks like:
    
    * The *path operation* `read_own_items` has:
        * Required scopes `["items"]` with the dependency:
        * `get_current_active_user`:
            *  The dependency function `get_current_active_user` has:
                * Required scopes `["me"]` with the dependency:
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Oct 29 11:02:16 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  3. docs/de/docs/advanced/security/oauth2-scopes.md

    So sieht die Hierarchie der Abhängigkeiten und Scopes aus:
    
    * Die *Pfadoperation* `read_own_items` hat:
        * Erforderliche Scopes `["items"]` mit der Abhängigkeit:
        * `get_current_active_user`:
            * Die Abhängigkeitsfunktion `get_current_active_user` hat:
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 22.5K bytes
    - Viewed (0)
  4. docs/pt/docs/advanced/security/oauth2-scopes.md

    Aqui está como a hierarquia de dependências e escopos parecem:
    
    * A *operação de rota* `read_own_items` possui:
        * Escopos necessários `["items"]` com a dependência:
        * `get_current_active_user`:
            *  A função de dependência `get_current_active_user` possui:
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 21.7K bytes
    - Viewed (0)
  5. docs/zh/docs/advanced/security/oauth2-scopes.md

    *路径操作*自身也声明了作用域,`"items"`,这也是 `security_scopes.scopes` 列表传递给 `get_current_user` 的。
    
    依赖项与作用域的层级架构如下:
    
    * *路径操作* `read_own_items` 包含:
        * 依赖项所需的作用域 `["items"]`:
        * `get_current_active_user`:
            *  依赖项函数 `get_current_active_user` 包含:
                * 所需的作用域 `"me"` 包含依赖项:
                * `get_current_user`:
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  6. fastapi/param_functions.py

        from fastapi import Security, FastAPI
    
        from .db import User
        from .security import get_current_active_user
    
        app = FastAPI()
    
        @app.get("/users/me/items/")
        async def read_own_items(
            current_user: Annotated[User, Security(get_current_active_user, scopes=["items"])]
        ):
            return [{"item_id": "Foo", "owner": current_user.username}]
        ```
        """
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Wed Oct 23 18:30:18 UTC 2024
    - 62.5K bytes
    - Viewed (0)
Back to top