- Sort Score
- Num 10 results
- Language All
Results 51 - 60 of 574 for user_me (0.04 seconds)
-
compat/maven-artifact/src/main/java/org/apache/maven/artifact/repository/Authentication.java
} /** * Get the username used to access the repository. * * @return username at repository */ public String getUsername() { return username; } /** * Set username used to access the repository. * * @param userName the username used to access repository */ public void setUsername(final String userName) { this.username = userName; }Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Fri Oct 25 12:31:46 GMT 2024 - 3.1K bytes - Click Count (0) -
docs/en/docs/advanced/security/http-basic-auth.md
* It contains the `username` and `password` sent. {* ../../docs_src/security/tutorial006_an_py39.py hl[4,8,12] *} When you try to open the URL for the first time (or click the "Execute" button in the docs) the browser will ask you for your username and password: <img src="/img/tutorial/security/image12.png"> ## Check the username { #check-the-username } Here's a more complete example.Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sun Aug 31 09:15:41 GMT 2025 - 5K bytes - Click Count (0) -
docs_src/security/tutorial003_an_py310.py
oauth2_scheme = OAuth2PasswordBearer(tokenUrl="token") class User(BaseModel): username: str email: str | None = None full_name: str | None = None disabled: bool | None = None class UserInDB(User): hashed_password: str def get_user(db, username: str): if username in db: user_dict = db[username] return UserInDB(**user_dict) def fake_decode_token(token):
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Mon Nov 24 19:03:06 GMT 2025 - 2.5K bytes - Click Count (0) -
tests/test_tutorial/test_security/test_tutorial003.py
assert response.json() == {"detail": "Incorrect username or password"} def test_login_incorrect_username(client: TestClient): response = client.post("/token", data={"username": "foo", "password": "secret"}) assert response.status_code == 400, response.text assert response.json() == {"detail": "Incorrect username or password"} def test_no_token(client: TestClient): response = client.get("/users/me")
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 18:19:10 GMT 2025 - 7.7K bytes - Click Count (0) -
tests/update_test.go
Token: Token{Content: "token"}, } o1, err := saveTokenOwner(&owner) if err != nil { t.Errorf("failed to save token owner, got error: %v", err) } if o1.Name != "user_name" { t.Errorf(`owner name should be "user_name", but got: "%s"`, o1.Name) } if o1.Token.Content != "token_encrypted" { t.Errorf(`token content should be "token_encrypted", but got: "%s"`, o1.Token.Content) } owner = TokenOwner{Created: Sun Dec 28 09:35:17 GMT 2025 - Last Modified: Mon Jul 21 02:46:58 GMT 2025 - 30.4K bytes - Click Count (0) -
tests/test_schema_compat_pydantic_v2.py
class User(BaseModel): username: str role: PlatformRole | OtherRole @app.get("/users") async def get_user() -> User: return {"username": "alice", "role": "admin"} client = TestClient(app) return client @needs_py310 def test_get(client: TestClient): response = client.get("/users") assert response.json() == {"username": "alice", "role": "admin"}Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 20 15:55:38 GMT 2025 - 2.7K bytes - Click Count (0) -
tests/test_forms_single_model.py
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 18:19:10 GMT 2025 - 3.4K bytes - Click Count (0) -
tests/test_forms_single_param.py
from fastapi import FastAPI, Form from fastapi.testclient import TestClient app = FastAPI() @app.post("/form/") def post_form(username: Annotated[str, Form()]): return username client = TestClient(app) def test_single_form_field(): response = client.post("/form/", data={"username": "Rick"}) assert response.status_code == 200, response.text assert response.json() == "Rick"
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 21:25:59 GMT 2025 - 3.5K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/app/web/base/login/EntraIdCredential.java
final String username = account.username(); if (logger.isDebugEnabled()) { logger.debug("homeAccountId={}, username={}", homeAccountId, username); } permissionSet.add(systemHelper.getSearchRoleByUser(homeAccountId)); permissionSet.add(systemHelper.getSearchRoleByUser(username));Created: Sat Dec 20 09:19:18 GMT 2025 - Last Modified: Fri Nov 28 16:29:12 GMT 2025 - 7.8K bytes - Click Count (0) -
tests/test_tutorial/test_security/test_tutorial004.py
], ) def get_mod(request: pytest.FixtureRequest): mod = importlib.import_module(f"docs_src.security.{request.param}") return mod def get_access_token(*, username="johndoe", password="secret", client: TestClient): data = {"username": username, "password": password} response = client.post("/token", data=data) content = response.json() access_token = content.get("access_token") return access_token
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Fri Dec 26 10:43:02 GMT 2025 - 13.3K bytes - Click Count (0)