- Sort Score
- Result 10 results
- Languages All
Results 141 - 150 of 607 for USERNAME (0.05 sec)
-
docs_src/dependencies/tutorial012_an_py39.py
@app.get("/items/") async def read_items(): return [{"item": "Portal Gun"}, {"item": "Plumbus"}] @app.get("/users/") async def read_users():
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 746 bytes - Viewed (0) -
docs_src/dependencies/tutorial008c_py39.py
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( 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 - 660 bytes - Viewed (0) -
cmd/iam-object-store.go
g := errgroup.WithNErrs(len(users)) for index := range users { g.Go(func() error { userName := path.Dir(users[index]) user, err := iamOS.loadUserIdentity(ctx, userName, userType) if err != nil && !errors.Is(err, errNoSuchUser) { return fmt.Errorf("unable to load the user `%s`: %w", userName, err) } userIdentities[index] = user return nil }, index) }
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 26.6K bytes - Viewed (0) -
cmd/bucket-policy.go
currTime := UTCNow() var ( username = cred.AccessKey claims = cred.Claims groups = cred.Groups ) if cred.IsTemp() || cred.IsServiceAccount() { // For derived credentials, check the parent user's permissions. username = cred.ParentUser } principalType := "Anonymous" if username != "" { principalType = "User" if len(claims) > 0 {
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 7.9K bytes - Viewed (0) -
tests/test_security_api_key_header_optional.py
from pydantic import BaseModel app = FastAPI() api_key = APIKeyHeader(name="key", auto_error=False) class User(BaseModel): username: str def get_current_user(oauth_header: Optional[str] = Security(api_key)): if oauth_header is None: return None user = User(username=oauth_header) return user @app.get("/users/me") def read_current_user(current_user: Optional[User] = Depends(get_current_user)):
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Fri Jun 30 18:25:16 UTC 2023 - 2K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/sso/spnego/SpnegoAuthenticator.java
logger.debug("principal={}", principal); } final String[] username = principal.getName().split("@", 2); if (logger.isDebugEnabled()) { logger.debug("username={}", Arrays.toString(username)); } return new SpnegoCredential(username[0]); }).orElse(null); } /** * SPNEGO filter configuration implementation.
Registered: Sat Dec 20 09:19:18 UTC 2025 - Last Modified: Fri Nov 28 16:29:12 UTC 2025 - 17.8K bytes - Viewed (3) -
tests/test_security_api_key_cookie.py
from fastapi.testclient import TestClient from pydantic import BaseModel app = FastAPI() api_key = APIKeyCookie(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 - 2K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/web/admin/fileauth/AdminFileauthAction.java
* * @param form the create form * @param username the current username * @param currentTime the current time * @return optional file authentication entity */ public static OptionalEntity<FileAuthentication> getEntity(final CreateForm form, final String username, final long currentTime) { switch (form.crudMode) { case CrudMode.CREATE:Registered: Sat Dec 20 09:19:18 UTC 2025 - Last Modified: Thu Nov 20 13:56:35 UTC 2025 - 18.7K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/web/admin/reqheader/AdminReqheaderAction.java
* @param form the form containing the request header data * @param username the username of the user performing the operation * @param currentTime the current timestamp * @return optional entity containing the request header data, or empty if creation fails */ public static OptionalEntity<RequestHeader> getEntity(final CreateForm form, final String username, final long currentTime) { switch (form.crudMode) {Registered: Sat Dec 20 09:19:18 UTC 2025 - Last Modified: Thu Nov 20 13:56:35 UTC 2025 - 17.7K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/auth/chain/LdapChain.java
public void delete(final User user) { ComponentUtil.getLdapManager().delete(user); } @Override public boolean changePassword(final String username, final String password) { final boolean changed = ComponentUtil.getLdapManager().changePassword(username, password); return !changed || ComponentUtil.getFessConfig().isLdapAdminSyncPassword(); } @Override public User load(final User user) {
Registered: Sat Dec 20 09:19:18 UTC 2025 - Last Modified: Thu Jul 17 08:28:31 UTC 2025 - 1.6K bytes - Viewed (0)