- Sort Score
- Result 10 results
- Languages All
Results 91 - 100 of 559 for user_me (0.04 sec)
-
tests/test_tutorial/test_path_params/test_tutorial003.py
client = TestClient(app) @pytest.mark.parametrize( ("user_id", "expected_response"), [ ("me", {"user_id": "the current user"}), ("alice", {"user_id": "alice"}), ], ) def test_get_users(user_id: str, expected_response: dict): response = client.get(f"/users/{user_id}") assert response.status_code == 200, response.text assert response.json() == expected_response
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Fri Dec 26 10:43:02 UTC 2025 - 4.6K bytes - Viewed (0) -
docs_src/security/tutorial007_py39.py
status_code=status.HTTP_401_UNAUTHORIZED, detail="Incorrect username or password", headers={"WWW-Authenticate": "Basic"}, ) return credentials.username @app.get("/users/me") def read_current_user(username: str = Depends(get_current_username)):Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 1.1K bytes - Viewed (0) -
tests/test_tutorial/test_body_multiple_params/test_tutorial002.py
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Fri Dec 26 10:43:02 UTC 2025 - 11K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/web/base/login/FessLoginAssist.java
} /** * Finds a login user by username. * * @param username the username to search for * @return an optional entity containing the found user, or empty if not found */ @Override protected OptionalEntity<FessUser> doFindLoginUser(final String username) { return userBhv.selectEntity(cb -> { cb.query().setName_Equal(username); }).map(user -> (FessUser) user); }Registered: Sat Dec 20 09:19:18 UTC 2025 - Last Modified: Thu Jul 17 08:28:31 UTC 2025 - 12.1K bytes - Viewed (0) -
src/main/java/jcifs/smb/JAASAuthenticator.java
* JAAS configuration name * @param domain the domain for authentication * @param username the username for authentication * @param password the password for authentication */ public JAASAuthenticator(String serviceName, String domain, String username, String password) { super(null, domain, username, password); this.serviceName = serviceName; } /**Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 8.3K bytes - Viewed (1) -
src/main/java/org/codelibs/fess/app/web/login/LoginAction.java
} final String username = getUserBean().get().getUserId(); try { userService.changePassword(username, form.password); saveInfo(messages -> messages.addSuccessChangedPassword(GLOBAL)); } catch (final Exception e) { logger.warn("Failed to change password for user: username={}, error={}", username, e.getMessage(), e);Registered: Sat Dec 20 09:19:18 UTC 2025 - Last Modified: Thu Nov 27 07:01:25 UTC 2025 - 7.2K bytes - Viewed (0) -
tests/test_tutorial/test_generate_clients/test_tutorial002.py
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Fri Dec 26 10:43:02 UTC 2025 - 7.1K bytes - Viewed (0) -
tests/test_route_scope.py
from fastapi.routing import APIRoute, APIWebSocketRoute from fastapi.testclient import TestClient app = FastAPI() @app.get("/users/{user_id}") async def get_user(user_id: str, request: Request): route: APIRoute = request.scope["route"] return {"user_id": user_id, "path": route.path} @app.websocket("/items/{item_id}") async def websocket_item(item_id: str, websocket: WebSocket):
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Mon Sep 29 03:29:38 UTC 2025 - 1.5K bytes - Viewed (0) -
docs_src/custom_docs_ui/tutorial001_py39.py
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 1.1K bytes - Viewed (0) -
tests/test_tutorial/test_body_multiple_params/test_tutorial004.py
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Fri Dec 26 10:43:02 UTC 2025 - 9.3K bytes - Viewed (0)