- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 62 for get_username (0.06 sec)
-
docs_src/dependencies/tutorial008e_py39.py
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 289 bytes - Viewed (0) -
docs_src/dependencies/tutorial008b_py39.py
} class OwnerError(Exception): pass def get_username(): try: yield "Rick" except OwnerError as e: raise HTTPException(status_code=400, detail=f"Owner error: {e}") @app.get("/items/{item_id}") def get_item(item_id: str, username: str = Depends(get_username)): if item_id not in data: raise HTTPException(status_code=404, detail="Item not found")
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 735 bytes - Viewed (0) -
docs_src/dependencies/tutorial008e_an_py39.py
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Mon Nov 03 10:12:49 UTC 2025 - 329 bytes - Viewed (0) -
docs_src/dependencies/tutorial008c_py39.py
app = FastAPI() class InternalError(Exception): pass def get_username(): try: yield "Rick" except InternalError: print("Oops, we didn't raise again, Britney 😱") @app.get("/items/{item_id}") def get_item(item_id: str, username: str = Depends(get_username)): if item_id == "portal-gun": raise InternalError(
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 660 bytes - Viewed (0) -
docs_src/dependencies/tutorial008d_py39.py
app = FastAPI() class InternalError(Exception): pass def get_username(): try: yield "Rick" except InternalError: print("We don't swallow the internal error here, we raise again 😎") raise @app.get("/items/{item_id}") def get_item(item_id: str, username: str = Depends(get_username)): if item_id == "portal-gun": raise InternalError(
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 694 bytes - Viewed (0) -
src/main/java/org/codelibs/fess/opensearch/config/exentity/FileConfig.java
} paramMap.put(Param.Client.FTP_AUTHENTICATIONS, ftpAuthList.toArray(new FtpAuthentication[ftpAuthList.size()])); if (logger.isDebugEnabled()) { ftpAuthList.forEach(ftpAuth -> logger .debug("FtpAuthentication: " + ftpAuth.getServer() + ":" + ftpAuth.getPort() + " " + ftpAuth.getUsername())); }Registered: Sat Dec 20 09:19:18 UTC 2025 - Last Modified: Mon Nov 24 02:07:40 UTC 2025 - 11.1K bytes - Viewed (0) -
src/test/java/jcifs/pac/PacLogonInfoTest.java
// Use mocking to test getters without complex PAC data creation PacLogonInfo logonInfo = mock(PacLogonInfo.class); // Setup mock responses when(logonInfo.getUserName()).thenReturn(TEST_USERNAME); when(logonInfo.getDomainName()).thenReturn(TEST_DOMAIN); when(logonInfo.getServerName()).thenReturn(TEST_SERVER); when(logonInfo.getLogonTime()).thenReturn(new Date());Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.3K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/client/smb1/SmbAuthentication.java
} /** * Returns the username. * @return The username. */ public String getUsername() { return username; } /** * Sets the username. * @param username The username. */ public void setUsername(final String username) { this.username = username; } /** * Returns the password.Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Thu Sep 18 09:30:45 UTC 2025 - 3.9K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/opensearch/config/bsentity/dbmeta/FileAuthenticationDbm.java
(et, vl) -> ((FileAuthentication) et).setUpdatedTime(DfTypeUtil.toLong(vl)), "updatedTime"); setupEpg(_epgMap, et -> ((FileAuthentication) et).getUsername(), (et, vl) -> ((FileAuthentication) et).setUsername(DfTypeUtil.toString(vl)), "username"); } @Override public PropertyGateway findPropertyGateway(final String prop) { return doFindEpg(_epgMap, prop); }
Registered: Sat Dec 20 09:19:18 UTC 2025 - Last Modified: Thu Nov 27 07:01:25 UTC 2025 - 12.6K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/NtlmPasswordAuthenticationTest.java
assertEquals("user", auth.getUsername()); assertEquals("password", auth.getPassword()); } // Test constructor with user info string without password @Test void testConstructorWithUserInfoNoPassword() { NtlmPasswordAuthentication auth = new NtlmPasswordAuthentication("DOMAIN;user"); assertEquals("DOMAIN", auth.getDomain()); assertEquals("user", auth.getUsername());
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.7K bytes - Viewed (0)