- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 227 for tutorial007_an_py39 (0.07 sec)
-
docs_src/security/tutorial007_an_py39.py
Charlie Marsh <******@****.***> 1711472213 -0400
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Tue Mar 26 16:56:53 UTC 2024 - 1.1K bytes - Viewed (0) -
docs_src/query_params_str_validations/tutorial007_an_py39.py
Charlie Marsh <******@****.***> 1711472213 -0400
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Tue Mar 26 16:56:53 UTC 2024 - 350 bytes - Viewed (0) -
docs/zh/docs/advanced/security/http-basic-auth.md
为了解决这个问题,我们首先将 `username` 和 `password` 转换为使用 UTF-8 编码的 `bytes` 。 然后我们可以使用 `secrets.compare_digest()` 来确保 `credentials.username` 是 `"stanleyjobson"`,且 `credentials.password` 是`"swordfish"`。 {* ../../docs_src/security/tutorial007_an_py39.py hl[1,12:24] *} 这类似于: ```Python if not (credentials.username == "stanleyjobson") or not (credentials.password == "swordfish"): # Return some error ... ```
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Mon Nov 18 02:25:44 UTC 2024 - 4.2K bytes - Viewed (0) -
docs/pt/docs/advanced/security/http-basic-auth.md
Então nós podemos utilizar o `secrets.compare_digest()` para garantir que o `credentials.username` é `"stanleyjobson"`, e que o `credentials.password` é `"swordfish"`. {* ../../docs_src/security/tutorial007_an_py39.py hl[1,12:24] *} Isso seria parecido com: ```Python if not (credentials.username == "stanleyjobson") or not (credentials.password == "swordfish"): # Return some error ... ```
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Nov 12 16:23:57 UTC 2025 - 5.3K bytes - Viewed (0) -
docs/es/docs/advanced/security/http-basic-auth.md
Luego podemos usar `secrets.compare_digest()` para asegurar que `credentials.username` es `"stanleyjobson"`, y que `credentials.password` es `"swordfish"`. {* ../../docs_src/security/tutorial007_an_py39.py hl[1,12:24] *} Esto sería similar a: ```Python if not (credentials.username == "stanleyjobson") or not (credentials.password == "swordfish"): # Devuelve algún error ... ```
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Tue Dec 16 16:33:45 UTC 2025 - 5.4K bytes - Viewed (0) -
docs/de/docs/advanced/security/http-basic-auth.md
Dann können wir `secrets.compare_digest()` verwenden, um sicherzustellen, dass `credentials.username` `"stanleyjobson"` und `credentials.password` `"swordfish"` ist. {* ../../docs_src/security/tutorial007_an_py39.py hl[1,12:24] *} Dies wäre das gleiche wie: ```Python if not (credentials.username == "stanleyjobson") or not (credentials.password == "swordfish"): # Einen Error zurückgeben ... ```
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Sep 20 15:10:09 UTC 2025 - 6.2K bytes - Viewed (0) -
docs/ru/docs/advanced/security/http-basic-auth.md
Затем можно использовать `secrets.compare_digest()`, чтобы убедиться, что `credentials.username` равен `"stanleyjobson"`, а `credentials.password` — `"swordfish"`. {* ../../docs_src/security/tutorial007_an_py39.py hl[1,12:24] *} Это было бы похоже на: ```Python if not (credentials.username == "stanleyjobson") or not (credentials.password == "swordfish"): # Вернуть ошибку ... ```
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Tue Sep 30 11:37:11 UTC 2025 - 7.4K bytes - Viewed (0) -
tests/test_tutorial/test_query_params_str_validations/test_tutorial007.py
@pytest.fixture( name="client", params=[ pytest.param("tutorial007_py39"), pytest.param("tutorial007_py310", marks=needs_py310), pytest.param("tutorial007_an_py39"), pytest.param("tutorial007_an_py310", marks=needs_py310), ], ) def get_client(request: pytest.FixtureRequest): mod = importlib.import_module( f"docs_src.query_params_str_validations.{request.param}" )
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Fri Dec 26 10:43:02 UTC 2025 - 4.6K bytes - Viewed (0) -
docs/en/docs/advanced/security/http-basic-auth.md
Then we can use `secrets.compare_digest()` to ensure that `credentials.username` is `"stanleyjobson"`, and that `credentials.password` is `"swordfish"`. {* ../../docs_src/security/tutorial007_an_py39.py hl[1,12:24] *} This would be similar to: ```Python if not (credentials.username == "stanleyjobson") or not (credentials.password == "swordfish"): # Return some error ... ```
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sun Aug 31 09:15:41 UTC 2025 - 5K bytes - Viewed (0) -
tests/test_tutorial/test_security/test_tutorial007.py
from base64 import b64encode import pytest from fastapi.testclient import TestClient @pytest.fixture( name="client", params=[ pytest.param("tutorial007_py39"), pytest.param("tutorial007_an_py39"), ], ) def get_client(request: pytest.FixtureRequest): mod = importlib.import_module(f"docs_src.security.{request.param}") return TestClient(mod.app)
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Fri Dec 26 10:43:02 UTC 2025 - 3.2K bytes - Viewed (0)