- Sort Score
- Result 10 results
- Languages All
Results 211 - 220 of 612 for userName (0.05 sec)
-
docs_src/dependencies/tutorial008d.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 Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Feb 24 23:06:37 UTC 2024 - 694 bytes - Viewed (0) -
docs_src/dependencies/tutorial008d_an.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 Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Feb 24 23:06:37 UTC 2024 - 744 bytes - Viewed (0) -
docs_src/dependencies/tutorial012_an.py
@app.get("/items/") async def read_items(): return [{"item": "Portal Gun"}, {"item": "Plumbus"}] @app.get("/users/") async def read_users():
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Mar 18 12:29:59 UTC 2023 - 756 bytes - Viewed (0) -
tests/test_tutorial/test_bigger_applications/test_main_an.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() == IsDict( {
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Apr 18 19:40:57 UTC 2024 - 24.6K bytes - Viewed (0) -
docs/zh/docs/tutorial/security/first-steps.md
OAuth2 的设计目标是为了让后端或 API 独立于服务器验证用户身份。 但在本例中,**FastAPI** 应用会处理 API 与身份验证。 下面,我们来看一下简化的运行流程: - 用户在前端输入 `username` 与`password`,并点击**回车** - (用户浏览器中运行的)前端把 `username` 与`password` 发送至 API 中指定的 URL(使用 `tokenUrl="token"` 声明) - API 检查 `username` 与`password`,并用令牌(`Token`) 响应(暂未实现此功能): - 令牌只是用于验证用户的字符串 - 一般来说,令牌会在一段时间后过期 - 过时后,用户要再次登录 - 这样一来,就算令牌被人窃取,风险也较低。因为它与永久密钥不同,**在绝大多数情况下**不会长期有效
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 7.3K bytes - Viewed (0) -
tests/test_tutorial/test_bigger_applications/test_main_an_py39.py
return client @needs_py39 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"}] @needs_py39 def test_users_with_no_token(client: TestClient): response = client.get("/users") assert response.status_code == 422 assert response.json() == IsDict( {
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Apr 18 19:40:57 UTC 2024 - 24.9K bytes - Viewed (0) -
internal/event/target/elasticsearch.go
return errors.New("format value unrecognized") } } if a.Index == "" { return errors.New("empty index value") } if (a.Username == "" && a.Password != "") || (a.Username != "" && a.Password == "") { return errors.New("username and password should be set in pairs") } return nil } // ElasticsearchTarget - Elasticsearch target. type ElasticsearchTarget struct {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Sep 06 23:06:30 UTC 2024 - 15K bytes - Viewed (0) -
tests/test_tutorial/test_dependencies/test_tutorial012.py
"X-Token": "fake-super-secret-token", "X-Key": "fake-super-secret-key", }, ) assert response.status_code == 200, response.text assert response.json() == [{"username": "Rick"}, {"username": "Morty"}] def test_openapi_schema(): response = client.get("/openapi.json") assert response.status_code == 200, response.text assert response.json() == { "openapi": "3.1.0",
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Apr 18 19:40:57 UTC 2024 - 8.4K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/exception/FessUserNotFoundException.java
public class FessUserNotFoundException extends FessSystemException { private static final long serialVersionUID = 1L; public FessUserNotFoundException(final String username) { super("User is not found: " + username); }
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:37:57 UTC 2024 - 903 bytes - Viewed (0) -
.github/workflows/sigbuild-docker-presubmit.yml
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0 with: registry: gcr.io username: _json_key password: ${{ secrets.GCP_CREDS }} - name: Login to AR # Once this is verified, change the label's name. For now, we will piggyback on gcr.io actions.
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Fri Nov 01 08:40:10 UTC 2024 - 4.6K bytes - Viewed (0)