- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 138 for secret (0.21 sec)
-
docs/em/docs/tutorial/security/simple-oauth2.md
๐ฅ ๐ ๐ช ๐ ๏ธ โซ๏ธ, โ๏ธ `OAuth2PasswordRequestFormStrict` โฉ๏ธ `OAuth2PasswordRequestForm`. * ๐ฆ `client_id` (๐ฅ ๐ซ ๐ช โซ๏ธ ๐ ๐ผ). * ๐ฆ `client_secret` (๐ฅ ๐ซ ๐ช โซ๏ธ ๐ ๐ผ). !!! info `OAuth2PasswordRequestForm` ๐ซ ๐ ๐ **FastAPI** `OAuth2PasswordBearer`. `OAuth2PasswordBearer` โ **FastAPI** ๐ญ ๐ โซ๏ธ ๐โโ โ. โซ๏ธ ๐ฎ ๐ ๐ ๐.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 8.9K bytes - Viewed (0) -
docs/ja/docs/tutorial/security/oauth2-jwt.md
ๆฌกใฎใใใชใฆใผใถใผใคใณใฟใผใใงใคในใ่กจ็คบใใใพใ๏ผ <img src="/img/tutorial/security/image07.png"> ๅๅใจๅใๆนๆณใงใขใใชใฑใผใทใงใณใฎ่ชๅฏใ่กใใพใใ ๆฌกใฎ่ช่จผๆ ๅ ฑใไฝฟ็จใใพใ๏ผ Username: `johndoe` Password: `secret` !!! check "็ขบ่ช" ใณใผใใฎใฉใใซใๅนณๆใฎใในใฏใผใ"`secret`"ใฏใชใใใใใทใฅๅใใใใใฎใใใชใใใจใ็ขบ่ชใใฆใใ ใใใ <img src="/img/tutorial/security/image08.png"> ใจใณใใใคใณใ`/users/me/`ใๅผใณๅบใใจใๆฌกใฎใใใชใฌในใใณในใๅพใใใพใ๏ผ ```JSON { "username": "johndoe",
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Jan 11 21:21:35 GMT 2024 - 14.1K bytes - Viewed (0) -
.github/actions/people/app/main.py
*, settings: Settings, query: str, after: Union[str, None] = None, category_id: Union[str, None] = None, ) -> Dict[str, Any]: headers = {"Authorization": f"token {settings.input_token.get_secret_value()}"} # category_id is only used by one query, but GraphQL allows unused variables, so # keep it here for simplicity variables = {"after": after, "category_id": category_id} response = httpx.post(
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Tue Mar 26 17:38:21 GMT 2024 - 19.2K bytes - Viewed (1) -
docs_src/security/tutorial005_py310.py
SecurityScopes, ) from jose import JWTError, jwt from passlib.context import CryptContext from pydantic import BaseModel, ValidationError # to get a string like this run: # openssl rand -hex 32 SECRET_KEY = "09d25e094faa6ca2556c818166b7a9563b93f7099f6f0f4caa6cf63b88e8d3e7" ALGORITHM = "HS256" ACCESS_TOKEN_EXPIRE_MINUTES = 30 fake_users_db = { "johndoe": { "username": "johndoe",
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Tue Mar 26 16:56:53 GMT 2024 - 5.1K bytes - Viewed (0) -
docs_src/security/tutorial005_an_py310.py
SecurityScopes, ) from jose import JWTError, jwt from passlib.context import CryptContext from pydantic import BaseModel, ValidationError # to get a string like this run: # openssl rand -hex 32 SECRET_KEY = "09d25e094faa6ca2556c818166b7a9563b93f7099f6f0f4caa6cf63b88e8d3e7" ALGORITHM = "HS256" ACCESS_TOKEN_EXPIRE_MINUTES = 30 fake_users_db = { "johndoe": { "username": "johndoe",
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Tue Mar 26 16:56:53 GMT 2024 - 5.2K bytes - Viewed (0) -
tests/test_security_oauth2_optional_description.py
"/login", data={"username": "johndoe", "password": "secret", "grant_type": "password"}, ) assert response.status_code == 200, response.text assert response.json() == { "grant_type": "password", "username": "johndoe", "password": "secret", "scopes": [], "client_id": None, "client_secret": None, } def test_openapi_schema():
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Apr 18 19:40:57 GMT 2024 - 10.9K bytes - Viewed (0) -
docs_src/app_testing/app_b_an_py39/main.py
if x_token != fake_secret_token: raise HTTPException(status_code=400, detail="Invalid X-Token header") if item_id not in fake_db: raise HTTPException(status_code=404, detail="Item not found") return fake_db[item_id] @app.post("/items/", response_model=Item) async def create_item(item: Item, x_token: Annotated[str, Header()]): if x_token != fake_secret_token:
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat Mar 18 12:29:59 GMT 2023 - 1.1K bytes - Viewed (0) -
docs_src/app_testing/app_b_an_py310/main.py
if x_token != fake_secret_token: raise HTTPException(status_code=400, detail="Invalid X-Token header") if item_id not in fake_db: raise HTTPException(status_code=404, detail="Item not found") return fake_db[item_id] @app.post("/items/", response_model=Item) async def create_item(item: Item, x_token: Annotated[str, Header()]): if x_token != fake_secret_token:
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat Mar 18 12:29:59 GMT 2023 - 1.1K bytes - Viewed (0) -
tests/test_tutorial/test_dependencies/test_tutorial012_an_py39.py
"/items/", headers={"X-Token": "fake-super-secret-token", "X-Key": "invalid"} ) assert response.status_code == 400, response.text assert response.json() == {"detail": "X-Key header invalid"} @needs_py39 def test_get_invalid_second_header_users(client: TestClient): response = client.get( "/users/", headers={"X-Token": "fake-super-secret-token", "X-Key": "invalid"} )
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Apr 18 19:40:57 GMT 2024 - 8.8K bytes - Viewed (0) -
tests/test_tutorial/test_security/test_tutorial003_an.py
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Fri Jul 07 17:12:13 GMT 2023 - 8K bytes - Viewed (0)