- Sort Score
- Result 10 results
- Languages All
Results 211 - 220 of 588 for UserName (0.07 sec)
-
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) -
src/main/java/org/codelibs/fess/app/web/admin/elevateword/AdminElevatewordAction.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);
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:53:18 UTC 2024 - 18.7K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/web/admin/scheduler/AdminSchedulerAction.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);
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Sat Oct 12 01:54:46 UTC 2024 - 18.1K bytes - Viewed (0) -
docs/ja/docs/tutorial/extra-models.md
```Python UserInDB(**user_dict) ``` 以下と同等の結果になります: ```Python UserInDB( username="john", password="secret", email="******@****.***", full_name=None, ) ``` もっと正確に言えば、`user_dict`を将来的にどんな内容であっても直接使用することになります: ```Python UserInDB( username = user_dict["username"], password = user_dict["password"], email = user_dict["email"],
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 6.7K bytes - Viewed (0)