Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for Parameters (0.2 sec)

  1. docs/em/docs/tutorial/security/first-steps.md

        👈 ↩️ ⚫️ ⚙️ 🎏 📛 🗄 🔌. 👈 🚥 👆 💪 🔬 🌅 🔃 🙆 👫 💂‍♂ ⚖ 👆 💪 📁 & 📋 ⚫️ 🔎 🌖 ℹ 🔃 ⚫️.
    
    `oauth2_scheme` 🔢 👐 `OAuth2PasswordBearer`, ✋️ ⚫️ "🇧🇲".
    
    ⚫️ 💪 🤙:
    
    ```Python
    oauth2_scheme(some, parameters)
    ```
    
    , ⚫️ 💪 ⚙️ ⏮️ `Depends`.
    
    ### ⚙️ ⚫️
    
    🔜 👆 💪 🚶‍♀️ 👈 `oauth2_scheme` 🔗 ⏮️ `Depends`.
    
    ```Python hl_lines="10"
    {!../../../docs_src/security/tutorial001.py!}
    ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Wed Mar 13 19:02:19 GMT 2024
    - 6.8K bytes
    - Viewed (0)
  2. docs/pt/docs/tutorial/security/first-steps.md

    A variável `oauth2_scheme` é um instância de `OAuth2PasswordBearer`, mas também é um "callable".
    
    Pode ser chamada de:
    
    ```Python
    oauth2_scheme(some, parameters)
    ```
    
    Então, pode ser usado com `Depends`.
    
    ## Use-o
    
    Agora você pode passar aquele `oauth2_scheme` em uma dependência com `Depends`.
    
    ```Python hl_lines="10"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 8.3K bytes
    - Viewed (0)
  3. docs/zh/docs/tutorial/security/first-steps.md

        这种命名方式是因为要使用与 OpenAPI 规范中相同的名字。以便在深入校验安全方案时,能通过复制粘贴查找更多相关信息。
    
    `oauth2_scheme` 变量是 `OAuth2PasswordBearer` 的实例,也是**可调用项**。
    
    以如下方式调用:
    
    ```Python
    oauth2_scheme(some, parameters)
    ```
    
    因此,`Depends` 可以调用 `oauth2_scheme` 变量。
    
    ### 使用
    
    接下来,使用 `Depends` 把 `oauth2_scheme` 传入依赖项。
    
    ```Python hl_lines="10"
    {!../../../docs_src/security/tutorial001.py!}
    ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Wed Mar 13 19:02:19 GMT 2024
    - 7.4K bytes
    - Viewed (0)
  4. docs/en/docs/tutorial/security/first-steps.md

        In that case, **FastAPI** also provides you with the tools to build it.
    
    When we create an instance of the `OAuth2PasswordBearer` class we pass in the `tokenUrl` parameter. This parameter contains the URL that the client (the frontend running in the user's browser) will use to send the `username` and `password` in order to get a token.
    
    === "Python 3.9+"
    
        ```Python hl_lines="8"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Wed Mar 13 19:02:19 GMT 2024
    - 8.9K bytes
    - Viewed (0)
Back to top