- Sort Score
- Num 10 results
- Language All
Results 211 - 220 of 600 for user_me (0.07 seconds)
-
src/test/java/jcifs/smb1/smb1/NtlmContextTest.java
@ExtendWith(MockitoExtension.class) class NtlmContextTest { @Mock private NtlmPasswordAuthentication mockAuth; private final String domain = "TEST_DOMAIN"; private final String username = "testUser"; private final String password = "testPassword"; private final String workstation = "TEST_WORKSTATION"; @BeforeEach void setUp() { // MockitoExtension handles mock initializationCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 8.9K bytes - Click Count (0) -
docs/zh-hant/docs/advanced/security/oauth2-scopes.md
## 驗證 `username` 與資料結構 { #verify-the-username-and-data-shape } 我們先確認取得了 `username`,並取出 scopes。 接著用 Pydantic 模型驗證這些資料(捕捉 `ValidationError` 例外),若在讀取 JWT token 或用 Pydantic 驗證資料時出錯,就丟出先前建立的 `HTTPException`。 為此,我們更新了 Pydantic 模型 `TokenData`,加入新屬性 `scopes`。 透過 Pydantic 驗證資料,我們可以確保,例如,scopes 正好是 `list` 的 `str`,而 `username` 是 `str`。 否則若是 `dict` 或其他型別,可能在後續某處使應用壞掉,造成安全風險。Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:05:38 GMT 2026 - 12.7K bytes - Click Count (0) -
src/test/java/jcifs/config/PropertyConfigurationTest.java
parentProps.setProperty("jcifs.smb.client.domain", "parentdomain"); parentProps.setProperty("jcifs.smb.client.username", "parentuser"); Properties childProps = new Properties(parentProps); childProps.setProperty("jcifs.smb.client.username", "childuser"); // When PropertyConfiguration testConfig = new PropertyConfiguration(childProps); // Then
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 11.3K bytes - Click Count (0) -
docs/pt/docs/advanced/security/http-basic-auth.md
* Isto contém o `username` e o `password` enviado. {* ../../docs_src/security/tutorial006_an_py310.py hl[4,8,12] *} Quando você tentar abrir a URL pela primeira vez (ou clicar no botão "Executar" na documentação) o navegador vai pedir pelo seu usuário e senha: <img src="/img/tutorial/security/image12.png"> ## Verifique o usuário { #check-the-username } Aqui está um exemplo mais completo.Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:20:43 GMT 2026 - 5.2K bytes - Click Count (0) -
docs_src/dependencies/tutorial008d_py310.py
raise @app.get("/items/{item_id}") def get_item(item_id: str, username: str = Depends(get_username)): if item_id == "portal-gun": raise InternalError( f"The portal gun is too dangerous to be owned by {username}" ) if item_id != "plumbus": raise HTTPException(
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Feb 12 13:19:43 GMT 2026 - 694 bytes - Click Count (0) -
src/main/resources/app.xml
<property name="updateCommand">[ "/usr/sbin/htpasswd", "-b", "/tmp/test.txt", "$USERNAME", "$PASSWORD" ]</property> <property name="deleteCommand">[ "/usr/sbin/htpasswd", "-D", "/tmp/test.txt", "$USERNAME" ]</property> <property name="targetUsers">[ "admin" ]</property> </component> </arg>
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sat Mar 28 06:59:19 GMT 2026 - 4K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/WebPlatformUrlTestData.kt
var base: String? = null var scheme = "" var username = "" var password: String? = null var host = "" var port = "" var path = "" var query = "" var fragment = "" fun expectParseFailure() = scheme.isEmpty() private operator fun set( name: String, value: String, ) { when (name) { "s" -> scheme = value "u" -> username = value "pass" -> password = value
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 3.7K bytes - Click Count (0) -
fastapi/.agents/skills/fastapi/references/dependencies.md
yield "Rick" finally: print("Cleanup up before response is sent") UserNameDep = Annotated[str, Depends(get_username, scope="function")] @app.get("/users/me") def get_user_me(username: UserNameDep): return username ``` ## Class Dependencies Avoid creating class dependencies when possible. If a class is needed, instead create a regular function dependency that returns a class instance. Do this:
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Mar 01 10:05:57 GMT 2026 - 3.2K bytes - Click Count (0) -
docs_src/dependencies/tutorial008d_an_py310.py
raise @app.get("/items/{item_id}") def get_item(item_id: str, username: Annotated[str, Depends(get_username)]): if item_id == "portal-gun": raise InternalError( f"The portal gun is too dangerous to be owned by {username}" ) if item_id != "plumbus": raise HTTPException(
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Feb 12 13:19:43 GMT 2026 - 734 bytes - Click Count (0) -
docs_src/dependencies/tutorial012_an_py310.py
@app.get("/items/") async def read_items(): return [{"item": "Portal Gun"}, {"item": "Plumbus"}] @app.get("/users/") async def read_users():
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Feb 12 13:19:43 GMT 2026 - 746 bytes - Click Count (0)