- Sort Score
- Result 10 results
- Languages All
Results 361 - 370 of 554 for secure (0.96 sec)
-
tests/test_security_api_key_header_optional.py
return current_user client = TestClient(app) def test_security_api_key(): response = client.get("/users/me", headers={"key": "secret"}) assert response.status_code == 200, response.text assert response.json() == {"username": "secret"} def test_security_api_key_no_key(): response = client.get("/users/me") assert response.status_code == 200, response.text
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Fri Jun 30 18:25:16 UTC 2023 - 2K bytes - Viewed (0) -
tests/test_security_api_key_cookie.py
return current_user def test_security_api_key(): client = TestClient(app, cookies={"key": "secret"}) response = client.get("/users/me") assert response.status_code == 200, response.text assert response.json() == {"username": "secret"} def test_security_api_key_no_key(): client = TestClient(app) response = client.get("/users/me")
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Mon Nov 24 19:03:06 UTC 2025 - 2K bytes - Viewed (0) -
docs_src/bigger_applications/app_py39/dependencies.py
from fastapi import Header, HTTPException async def get_token_header(x_token: str = Header()): if x_token != "fake-super-secret-token": raise HTTPException(status_code=400, detail="X-Token header invalid") async def get_query_token(token: str): if token != "jessica":
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 369 bytes - Viewed (0) -
tests/test_security_api_key_cookie_description.py
return current_user def test_security_api_key(): client = TestClient(app, cookies={"key": "secret"}) response = client.get("/users/me") assert response.status_code == 200, response.text assert response.json() == {"username": "secret"} def test_security_api_key_no_key(): client = TestClient(app) response = client.get("/users/me")
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Mon Nov 24 19:03:06 UTC 2025 - 2.1K bytes - Viewed (0) -
tests/test_tutorial/test_security/test_tutorial006.py
client = TestClient(mod.app) return client def test_security_http_basic(client: TestClient): response = client.get("/users/me", auth=("john", "secret")) assert response.status_code == 200, response.text assert response.json() == {"username": "john", "password": "secret"} def test_security_http_basic_no_credentials(client: TestClient): response = client.get("/users/me")
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 2.6K bytes - Viewed (0) -
tests/test_security_http_basic_optional.py
client = TestClient(app) def test_security_http_basic(): response = client.get("/users/me", auth=("john", "secret")) assert response.status_code == 200, response.text assert response.json() == {"username": "john", "password": "secret"} def test_security_http_basic_no_credentials(): response = client.get("/users/me") assert response.status_code == 200, response.text
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Mon Nov 24 19:03:06 UTC 2025 - 2.6K bytes - Viewed (0) -
internal/config/identity/openid/help.go
Type: "string", }, config.HelpKV{ Key: ClientSecret, Description: `secret for the unique public identifier for apps` + defaultHelpPostfix(ClientSecret), Sensitive: true, Type: "string", Secret: true, }, config.HelpKV{ Key: RolePolicy,
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Fri Jun 23 14:45:27 UTC 2023 - 4.3K bytes - Viewed (0) -
impl/maven-core/src/main/java/org/apache/maven/execution/ActivationSettings.java
* * @param active Should the target be active? * @param optional Should the build continue if the target is not present? * @param recurse Should the target be activated and its children be activated? */ public record ActivationSettings(boolean active, boolean optional, boolean recurse) { static ActivationSettings of(final boolean active, final boolean optional) { return of(active, optional, true); }
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Tue Feb 11 16:38:19 UTC 2025 - 2K bytes - Viewed (0) -
cmd/object-api-listobjects_test.go
{testBuckets[0], "newPrefix0", "newPrefix0", nil}, {testBuckets[0], "newPrefix1", "newPrefix1", nil}, {testBuckets[0], "newzen/zen/recurse/again/again/again/pics", "recurse", nil}, {testBuckets[0], "obj0", "obj0", nil}, {testBuckets[0], "obj1", "obj1", nil}, {testBuckets[0], "obj2", "obj2", nil}, {testBuckets[1], "obj1", "obj1", nil},Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Fri Oct 10 18:57:03 UTC 2025 - 76.1K bytes - Viewed (0) -
helm/minio/templates/statefulset.yaml
{{- end }} {{- end }} volumes: - name: minio-user secret: secretName: {{ template "minio.secretName" . }} {{- if .Values.extraSecret }} - name: extra-secret secret: secretName: {{ .Values.extraSecret }} {{- end }} {{- include "minio.tlsKeysVolume" . | indent 8 }}Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Fri Oct 11 12:21:05 UTC 2024 - 10.4K bytes - Viewed (0)