Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for 127 (0.12 sec)

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

    ↩️, 🖼, `dict`, ⚖️ 🕳 🙆, ⚫️ 💪 💔 🈸 ☝ ⏪, ⚒ ⚫️ 💂‍♂ ⚠.
    
    👥 ✔ 👈 👥 ✔️ 👩‍💻 ⏮️ 👈 🆔, & 🚥 🚫, 👥 🤚 👈 🎏 ⚠ 👥 ✍ ⏭.
    
    ```Python hl_lines="46  116-127"
    {!../../../docs_src/security/tutorial005.py!}
    ```
    
    ## ✔ `scopes`
    
    👥 🔜 ✔ 👈 🌐 ↔ ✔, 👉 🔗 & 🌐 ⚓️ (🔌 *➡ 🛠️*), 🔌 ↔ 🚚 🤝 📨, ⏪ 🤚 `HTTPException`.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Jan 11 21:21:35 GMT 2024
    - 11.1K bytes
    - Viewed (0)
  2. docs/de/docs/advanced/security/oauth2-scopes.md

    === "Python 3.10+"
    
        ```Python hl_lines="46  116-127"
        {!> ../../../docs_src/security/tutorial005_an_py310.py!}
        ```
    
    === "Python 3.9+"
    
        ```Python hl_lines="46  116-127"
        {!> ../../../docs_src/security/tutorial005_an_py39.py!}
        ```
    
    === "Python 3.8+"
    
        ```Python hl_lines="47  117-128"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 20:26:08 GMT 2024
    - 22.8K bytes
    - Viewed (0)
  3. docs/en/docs/advanced/security/oauth2-scopes.md

    === "Python 3.10+"
    
        ```Python hl_lines="46  116-127"
        {!> ../../../docs_src/security/tutorial005_an_py310.py!}
        ```
    
    === "Python 3.9+"
    
        ```Python hl_lines="46  116-127"
        {!> ../../../docs_src/security/tutorial005_an_py39.py!}
        ```
    
    === "Python 3.8+"
    
        ```Python hl_lines="47  117-128"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Jan 11 21:21:35 GMT 2024
    - 20.5K bytes
    - Viewed (0)
  4. docs/zh/docs/advanced/security/oauth2-scopes.md

    使用 Pydantic 验证数据可以确保数据中含有由作用域组成的**字符串列表**,以及 `username` 字符串等内容。
    
    反之,如果使用**字典**或其它数据结构,就有可能在后面某些位置破坏应用,形成安全隐患。
    
    还可以使用用户名验证用户,如果没有用户,也会触发之前创建的异常。
    
    ```Python hl_lines="46  116-127"
    {!../../../docs_src/security/tutorial005.py!}
    ```
    
    ## 校验 `scopes`
    
    接下来,校验所有依赖项和依赖要素(包括*路径操作*)所需的作用域。这些作用域包含在令牌的 `scopes` 里,如果不在其中就会触发 `HTTPException` 异常。
    
    为此,要使用包含所有作用域**字符串列表**的 `security_scopes.scopes`, 。
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 22:43:35 GMT 2024
    - 11.8K bytes
    - Viewed (0)
  5. docs/en/docs/release-notes.md

    * Fix typos in section about nested models and OAuth2 with JWT. PR [#127](https://github.com/tiangolo/fastapi/pull/127) by [@mmcloud](https://github.com/mmcloud).
    
    ## 0.12.0
    
    * Add additional `responses` parameter to *path operation decorators* to extend responses in OpenAPI (and API docs).
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri May 03 23:25:42 GMT 2024
    - 388.1K bytes
    - Viewed (1)
Back to top