- Sort Score
- Num 10 results
- Language All
Results 121 - 130 of 639 for USERNAME (0.6 seconds)
-
docs_src/dependencies/tutorial008c_an_py310.py
print("Oops, we didn't raise again, Britney 😱") @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(
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Feb 12 13:19:43 GMT 2026 - 700 bytes - Click Count (0) -
internal/config/dns/operator_dns.go
rootCAs *x509.CertPool username string password string } // OperatorOption - functional options pattern style for OperatorDNS type OperatorOption func(*OperatorDNS) // Authentication - custom username and password for authenticating at the endpoint func Authentication(username, password string) OperatorOption { return func(args *OperatorDNS) { args.username = username args.password = password }
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Mon Nov 11 14:51:43 GMT 2024 - 6.6K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/app/web/admin/relatedcontent/AdminRelatedcontentAction.java
final SystemHelper systemHelper = ComponentUtil.getSystemHelper(); final String username = systemHelper.getUsername(); final long currentTime = systemHelper.getCurrentTimeAsLong(); return getEntity(form, username, currentTime).map(entity -> { entity.setUpdatedBy(username); entity.setUpdatedTime(currentTime);
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Nov 20 13:56:35 GMT 2025 - 15.5K bytes - Click Count (0) -
docs/en/docs/tutorial/request-forms.md
The <dfn title="specification">spec</dfn> requires the fields to be exactly named `username` and `password`, and to be sent as form fields, not JSON. With `Form` you can declare the same configurations as with `Body` (and `Query`, `Path`, `Cookie`), including validation, examples, an alias (e.g. `user-name` instead of `username`), etc. /// info
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 05 18:13:19 GMT 2026 - 2.6K bytes - Click Count (0) -
tests/test_security_api_key_cookie.py
from inline_snapshot import snapshot 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
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Feb 08 10:18:38 GMT 2026 - 2.1K bytes - Click Count (0) -
docs/zh/docs/tutorial/security/first-steps.md
OAuth2 的设计目标是让后端或 API 与负责用户认证的服务器解耦。 但在这个例子中,**FastAPI** 应用同时处理 API 和认证。 从这个简化的角度来看看流程: * 用户在前端输入 `username` 和 `password`,然后按下 `Enter`。 * 前端(运行在用户浏览器中)把 `username` 和 `password` 发送到我们 API 中的特定 URL(使用 `tokenUrl="token"` 声明)。 * API 校验 `username` 和 `password`,并返回一个“令牌”(这些我们尚未实现)。 * “令牌”只是一个字符串,包含一些内容,之后可用来验证该用户。 * 通常,令牌会在一段时间后过期。 * 因此,用户过一段时间需要重新登录。
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:06:37 GMT 2026 - 7.5K bytes - Click Count (0) -
tests/test_security_api_key_cookie_description.py
from pydantic import BaseModel app = FastAPI() api_key = APIKeyCookie(name="key", description="An API Cookie 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
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Feb 08 10:18:38 GMT 2026 - 2.3K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/helper/CurlHelper.java
final FessConfig fessConfig = ComponentUtil.getFessConfig(); final String username = fessConfig.getFesenUsername(); final String password = fessConfig.getFesenPassword(); if (StringUtil.isNotBlank(username) && StringUtil.isNotBlank(password)) { final String value = username + ":" + password;
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Nov 28 16:29:12 GMT 2025 - 6.1K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/app/web/admin/webauth/AdminWebauthAction.java
* * @param form the form containing the web authentication data * @param username the username of the current user * @param currentTime the current timestamp * @return an optional WebAuthentication entity */ public static OptionalEntity<WebAuthentication> getEntity(final CreateForm form, final String username, final long currentTime) { switch (form.crudMode) { case CrudMode.CREATE:Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Nov 20 13:56:35 GMT 2025 - 19.7K bytes - Click Count (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.
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sun Mar 15 08:18:23 GMT 2026 - 18.2K bytes - Click Count (3)