Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 121 - 130 of 214 for user_2 (0.07 seconds)

  1. src/main/java/jcifs/smb/NtlmUtil.java

        /**
         * Creates the LMv2 response for the supplied information.
         *
         * @param domain
         *            The domain in which the username exists.
         * @param user
         *            The username.
         * @param password
         *            The user's password.
         * @param challenge
         *            The server challenge.
         * @param clientChallenge
         *            The client challenge (nonce).
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 15.1K bytes
    - Click Count (0)
  2. tests/distinct_test.go

    )
    
    func TestDistinct(t *testing.T) {
    	users := []User{
    		*GetUser("distinct", Config{}),
    		*GetUser("distinct", Config{}),
    		*GetUser("distinct", Config{}),
    		*GetUser("distinct-2", Config{}),
    		*GetUser("distinct-3", Config{}),
    	}
    	users[0].Age = 20
    
    	if err := DB.Create(&users).Error; err != nil {
    		t.Fatalf("errors happened when create users: %v", err)
    	}
    
    	var names []string
    Created: Sun Dec 28 09:35:17 GMT 2025
    - Last Modified: Thu Jan 06 07:02:53 GMT 2022
    - 2.5K bytes
    - Click Count (0)
  3. ci/official/envs/rbe

      # A local firewall rule for the container is added in
      # ci/official/utilities/setup_docker.sh.
    else
      # The volume mapping flag below shares the user's gcloud credentials, if any,
      # with the container, in case the user has credentials stored there.
      # This would allow Bazel to authenticate for RBE.
      # Note: TF's CI does not have any credentials stored there.
    Created: Tue Dec 30 12:39:10 GMT 2025
    - Last Modified: Fri Aug 09 16:05:18 GMT 2024
    - 2.7K bytes
    - Click Count (0)
  4. docs/en/docs/tutorial/security/first-steps.md

    But in this case, the same **FastAPI** application will handle the API and the authentication.
    
    So, let's review it from that simplified point of view:
    
    * The user types the `username` and `password` in the frontend, and hits `Enter`.
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sun Aug 31 09:15:41 GMT 2025
    - 8.4K bytes
    - Click Count (0)
  5. docs/uk/docs/features.md

    from pydantic import BaseModel
    
    # Оголошення змінної як str
    # з підтримкою автодоповнення у редакторі
    def main(user_id: str):
        return user_id
    
    # Модель Pydantic
    class User(BaseModel):
        id: int
        name: str
        joined: date
    ```
    
    Приклад використання цієї моделі:
    
    ```Python
    my_user: User = User(id=3, name="John Doe", joined="2018-07-19")
    
    second_user_data = {
        "id": 4,
        "name": "Mary",
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Oct 11 17:48:49 GMT 2025
    - 14.3K bytes
    - Click Count (0)
  6. docs/ru/docs/tutorial/dependencies/index.md

    Например, у вас есть 4 API-эндпоинта (*операции пути*):
    
    * `/items/public/`
    * `/items/private/`
    * `/users/{user_id}/activate`
    * `/items/pro/`
    
    тогда вы можете добавить разные требования к правам для каждого из них только с помощью зависимостей и подзависимостей:
    
    ```mermaid
    graph TB
    
    current_user(["current_user"])
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Tue Sep 30 11:24:39 GMT 2025
    - 15.4K bytes
    - Click Count (1)
  7. docs/zh/docs/tutorial/security/get-current-user.md

    ## 获取用户
    
    `get_current_user` 使用创建的(伪)工具函数,该函数接收 `str` 类型的令牌,并返回 Pydantic 的 `User` 模型:
    
    {* ../../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 模型声明的吧。
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Mon Nov 18 02:25:44 GMT 2024
    - 3.4K bytes
    - Click Count (0)
  8. docs/ja/docs/tutorial/security/get-current-user.md

    ## ユーザーの取得
    
    `get_current_user` は作成した(偽物の)ユーティリティ関数を使って、 `str` としてトークンを受け取り、先ほどのPydanticの `User` モデルを返却します:
    
    {* ../../docs_src/security/tutorial002.py hl[19:22,26:27] *}
    
    ## 現在のユーザーの注入
    
    ですので、 `get_current_user` に対して同様に *path operation* の中で `Depends` を利用できます。
    
    {* ../../docs_src/security/tutorial002.py hl[31] *}
    
    Pydanticモデルの `User` として、 `current_user` の型を宣言することに注意してください。
    
    その関数の中ですべての入力補完や型チェックを行う際に役に立ちます。
    
    /// tip | 豆知識
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Mon Nov 18 02:25:44 GMT 2024
    - 5.4K bytes
    - Click Count (0)
  9. docs/es/docs/tutorial/security/get-current-user.md

    ## Obtener el usuario { #get-the-user }
    
    `get_current_user` usará una función de utilidad (falsa) que creamos, que toma un token como un `str` y devuelve nuestro modelo de Pydantic `User`:
    
    {* ../../docs_src/security/tutorial002_an_py310.py hl[19:22,26:27] *}
    
    ## Inyectar al usuario actual { #inject-the-current-user }
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Tue Dec 16 16:33:45 GMT 2025
    - 4.4K bytes
    - Click Count (0)
  10. docs/ja/docs/tutorial/path-params.md

    *path operations* を作成する際、固定パスをもつ状況があり得ます。
    
    `/users/me` から、現在のユーザに関するデータを取得するとします。
    
    さらに、ユーザIDによって特定のユーザに関する情報を取得するパス  `/users/{user_id}` ももつことができます。
    
    *path operations* は順に評価されるので、 `/users/me` が `/users/{user_id}` よりも先に宣言されているか確認する必要があります:
    
    {* ../../docs_src/path_params/tutorial003.py hl[6,11] *}
    
    それ以外の場合、 `/users/{users_id}` は `/users/me` としてもマッチします。値が「"me"」であるパラメータ `user_id` を受け取ると「考え」ます。
    
    ## 定義済みの値
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Mon Nov 18 02:25:44 GMT 2024
    - 10.4K bytes
    - Click Count (0)
Back to Top