Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 25 for 32 (0.17 sec)

  1. docs/en/docs/tutorial/security/get-current-user.md

    And all these thousands of *path operations* can be as small as 3 lines:
    
    === "Python 3.10+"
    
        ```Python hl_lines="30-32"
        {!> ../../../docs_src/security/tutorial002_an_py310.py!}
        ```
    
    === "Python 3.9+"
    
        ```Python hl_lines="30-32"
        {!> ../../../docs_src/security/tutorial002_an_py39.py!}
        ```
    
    === "Python 3.8+"
    
        ```Python hl_lines="31-33"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Jan 11 16:31:18 GMT 2024
    - 7.6K bytes
    - Viewed (0)
  2. docs/zh/docs/tutorial/security/get-current-user.md

    但,关键是:
    
    **安全和依赖注入的代码只需要写一次。**
    
    就算写得再复杂,也只是在一个位置写一次就够了。所以,要多复杂就可以写多复杂。
    
    但是,就算有数千个端点(*路径操作*),它们都可以使用同一个安全系统。
    
    而且,所有端点(或它们的任何部件)都可以利用这些依赖项或任何其它依赖项。
    
    所有*路径操作*只需 3 行代码就可以了:
    
    ```Python hl_lines="30-32"
    {!../../../docs_src/security/tutorial002.py!}
    ```
    
    ## 小结
    
    现在,我们可以直接在*路径操作函数*中获取当前用户。
    
    至此,安全的内容已经讲了一半。
    
    只要再为用户或客户端的*路径操作*添加真正发送 `username` 和 `password` 的功能就可以了。
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 22:46:46 GMT 2024
    - 3.5K bytes
    - Viewed (0)
  3. docs/de/docs/advanced/openapi-callbacks.md

    * Und sie könnte auch eine Deklaration der Response enthalten, die zurückgegeben werden soll, z. B. `response_model=InvoiceEventReceived`.
    
    ```Python hl_lines="16-18  21-22  28-32"
    {!../../../docs_src/openapi_callbacks/tutorial001.py!}
    ```
    
    Es gibt zwei Hauptunterschiede zu einer normalen *Pfadoperation*:
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 20:17:23 GMT 2024
    - 8.8K bytes
    - Viewed (0)
  4. docs/em/docs/advanced/openapi-callbacks.md

    ⚫️ 🔜 👀 💖 😐 FastAPI *➡ 🛠️*:
    
    * ⚫️ 🔜 🎲 ✔️ 📄 💪 ⚫️ 🔜 📨, ✅ `body: InvoiceEvent`.
    *  & ⚫️ 💪 ✔️ 📄 📨 ⚫️ 🔜 📨, ✅ `response_model=InvoiceEventReceived`.
    
    ```Python hl_lines="16-18  21-22  28-32"
    {!../../../docs_src/openapi_callbacks/tutorial001.py!}
    ```
    
    📤 2️⃣ 👑 🔺 ⚪️➡️ 😐 *➡ 🛠️*:
    
    * ⚫️ 🚫 💪 ✔️ 🙆 ☑ 📟, ↩️ 👆 📱 🔜 🙅 🤙 👉 📟. ⚫️ 🕴 ⚙️ 📄 *🔢 🛠️*. , 🔢 💪 ✔️ `pass`.
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 6.6K bytes
    - Viewed (0)
  5. docs/ko/docs/tutorial/security/get-current-user.md

    그러나 동일한 보안 시스템을 사용하여 수천 개의 엔드포인트(*경로 작동*)를 가질 수 있습니다.
    
    그리고 그들 모두(또는 원하는 부분)는 이러한 의존성 또는 생성한 다른 의존성을 재사용하는 이점을 얻을 수 있습니다.
    
    그리고 이 수천 개의 *경로 작동*은 모두 3줄 정도로 줄일 수 있습니다.
    
    === "파이썬 3.7 이상"
    
        ```Python hl_lines="30-32"
        {!> ../../../docs_src/security/tutorial002.py!}
        ```
    
    === "파이썬 3.10 이상"
    
        ```Python hl_lines="28-30"
        {!> ../../../docs_src/security/tutorial002_py310.py!}
        ```
    
    ## 요약
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 5.6K bytes
    - Viewed (0)
  6. docs/en/docs/tutorial/metadata.md

    You can set them as follows:
    
    ```Python hl_lines="3-16  19-32"
    {!../../../docs_src/metadata/tutorial001.py!}
    ```
    
    !!! tip
        You can write Markdown in the `description` field and it will be rendered in the output.
    
    With this configuration, the automatic API docs would look like:
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sun Mar 31 23:52:53 GMT 2024
    - 5.8K bytes
    - Viewed (0)
  7. docs/de/docs/tutorial/security/get-current-user.md

    Und alle diese Tausenden von *Pfadoperationen* können nur drei Zeilen lang sein:
    
    === "Python 3.10+"
    
        ```Python hl_lines="30-32"
        {!> ../../../docs_src/security/tutorial002_an_py310.py!}
        ```
    
    === "Python 3.9+"
    
        ```Python hl_lines="30-32"
        {!> ../../../docs_src/security/tutorial002_an_py39.py!}
        ```
    
    === "Python 3.8+"
    
        ```Python hl_lines="31-33"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 18:08:05 GMT 2024
    - 8.5K bytes
    - Viewed (0)
  8. docs/en/docs/tutorial/security/oauth2-jwt.md

    Import the modules installed.
    
    Create a random secret key that will be used to sign the JWT tokens.
    
    To generate a secure random secret key use the command:
    
    <div class="termy">
    
    ```console
    $ openssl rand -hex 32
    
    09d25e094faa6ca2556c818166b7a9563b93f7099f6f0f4caa6cf63b88e8d3e7
    ```
    
    </div>
    
    And copy the output to the variable `SECRET_KEY` (don't use the one in the example).
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 13K bytes
    - Viewed (0)
  9. docs/zh/docs/tutorial/sql-databases.md

    例如,在创建一个项目之前,我们不知道分配给它的 ID 是什么,但是在读取它时(从 API 返回时)我们已经知道它的 ID。
    
    同样,当读取用户时,我们现在可以声明`items`,将包含属于该用户的项目。
    
    不仅是这些项目的 ID,还有我们在 Pydantic*模型*中定义的用于读取项目的所有数据:`Item`.
    
    === "Python 3.10+"
    
        ```Python hl_lines="13-15  29-32"
        {!> ../../../docs_src/sql_databases/sql_app_py310/schemas.py!}
        ```
    
    === "Python 3.9+"
    
        ```Python hl_lines="15-17  31-34"
        {!> ../../../docs_src/sql_databases/sql_app_py39/schemas.py!}
        ```
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 27K bytes
    - Viewed (0)
  10. docs/ja/docs/tutorial/security/oauth2-jwt.md

    ## JWTトークンの取り扱い
    
    インストールした複数のモジュールをインポートします。
    
    JWTトークンの署名に使用されるランダムな秘密鍵を生成します。
    
    安全なランダム秘密鍵を生成するには、次のコマンドを使用します:
    
    <div class="termy">
    
    ```console
    $ openssl rand -hex 32
    
    09d25e094faa6ca2556c818166b7a9563b93f7099f6f0f4caa6cf63b88e8d3e7
    ```
    
    </div>
    
    そして、出力された文字列を変数`SECRET_KEY`にコピーします。(例に記載している秘密鍵は実際に使用しないでください)
    
    JWTトークンの署名に使用するアルゴリズム`"HS256"`を指定した変数`ALGORITHM`を作成します。
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Jan 11 21:21:35 GMT 2024
    - 14.1K bytes
    - Viewed (0)
Back to top