- Sort Score
- Result 10 results
- Languages All
Results 131 - 140 of 607 for USERNAME (0.04 sec)
-
tests/test_tutorial/test_bigger_applications/test_main.py
return client def test_users_token_jessica(client: TestClient): response = client.get("/users?token=jessica") assert response.status_code == 200 assert response.json() == [{"username": "Rick"}, {"username": "Morty"}] def test_users_with_no_token(client: TestClient): response = client.get("/users") assert response.status_code == 422 assert response.json() == { "detail": [
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 27 18:19:10 UTC 2025 - 21.3K bytes - Viewed (0) -
src/main/java/jcifs/smb1/ntlmssp/Type3Message.java
} final int domainLength = domain != null ? domain.length : 0; final String userName = getUser(); byte[] user = null; if (userName != null && userName.length() != 0) { user = unicode ? userName.getBytes(UNI_ENCODING) : userName.toUpperCase().getBytes(oem); } final int userLength = user != null ? user.length : 0;Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 24.1K bytes - Viewed (0) -
docs_src/security/tutorial002_py310.py
app = FastAPI() oauth2_scheme = OAuth2PasswordBearer(tokenUrl="token") class User(BaseModel): username: str email: str | None = None full_name: str | None = None disabled: bool | None = None def fake_decode_token(token): return User( username=token + "fakedecoded", email="******@****.***", full_name="John Doe" )
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Fri Jan 07 14:11:31 UTC 2022 - 711 bytes - Viewed (0) -
tests/test_security_api_key_query.py
from fastapi.testclient import TestClient from pydantic import BaseModel app = FastAPI() api_key = APIKeyQuery(name="key") class User(BaseModel): username: str def get_current_user(oauth_header: str = Security(api_key)): 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
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Mon Nov 24 19:03:06 UTC 2025 - 1.9K bytes - Viewed (0) -
src/main/webapp/WEB-INF/view/admin/webauth/admin_webauth_edit.jsp
<label for="username" class="col-sm-3 text-sm-right col-form-label"><la:message key="labels.webauth_username"/></label> <div class="col-sm-9"> <la:errors property="username"/> <la:text styleId="username" property="username" styleClass="form-control"/>Registered: Sat Dec 20 09:19:18 UTC 2025 - Last Modified: Thu Nov 13 05:54:52 UTC 2025 - 8.5K bytes - Viewed (0) -
docs_src/security/tutorial002_an_py310.py
app = FastAPI() oauth2_scheme = OAuth2PasswordBearer(tokenUrl="token") class User(BaseModel): username: str email: str | None = None full_name: str | None = None disabled: bool | None = None def fake_decode_token(token): return User( username=token + "fakedecoded", email="******@****.***", full_name="John Doe" )
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Mar 18 12:29:59 UTC 2023 - 761 bytes - Viewed (0) -
docs_src/dependencies/tutorial008d_py39.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(
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 694 bytes - Viewed (0) -
internal/event/target/postgresql.go
if !args.Host.IsEmpty() { params = append(params, "host="+args.Host.String()) } if args.Port != "" { params = append(params, "port="+args.Port) } if args.Username != "" { params = append(params, "username="+args.Username) } if args.Password != "" { params = append(params, "password="+args.Password) } if args.Database != "" { params = append(params, "dbname="+args.Database) }
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Sun Mar 30 00:56:02 UTC 2025 - 13.3K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/auth/AuthenticationManager.java
* @param username The username for which to change the password. * @param password The new password. * @return True if the password was successfully changed in all chains, false otherwise. */ public boolean changePassword(final String username, final String password) { return chains().get(stream -> stream.allMatch(c -> c.changePassword(username, password))); } /**Registered: Sat Dec 20 09:19:18 UTC 2025 - Last Modified: Thu Jul 17 08:28:31 UTC 2025 - 3.1K bytes - Viewed (0) -
docs_src/dependencies/tutorial008d_an_py39.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(
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Feb 24 23:06:37 UTC 2024 - 734 bytes - Viewed (0)