Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 63 for current_user (0.57 sec)

  1. docs/ko/docs/tutorial/dependencies/index.md

    ```mermaid
    graph TB
    
    current_user(["current_user"])
    active_user(["active_user"])
    admin_user(["admin_user"])
    paying_user(["paying_user"])
    
    public["/items/public/"]
    private["/items/private/"]
    activate_user["/users/{user_id}/activate"]
    pro_items["/items/pro/"]
    
    current_user --> active_user
    active_user --> admin_user
    active_user --> paying_user
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  2. docs/zh/docs/tutorial/security/get-current-user.md

    {* ../../docs_src/security/tutorial002.py hl[19:22,26:27] *}
    
    ## 注入当前用户
    
    在*路径操作* 的 `Depends` 中使用 `get_current_user`:
    
    {* ../../docs_src/security/tutorial002.py hl[31] *}
    
    注意,此处把 `current_user` 的类型声明为 Pydantic 的 `User` 模型。
    
    这有助于在函数内部使用代码补全和类型检查。
    
    /// tip | 提示
    
    还记得请求体也是使用 Pydantic 模型声明的吧。
    
    放心,因为使用了 `Depends`,**FastAPI** 不会搞混。
    
    ///
    
    /// check | 检查
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  3. docs/es/docs/tutorial/security/get-current-user.md

    Entonces ahora podemos usar el mismo `Depends` con nuestro `get_current_user` en la *path operation*:
    
    {* ../../docs_src/security/tutorial002_an_py310.py hl[31] *}
    
    Ten en cuenta que declaramos el tipo de `current_user` como el modelo de Pydantic `User`.
    
    Esto nos ayudará dentro de la función con todo el autocompletado y chequeo de tipos.
    
    /// tip | Consejo
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Dec 16 16:33:45 UTC 2025
    - 4.4K bytes
    - Viewed (0)
  4. docs/en/docs/tutorial/security/get-current-user.md

    So now we can use the same `Depends` with our `get_current_user` in the *path operation*:
    
    {* ../../docs_src/security/tutorial002_an_py310.py hl[31] *}
    
    Notice that we declare the type of `current_user` as the Pydantic model `User`.
    
    This will help us inside of the function with all the completion and type checks.
    
    /// tip
    
    You might remember that request bodies are also declared with Pydantic models.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 4K bytes
    - Viewed (0)
  5. docs/de/docs/tutorial/security/get-current-user.md

    Und jetzt können wir wiederum `Depends` mit unserem `get_current_user` in der *Pfadoperation* verwenden:
    
    {* ../../docs_src/security/tutorial002_an_py310.py hl[31] *}
    
    Beachten Sie, dass wir als Typ von `current_user` das Pydantic-Modell `User` deklarieren.
    
    Das wird uns innerhalb der Funktion bei Codevervollständigung und Typprüfungen helfen.
    
    /// tip | Tipp
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Sep 20 15:10:09 UTC 2025
    - 4.8K bytes
    - Viewed (0)
  6. docs/pt/docs/tutorial/security/get-current-user.md

    Então agora nós podemos usar o mesmo `Depends` com nosso `get_current_user` na *operação de rota*:
    
    {* ../../docs_src/security/tutorial002_an_py310.py hl[31] *}
    
    Observe que nós declaramos o tipo de `current_user` como o modelo Pydantic `User`.
    
    Isso nos ajudará dentro da função com todo o preenchimento automático e verificações de tipo.
    
    /// tip | Dica
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Nov 12 16:23:57 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  7. docs/de/docs/tutorial/security/simple-oauth2.md

    Den Rest erledigt **FastAPI** für Sie.
    
    ///
    
    ## Die Abhängigkeiten aktualisieren { #update-the-dependencies }
    
    Jetzt werden wir unsere Abhängigkeiten aktualisieren.
    
    Wir möchten den `current_user` *nur* erhalten, wenn dieser Benutzer aktiv ist.
    
    Daher erstellen wir eine zusätzliche Abhängigkeit `get_current_active_user`, die wiederum `get_current_user` als Abhängigkeit verwendet.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Sep 20 15:10:09 UTC 2025
    - 11.2K bytes
    - Viewed (0)
  8. docs/en/docs/tutorial/security/simple-oauth2.md

    For the rest, **FastAPI** handles it for you.
    
    ///
    
    ## Update the dependencies { #update-the-dependencies }
    
    Now we are going to update our dependencies.
    
    We want to get the `current_user` *only* if this user is active.
    
    So, we create an additional dependency `get_current_active_user` that in turn uses `get_current_user` as a dependency.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 9.4K bytes
    - Viewed (0)
  9. docs/es/docs/tutorial/security/simple-oauth2.md

    Para el resto, **FastAPI** lo maneja por ti.
    
    ///
    
    ## Actualizar las dependencias { #update-the-dependencies }
    
    Ahora vamos a actualizar nuestras dependencias.
    
    Queremos obtener el `current_user` *solo* si este usuario está activo.
    
    Entonces, creamos una dependencia adicional `get_current_active_user` que a su vez utiliza `get_current_user` como dependencia.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Dec 16 16:33:45 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  10. docs/ko/docs/tutorial/security/get-current-user.md

    {* ../../docs_src/security/tutorial002.py hl[19:22,26:27] *}
    
    ## 현재 유저 주입하기
    
    이제 *경로 작동*에서 `get_current_user`와 동일한 `Depends`를 사용할 수 있습니다.
    
    {* ../../docs_src/security/tutorial002.py hl[31] *}
    
    Pydantic 모델인 `User`로 `current_user`의 타입을 선언하는 것을 알아야 합니다.
    
    이것은 모든 완료 및 타입 검사를 통해 함수 내부에서 우리를 도울 것입니다.
    
    /// tip | 팁
    
    요청 본문도 Pydantic 모델로 선언된다는 것을 기억할 것입니다.
    
    여기서 **FastAPI**는 `Depends`를 사용하고 있기 때문에 혼동되지 않습니다.
    
    ///
    
    /// check | 확인
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 4.7K bytes
    - Viewed (0)
Back to top