- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 1,756 for securityv1 (0.51 sec)
-
tests/test_security_http_base_description.py
from fastapi import FastAPI, Security from fastapi.security.http import HTTPAuthorizationCredentials, HTTPBase from fastapi.testclient import TestClient app = FastAPI() security = HTTPBase(scheme="Other", description="Other Security Scheme") @app.get("/users/me") def read_current_user(credentials: HTTPAuthorizationCredentials = Security(security)): return {"scheme": credentials.scheme, "credentials": credentials.credentials}
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Fri Jun 30 18:25:16 UTC 2023 - 1.9K bytes - Viewed (0) -
docs/en/docs/tutorial/security/first-steps.md
**FastAPI** will know that it can use this dependency to define a "security scheme" in the OpenAPI schema (and the automatic API docs). !!! info "Technical Details" **FastAPI** will know that it can use the class `OAuth2PasswordBearer` (declared in a dependency) to define the security scheme in OpenAPI because it inherits from `fastapi.security.oauth2.OAuth2`, which in turn inherits from `fastapi.security.base.SecurityBase`.
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Mon Jun 03 01:48:20 UTC 2024 - 9.1K bytes - Viewed (0) -
docs/de/docs/reference/dependencies.md
Wenn Sie jedoch auch OAuth2-Scopes deklarieren möchten, können Sie `Security()` anstelle von `Depends()` verwenden. Sie können `Security()` direkt von `fastapi` importieren: ```python from fastapi import Security ```
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Sat Mar 30 18:16:45 UTC 2024 - 765 bytes - Viewed (0) -
docs/tr/docs/advanced/security/index.md
# Gelişmiş Güvenlik ## Ek Özellikler [Tutorial - User Guide: Security](../../tutorial/security/index.md){.internal-link target=_blank} sayfasında ele alınanların dışında güvenlikle ilgili bazı ek özellikler vardır. !!! tip "İpucu" Sonraki bölümler **mutlaka "gelişmiş" olmak zorunda değildir**. Kullanım şeklinize bağlı olarak, çözümünüz bu bölümlerden birinde olabilir. ## Önce Öğreticiyi Okuyun
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Mon May 27 16:21:37 UTC 2024 - 700 bytes - Viewed (0) -
tests/test_security_http_bearer.py
from fastapi import FastAPI, Security from fastapi.security import HTTPAuthorizationCredentials, HTTPBearer from fastapi.testclient import TestClient app = FastAPI() security = HTTPBearer() @app.get("/users/me") def read_current_user(credentials: HTTPAuthorizationCredentials = Security(security)): return {"scheme": credentials.scheme, "credentials": credentials.credentials} client = TestClient(app)
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Fri Jun 30 18:25:16 UTC 2023 - 2K bytes - Viewed (0) -
tests/test_security_http_digest_description.py
from fastapi import FastAPI, Security from fastapi.security import HTTPAuthorizationCredentials, HTTPDigest from fastapi.testclient import TestClient app = FastAPI() security = HTTPDigest(description="HTTPDigest scheme") @app.get("/users/me") def read_current_user(credentials: HTTPAuthorizationCredentials = Security(security)): return {"scheme": credentials.scheme, "credentials": credentials.credentials} client = TestClient(app)
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Fri Jun 30 18:25:16 UTC 2023 - 2.2K bytes - Viewed (0) -
security/pkg/nodeagent/cache/secretcache.go
"istio.io/istio/pkg/file" istiolog "istio.io/istio/pkg/log" "istio.io/istio/pkg/queue" "istio.io/istio/pkg/security" "istio.io/istio/pkg/spiffe" "istio.io/istio/pkg/util/sets" "istio.io/istio/security/pkg/monitoring" nodeagentutil "istio.io/istio/security/pkg/nodeagent/util" pkiutil "istio.io/istio/security/pkg/pki/util" ) var ( cacheLog = istiolog.RegisterScope("cache", "cache debugging")
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Mar 04 08:29:46 UTC 2024 - 28.2K bytes - Viewed (0) -
security/pkg/server/ca/server_test.go
) type mockAuthenticator struct { authSource security.AuthSource identities []string kubernetesInfo security.KubernetesInfo errMsg string } func (authn *mockAuthenticator) AuthenticatorType() string { return "mockAuthenticator" } func (authn *mockAuthenticator) Authenticate(_ security.AuthContext) (*security.Caller, error) { if len(authn.errMsg) > 0 {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Feb 28 16:41:38 UTC 2024 - 15.8K bytes - Viewed (0) -
security/pkg/credentialfetcher/fetcher.go
package credentialfetcher import ( "fmt" "istio.io/istio/pkg/security" "istio.io/istio/security/pkg/credentialfetcher/plugin" ) func NewCredFetcher(credtype, trustdomain, jwtPath, identityProvider string) (security.CredFetcher, error) { switch credtype { case security.GCE: return plugin.CreateGCEPlugin(trustdomain, jwtPath, identityProvider), nil case security.JWT, "": // If unset, also default to JWT for backwards compatibility
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Oct 07 22:21:41 UTC 2022 - 1.4K bytes - Viewed (0) -
tests/test_security_http_bearer_description.py
from fastapi import FastAPI, Security from fastapi.security import HTTPAuthorizationCredentials, HTTPBearer from fastapi.testclient import TestClient app = FastAPI() security = HTTPBearer(description="HTTP Bearer token scheme") @app.get("/users/me") def read_current_user(credentials: HTTPAuthorizationCredentials = Security(security)): return {"scheme": credentials.scheme, "credentials": credentials.credentials}
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Fri Jun 30 18:25:16 UTC 2023 - 2.2K bytes - Viewed (0)