Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 360 for user (0.16 sec)

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

    {!../../../docs_src/security/tutorial002.py!}
    ```
    
    ## 创建 `get_current_user` 依赖项
    
    创建 `get_current_user` 依赖项。
    
    还记得依赖项支持子依赖项吗?
    
    `get_current_user` 使用 `oauth2_scheme` 作为依赖项。
    
    与之前直接在路径操作中的做法相同,新的 `get_current_user` 依赖项从子依赖项 `oauth2_scheme` 中接收 `str` 类型的 `token`:
    
    ```Python hl_lines="25"
    {!../../../docs_src/security/tutorial002.py!}
    ```
    
    ## 获取用户
    
    `get_current_user` 使用创建的(伪)工具函数,该函数接收 `str` 类型的令牌,并返回 Pydantic 的 `User` 模型:
    
    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)
  2. docs/de/docs/tutorial/security/get-current-user.md

        ```
    
    ## Eine `get_current_user`-Abhängigkeit erstellen
    
    Erstellen wir eine Abhängigkeit `get_current_user`.
    
    Erinnern Sie sich, dass Abhängigkeiten Unterabhängigkeiten haben können?
    
    `get_current_user` wird seinerseits von `oauth2_scheme` abhängen, das wir zuvor erstellt haben.
    
    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)
  3. docs/ko/docs/tutorial/security/get-current-user.md

        {!> ../../../docs_src/security/tutorial002_py310.py!}
        ```
    
    ## `get_current_user` 의존성 생성하기
    
    의존성 `get_current_user`를 만들어 봅시다.
    
    의존성이 하위 의존성을 가질 수 있다는 것을 기억하십니까?
    
    `get_current_user`는 이전에 생성한 것과 동일한 `oauth2_scheme`과 종속성을 갖게 됩니다.
    
    이전에 *경로 작동*에서 직접 수행했던 것과 동일하게 새 종속성 `get_current_user`는 하위 종속성 `oauth2_scheme`에서 `str`로 `token`을 수신합니다.
    
    === "파이썬 3.7 이상"
    
        ```Python hl_lines="25"
    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)
  4. docs/pt/docs/tutorial/extra-models.md

    ```Python
    user_dict = user_in.dict()
    UserInDB(**user_dict)
    ```
    
    seria equivalente a:
    
    ```Python
    UserInDB(**user_in.dict())
    ```
    
    ...porque `user_in.dict()` é um `dict`, e depois fazemos o Python "desembrulhá-lo" passando-o para UserInDB precedido por `**`.
    
    Então, obtemos um modelo Pydantic a partir dos dados em outro modelo Pydantic.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 7.8K bytes
    - Viewed (0)
  5. docs/en/docs/tutorial/security/simple-oauth2.md

        ```
    
    #### About `**user_dict`
    
    `UserInDB(**user_dict)` means:
    
    *Pass the keys and values of the `user_dict` directly as key-value arguments, equivalent to:*
    
    ```Python
    UserInDB(
        username = user_dict["username"],
        email = user_dict["email"],
        full_name = user_dict["full_name"],
        disabled = user_dict["disabled"],
        hashed_password = user_dict["hashed_password"],
    )
    ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 12.5K bytes
    - Viewed (0)
  6. common-protos/k8s.io/api/authentication/v1alpha1/generated.proto

    option go_package = "k8s.io/api/authentication/v1alpha1";
    
    // SelfSubjectReview contains the user information that the kube-apiserver has about the user making this request.
    // When using impersonation, users will receive the user info of the user being impersonated.  If impersonation or
    // request header authentication is used, any extra keys will have their case ignored and returned as lowercase.
    message SelfSubjectReview {
    Plain Text
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Mon Mar 11 18:43:24 GMT 2024
    - 2K bytes
    - Viewed (0)
  7. docs/de/docs/fastapi-people.md

    Hey! 👋
    
    Das bin ich:
    
    {% if people %}
    <div class="user-list user-list-center">
    {% for user in people.maintainers %}
    
    <div class="user"><a href="{{ user.url }}" target="_blank"><div class="avatar-wrapper"><img src="{{ user.avatarUrl }}"/></div><div class="title">@{{ user.login }}</div></a> <div class="count">Answers: {{ user.answers }}</div><div class="count">Pull Requests: {{ user.prs }}</div></div>
    {% endfor %}
    
    </div>
    {% endif %}
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 18:10:01 GMT 2024
    - 6.8K bytes
    - Viewed (0)
  8. docs/en/docs/tutorial/extra-models.md

    )
    ```
    
    Or more exactly, using `user_dict` directly, with whatever contents it might have in the future:
    
    ```Python
    UserInDB(
        username = user_dict["username"],
        password = user_dict["password"],
        email = user_dict["email"],
        full_name = user_dict["full_name"],
    )
    ```
    
    #### A Pydantic model from the contents of another
    
    As in the example above we got `user_dict` from `user_in.dict()`, this code:
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 7.7K bytes
    - Viewed (1)
  9. docs/pt/docs/fastapi-people.md

    Ei! 👋
    
    Este sou eu:
    
    {% if people %}
    <div class="user-list user-list-center">
    {% for user in people.maintainers %}
    
    <div class="user"><a href="{{ user.url }}" target="_blank"><div class="avatar-wrapper"><img src="{{ user.avatarUrl }}"/></div><div class="title">@{{ user.login }}</div></a> <div class="count">Respostas: {{ user.answers }}</div><div class="count">Pull Requests: {{ user.prs }}</div></div>
    {% endfor %}
    
    </div>
    {% endif %}
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 6.5K bytes
    - Viewed (0)
  10. docs/uk/docs/fastapi-people.md

    Привіт! 👋
    
    Це я:
    
    {% if people %}
    <div class="user-list user-list-center">
    {% for user in people.maintainers %}
    
    <div class="user"><a href="{{ user.url }}" target="_blank"><div class="avatar-wrapper"><img src="{{ user.avatarUrl }}"/></div><div class="title">@{{ user.login }}</div></a> <div class="count">Answers: {{ user.answers }}</div><div class="count">Pull Requests: {{ user.prs }}</div></div>
    {% endfor %}
    
    </div>
    {% endif %}
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 8.1K bytes
    - Viewed (0)
Back to top