- Sort Score
- Num 10 results
- Language All
Results 41 - 50 of 654 for usernames (0.14 seconds)
-
src/test/java/jcifs/smb/NtlmPasswordAuthenticatorSecurityTest.java
} } @Test @DisplayName("Test password stored as char array") void testPasswordStoredAsCharArray() throws Exception { authenticator = new NtlmPasswordAuthenticator("DOMAIN", "username", "password123"); // Use reflection to verify password is stored as char[] Field passwordField = NtlmPasswordAuthenticator.class.getDeclaredField("password"); passwordField.setAccessible(true);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 8.5K bytes - Click Count (0) -
docs/zh-hant/docs/tutorial/security/simple-oauth2.md
# 簡易 OAuth2:Password 與 Bearer { #simple-oauth2-with-password-and-bearer } 現在從上一章延伸,補上缺少的部分,完成整個安全流程。 ## 取得 `username` 與 `password` { #get-the-username-and-password } 我們要使用 **FastAPI** 提供的安全性工具來取得 `username` 與 `password`。 OAuth2 規範中,當使用「password flow」(我們現在使用的)時,用戶端/使用者必須以表單資料送出 `username` 與 `password` 欄位。 而且規範要求欄位名稱必須就是這兩個,所以像是 `user-name` 或 `email` 都不行。 但別擔心,你在前端要怎麼呈現給最終使用者都可以。 而你的資料庫模型也可以使用任何你想要的欄位名稱。Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:05:38 GMT 2026 - 9.1K bytes - Click Count (0) -
src/main/java/jcifs/smb/AuthenticationProvider.java
this.domain = domain; this.authType = authType; this.timestamp = System.currentTimeMillis(); this.clientAddress = clientAddress; this.serverAddress = serverAddress; } public String getUsername() { return username; } public String getDomain() { return domain; }Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 3.9K bytes - Click Count (1) -
compat/maven-artifact/src/main/java/org/apache/maven/repository/Proxy.java
} /** * Get the proxy username. * * @return username for the proxy server */ public String getUserName() { return userName; } /** * Set the proxy username. * * @param userName username for the proxy server */ public void setUserName(String userName) { this.userName = userName; } /**Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Oct 25 12:31:46 GMT 2024 - 4K bytes - Click Count (0) -
tests/test_security_oauth2_optional.py
} }, auto_error=False, ) class User(BaseModel): username: str def get_current_user(oauth_header: str | None = Security(reusable_oauth2)): if oauth_header is None: return None user = User(username=oauth_header) return user @app.post("/login") def login(form_data: OAuth2PasswordRequestFormStrict = Depends()):Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Tue Feb 17 09:59:14 GMT 2026 - 9.8K bytes - Click Count (0) -
docs_src/configure_swagger_ui/tutorial002_py310.py
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Feb 12 13:19:43 GMT 2026 - 221 bytes - Click Count (0) -
docs_src/bigger_applications/app_an_py310/routers/users.py
@router.get("/users/", tags=["users"]) async def read_users(): return [{"username": "Rick"}, {"username": "Morty"}] @router.get("/users/me", tags=["users"]) async def read_user_me(): return {"username": "fakecurrentuser"} @router.get("/users/{username}", tags=["users"]) async def read_user(username: str):
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Feb 12 13:19:43 GMT 2026 - 407 bytes - Click Count (0) -
docs_src/request_forms/tutorial001_an_py310.py
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Feb 12 13:19:43 GMT 2026 - 223 bytes - Click Count (0) -
fastapi/security/oauth2.py
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Tue Mar 24 16:32:10 GMT 2026 - 23.6K bytes - Click Count (0) -
tests/test_security_openid_connect.py
from inline_snapshot import snapshot from pydantic import BaseModel app = FastAPI() oid = OpenIdConnect(openIdConnectUrl="/openid") class User(BaseModel): username: str def get_current_user(oauth_header: str = Security(oid)): user = User(username=oauth_header) return user @app.get("/users/me") def read_current_user(current_user: User = Depends(get_current_user)): return current_user
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Feb 08 10:18:38 GMT 2026 - 2.5K bytes - Click Count (0)