- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 828 for securely (0.11 sec)
-
tests/test_security_http_base.py
from fastapi import FastAPI, Security from fastapi.security.http import HTTPAuthorizationCredentials, HTTPBase from fastapi.testclient import TestClient app = FastAPI() security = HTTPBase(scheme="Other") @app.get("/users/me") def read_current_user(credentials: HTTPAuthorizationCredentials = Security(security)): return {"scheme": credentials.scheme, "credentials": credentials.credentials} client = TestClient(app)
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jun 30 18:25:16 UTC 2023 - 1.7K bytes - Viewed (0) -
tests/test_security_oauth2_password_bearer_optional_description.py
from fastapi import FastAPI, Security from fastapi.security import OAuth2PasswordBearer from fastapi.testclient import TestClient app = FastAPI() oauth2_scheme = OAuth2PasswordBearer( tokenUrl="/token", description="OAuth2PasswordBearer security scheme", auto_error=False, ) @app.get("/items/") async def read_items(token: Optional[str] = Security(oauth2_scheme)): if token is None:
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jun 30 18:25:16 UTC 2023 - 2.2K bytes - Viewed (0) -
tests/test_security_openid_connect_description.py
from fastapi import Depends, FastAPI, Security from fastapi.security.open_id_connect_url import OpenIdConnect from fastapi.testclient import TestClient from pydantic import BaseModel app = FastAPI() oid = OpenIdConnect( openIdConnectUrl="/openid", description="OpenIdConnect security scheme" ) class User(BaseModel): username: str def get_current_user(oauth_header: str = Security(oid)):
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jun 30 18:25:16 UTC 2023 - 2.4K bytes - Viewed (0) -
src/main/java/jcifs/Configuration.java
* License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ package jcifs; import java.net.InetAddress; import java.security.SecureRandom; import java.util.List; import java.util.TimeZone; /** * * * Implementors of this interface should extend {@link jcifs.config.BaseConfiguration} or
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Thu Jan 05 13:06:39 UTC 2023 - 18K bytes - Viewed (0) -
docs/em/docs/tutorial/security/simple-oauth2.md
//// tab | ๐ 3๏ธโฃ.6๏ธโฃ & ๐ ```Python hl_lines="4 76" {!> ../../docs_src/security/tutorial003.py!} ``` //// //// tab | ๐ 3๏ธโฃ.1๏ธโฃ0๏ธโฃ & ๐ ```Python hl_lines="2 74" {!> ../../docs_src/security/tutorial003_py310.py!} ``` //// `OAuth2PasswordRequestForm` ๐ ๐ ๐ ๐ฃ ๐จ ๐ช โฎ๏ธ: * `username`. * `password`.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 8.8K bytes - Viewed (0) -
docs/zh/docs/advanced/security/http-basic-auth.md
* ไฝฟ็จ `HTTPBasic` ๅๅปบ**ๅฎๅ จๆฆๅพ** * ๅจ*่ทฏๅพๆไฝ*็ไพ่ต้กนไธญไฝฟ็จ `security` * ่ฟๅ็ฑปๅไธบ `HTTPBasicCredentials` ็ๅฏน่ฑก๏ผ * ๅ ๅซๅ้็ `username` ไธ `password` //// tab | Python 3.9+ ```Python hl_lines="4 8 12" {!> ../../docs_src/security/tutorial006_an_py39.py!} ``` //// //// tab | Python 3.8+ ```Python hl_lines="2 7 11" {!> ../../docs_src/security/tutorial006_an.py!} ``` ////
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 5.2K bytes - Viewed (0) -
architecture/tests/integration.md
### Security Integration Tests - **Location**: `tests/integration/security` - **Purpose**: Tests related to the security features and components of Istio, such as authentication and authorization mechanisms. - **Focus**: 1. Authentication and authorization mechanisms. 1. Interaction between security components and Istio control plane.
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Wed Oct 09 00:57:44 UTC 2024 - 5.9K bytes - Viewed (0) -
tests/test_security_http_base_optional.py
from typing import Optional from fastapi import FastAPI, Security from fastapi.security.http import HTTPAuthorizationCredentials, HTTPBase from fastapi.testclient import TestClient app = FastAPI() security = HTTPBase(scheme="Other", auto_error=False) @app.get("/users/me") def read_current_user( credentials: Optional[HTTPAuthorizationCredentials] = Security(security), ): if credentials is None:
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jun 30 18:25:16 UTC 2023 - 1.9K bytes - Viewed (0) -
tests/test_security_http_digest.py
from fastapi import FastAPI, Security from fastapi.security import HTTPAuthorizationCredentials, HTTPDigest from fastapi.testclient import TestClient app = FastAPI() security = HTTPDigest() @app.get("/users/me") def read_current_user(credentials: HTTPAuthorizationCredentials = Security(security)): return {"scheme": credentials.scheme, "credentials": credentials.credentials} client = TestClient(app)
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jun 30 18:25:16 UTC 2023 - 2K bytes - Viewed (0) -
docs/em/docs/tutorial/security/get-current-user.md
{!> ../../docs_src/security/tutorial002_py310.py!} ``` //// ## ๐ โฎ๏ธ ๐ฉโ๐ป ๐ ๐ฅ ๐ช โ๏ธ ๐ `Depends` โฎ๏ธ ๐ `get_current_user` *โก ๐ ๏ธ*: //// tab | ๐ 3๏ธโฃ.6๏ธโฃ & ๐ ```Python hl_lines="31" {!> ../../docs_src/security/tutorial002.py!} ``` //// //// tab | ๐ 3๏ธโฃ.1๏ธโฃ0๏ธโฃ & ๐ ```Python hl_lines="29" {!> ../../docs_src/security/tutorial002_py310.py!} ``` ////
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 4.3K bytes - Viewed (0)