- Sort Score
- Num 10 results
- Language All
Results 131 - 140 of 817 for users1 (0.06 seconds)
-
docs_src/metadata/tutorial001_1_py39.py
from fastapi import FastAPI description = """ ChimichangApp API helps you do awesome stuff. ๐ ## Items You can **read items**. ## Users You will be able to: * **Create users** (_not implemented_). * **Read users** (_not implemented_). """ app = FastAPI( title="ChimichangApp", description=description, summary="Deadpool's favorite app. Nuff said.", version="0.0.1",
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 767 bytes - Click Count (0) -
docs/de/docs/tutorial/security/get-current-user.md
## Den Benutzer abrufen { #get-the-user } `get_current_user` wird eine von uns erstellte (gefakte) Hilfsfunktion verwenden, welche einen Token vom Typ `str` entgegennimmt und unser Pydantic-`User`-Modell zurรผckgibt: {* ../../docs_src/security/tutorial002_an_py310.py hl[19:22,26:27] *} ## Den aktuellen Benutzer einfรผgen { #inject-the-current-user }Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Sep 20 15:10:09 GMT 2025 - 4.8K bytes - Click Count (0) -
docs/ko/docs/tutorial/security/get-current-user.md
## ์ ์ ๊ฐ์ ธ์ค๊ธฐ `get_current_user`๋ ํ ํฐ์ `str`๋ก ์ทจํ๊ณ Pydantic `User` ๋ชจ๋ธ์ ๋ฐํํ๋ ์ฐ๋ฆฌ๊ฐ ๋ง๋ (๊ฐ์ง) ์ ํธ๋ฆฌํฐ ํจ์๋ฅผ ์ฌ์ฉํฉ๋๋ค. {* ../../docs_src/security/tutorial002.py hl[19:22,26:27] *} ## ํ์ฌ ์ ์ ์ฃผ์ ํ๊ธฐ ์ด์ *๊ฒฝ๋ก ์๋*์์ `get_current_user`์ ๋์ผํ `Depends`๋ฅผ ์ฌ์ฉํ ์ ์์ต๋๋ค. {* ../../docs_src/security/tutorial002.py hl[31] *} Pydantic ๋ชจ๋ธ์ธ `User`๋ก `current_user`์ ํ์ ์ ์ ์ธํ๋ ๊ฒ์ ์์์ผ ํฉ๋๋ค. ์ด๊ฒ์ ๋ชจ๋ ์๋ฃ ๋ฐ ํ์ ๊ฒ์ฌ๋ฅผ ํตํด ํจ์ ๋ด๋ถ์์ ์ฐ๋ฆฌ๋ฅผ ๋์ธ ๊ฒ์ ๋๋ค.Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Mon Nov 18 02:25:44 GMT 2024 - 4.7K bytes - Click Count (0) -
docs/pt/docs/tutorial/security/get-current-user.md
{* ../../docs_src/security/tutorial002_an_py310.py hl[25] *} ## Obter o usuรกrio { #get-the-user } `get_current_user` usarรก uma funรงรฃo utilitรกria (falsa) que criamos, que recebe um token como uma `str` e retorna nosso modelo Pydantic `User`: {* ../../docs_src/security/tutorial002_an_py310.py hl[19:22,26:27] *} ## Injetar o usuรกrio atual { #inject-the-current-user }Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Nov 12 16:23:57 GMT 2025 - 4.6K bytes - Click Count (0) -
tests/associations_has_one_test.go
) func TestHasOneAssociation(t *testing.T) { user := *GetUser("hasone", Config{Account: true}) if err := DB.Create(&user).Error; err != nil { t.Fatalf("errors happened when create: %v", err) } CheckUser(t, user, user) // Find var user2 User DB.Find(&user2, "id = ?", user.ID) DB.Model(&user2).Association("Account").Find(&user2.Account) CheckUser(t, user2, user) // Count
Created: Sun Dec 28 09:35:17 GMT 2025 - Last Modified: Wed Jun 12 10:49:45 GMT 2024 - 7.1K bytes - Click Count (0) -
docs/multi-user/README.md
# MinIO Multi-user Quickstart Guide [](https://slack.min.io) MinIO supports multiple long term users in addition to default user created during server startup. New users can be added after server starts up, and server can be configured to deny or allow access to buckets and resources to each of these users. This document explains how to add/remove users and modify their access rights. ## Get started
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Tue Aug 12 18:20:36 GMT 2025 - 8.2K bytes - Click Count (0) -
tests/test_security_http_base_description.py
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} client = TestClient(app) def test_security_http_base(): response = client.get("/users/me", headers={"Authorization": "Other foobar"})
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Mon Nov 24 19:03:06 GMT 2025 - 2K bytes - Click Count (0) -
tests/test_security_api_key_query.py
from pydantic import BaseModel app = FastAPI() api_key = APIKeyQuery(name="key") class User(BaseModel): username: str def get_current_user(oauth_header: str = Security(api_key)): user = User(username=oauth_header) return user @app.get("/users/me") def read_current_user(current_user: User = Depends(get_current_user)): return current_user client = TestClient(app)
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Mon Nov 24 19:03:06 GMT 2025 - 1.9K bytes - Click Count (0) -
docs_src/dependency_testing/tutorial001_py39.py
@app.get("/items/") async def read_items(commons: dict = Depends(common_parameters)): return {"message": "Hello Items!", "params": commons} @app.get("/users/") async def read_users(commons: dict = Depends(common_parameters)): return {"message": "Hello Users!", "params": commons} client = TestClient(app) async def override_dependency(q: Union[str, None] = None): return {"q": q, "skip": 5, "limit": 10}
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 1.5K bytes - Click Count (0) -
tests/test_response_model_data_filter.py
user = UserDB( email="******@****.***", hashed_password="secrethashed", ) pet = PetDB(name="Nibbler", owner=user) return pet @app.get("/pets/", response_model=list[PetOut]) async def read_pets(): user = UserDB( email="******@****.***", hashed_password="secrethashed", ) pet1 = PetDB(name="Nibbler", owner=user)Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 21:25:59 GMT 2025 - 1.7K bytes - Click Count (0)