- Sort Score
- Num 10 results
- Language All
Results 21 - 30 of 9,927 for unser (0.17 seconds)
-
docs/zh/docs/tutorial/security/get-current-user.md
## 获取用户 { #get-the-user } `get_current_user` 使用创建的(伪)工具函数,该函数接收 `str` 类型的令牌,并返回 Pydantic 的 `User` 模型: {* ../../docs_src/security/tutorial002_an_py310.py hl[19:22,26:27] *} ## 注入当前用户 { #inject-the-current-user } 在*路径操作* 的 `Depends` 中使用 `get_current_user`: {* ../../docs_src/security/tutorial002_an_py310.py hl[31] *} 注意,此处把 `current_user` 的类型声明为 Pydantic 的 `User` 模型。 这有助于在函数内部使用代码补全和类型检查。Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Feb 13 13:37:57 GMT 2026 - 3.6K bytes - Click Count (0) -
docs/uk/docs/tutorial/security/get-current-user.md
## Отримати користувача { #get-the-user } `get_current_user` використає (фальшиву) утилітну функцію, яку ми створили, що приймає `token` як `str` і повертає нашу Pydantic-модель `User`: {* ../../docs_src/security/tutorial002_an_py310.py hl[19:22,26:27] *} ## Впровадити поточного користувача { #inject-the-current-user }Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sat Feb 14 08:43:14 GMT 2026 - 6.7K bytes - Click Count (0) -
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 Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Feb 13 13:41:41 GMT 2026 - 4.4K bytes - Click Count (0) -
docs/zh-hant/docs/tutorial/security/get-current-user.md
# 取得目前使用者 { #get-current-user } 在前一章,基於依賴注入系統的安全機制會把一個 `token`(作為 `str`)提供給*路徑操作函式*: {* ../../docs_src/security/tutorial001_an_py310.py hl[12] *} 但這還不太有用。 讓它改為回傳目前使用者吧。 ## 建立使用者模型 { #create-a-user-model } 先建立一個 Pydantic 的使用者模型。 就像用 Pydantic 宣告請求體一樣,我們也可以在其他地方使用它: {* ../../docs_src/security/tutorial002_an_py310.py hl[5,12:6] *} ## 建立 `get_current_user` 依賴 { #create-a-get-current-user-dependency }Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sat Feb 14 08:15:26 GMT 2026 - 3.7K bytes - Click Count (0) -
docs/ja/docs/tutorial/security/get-current-user.md
{* ../../docs_src/security/tutorial002_an_py310.py hl[19:22,26:27] *} ## 現在のユーザーの注入 { #inject-the-current-user } ですので、 `get_current_user` に対して同様に *path operation* の中で `Depends` を利用できます。 {* ../../docs_src/security/tutorial002_an_py310.py hl[31] *} Pydanticモデルの `User` として、 `current_user` の型を宣言することに注意してください。 その関数の中ですべての入力補完や型チェックを行う際に役に立ちます。 /// tip | 豆知識Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Feb 13 15:24:30 GMT 2026 - 5.7K bytes - Click Count (0) -
docs/en/docs/tutorial/security/get-current-user.md
# Get Current User { #get-current-user } In the previous chapter the security system (which is based on the dependency injection system) was giving the *path operation function* a `token` as a `str`: {* ../../docs_src/security/tutorial001_an_py310.py hl[12] *} But that is still not that useful. Let's make it give us the current user. ## Create a user model { #create-a-user-model } First, let's create a Pydantic user model.Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Feb 12 13:19:43 GMT 2026 - 4K bytes - Click Count (0) -
docs/ko/docs/tutorial/security/get-current-user.md
{* ../../docs_src/security/tutorial002_an_py310.py hl[19:22,26:27] *} ## 현재 사용자 주입하기 { #inject-the-current-user } 이제 *경로 처리*에서 `get_current_user`와 함께 같은 `Depends`를 사용할 수 있습니다: {* ../../docs_src/security/tutorial002_an_py310.py hl[31] *} `current_user`의 타입을 Pydantic 모델 `User`로 선언한다는 점에 주목하세요. 이는 함수 내부에서 자동 완성과 타입 체크에 도움을 줍니다. /// tip | 팁Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sat Feb 14 08:57:01 GMT 2026 - 4.9K bytes - Click Count (0) -
docs/pt/docs/tutorial/security/get-current-user.md
{* ../../docs_src/security/tutorial002_an_py310.py hl[25] *} ## Obter o usuário { #get-the-user } `get_current_user` usará uma função utilitária (falsa) que criamos, que recebe um token como uma `str` e retorna nosso modelo Pydantic `User`: {* ../../docs_src/security/tutorial002_an_py310.py hl[19:22,26:27] *} ## Injetar o usuário atual { #inject-the-current-user }Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Feb 13 13:48:53 GMT 2026 - 4.6K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/ldap/LdapUserTest.java
} @Test public void test_constructor() { // Test constructor initializes fields correctly LdapUser user = new LdapUser(testEnv, "username"); assertEquals("username", user.getName()); assertSame(testEnv, user.getEnvironment()); assertNull(user.permissions); } @Test public void test_getName() { // Test getName returns the correct nameCreated: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 16.9K bytes - Click Count (0) -
maven-tests/mvnw
#!/bin/sh # ---------------------------------------------------------------------------- # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not use this file except in compliance
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Thu Sep 25 18:22:49 GMT 2025 - 10.4K bytes - Click Count (0)