- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 181 for Walser (0.34 sec)
-
tests/test_security_oauth2_optional.py
reusable_oauth2 = OAuth2( flows={ "password": { "tokenUrl": "token", "scopes": {"read:users": "Read the users", "write:users": "Create users"}, } }, auto_error=False, ) class User(BaseModel): username: str def get_current_user(oauth_header: Optional[str] = Security(reusable_oauth2)): if oauth_header is None: return None
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Apr 18 19:40:57 GMT 2024 - 10.8K bytes - Viewed (0) -
docs/ja/docs/tutorial/query-params.md
http://127.0.0.1:8000/items/foo?short=on ``` もしくは、 ``` http://127.0.0.1:8000/items/foo?short=yes ``` もしくは、他の大文字小文字のバリエーション (アッパーケース、最初の文字だけアッパーケース、など)で、関数は `short` パラメータを `True` な `bool` 値として扱います。それ以外は `False` になります。 ## 複数のパスパラメータとクエリパラメータ 複数のパスパラメータとクエリパラメータを同時に宣言できます。**FastAPI**は互いを区別できます。 そして特定の順序で宣言しなくてもよいです。 名前で判別されます: ```Python hl_lines="8 10"
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 5.6K bytes - Viewed (0) -
.github/actions/notify-translations/app/main.py
github_repository: str input_token: SecretStr github_event_path: Path github_event_name: Union[str, None] = None httpx_timeout: int = 30 input_debug: Union[bool, None] = False class PartialGitHubEventIssue(BaseModel): number: int class PartialGitHubEvent(BaseModel): pull_request: PartialGitHubEventIssue def get_graphql_response( *,
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Wed Sep 27 23:01:46 GMT 2023 - 12.4K bytes - Viewed (0) -
tests/test_tutorial/test_security/test_tutorial005_py39.py
) assert response.status_code == 200, response.text assert response.json() == { "username": "johndoe", "full_name": "John Doe", "email": "******@****.***", "disabled": False, } @needs_py39 def test_incorrect_token(client: TestClient): response = client.get("/users/me", headers={"Authorization": "Bearer nonexistent"}) assert response.status_code == 401, response.text
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Wed Mar 13 19:07:10 GMT 2024 - 16.3K bytes - Viewed (0) -
docs/zh/docs/tutorial/security/simple-oauth2.md
### 获取当前用户数据 使用 `/users/me` 路径的 `GET` 操作。 可以提取如下当前用户数据: ```JSON { "username": "johndoe", "email": "******@****.***", "full_name": "John Doe", "disabled": false, "hashed_password": "fakehashedsecret" } ``` <img src="https://fastapi.tiangolo.com/img/tutorial/security/image06.png"> 点击小锁图标,注销后,再执行同样的操作,则会得到 HTTP 401 错误: ```JSON {
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 8.8K bytes - Viewed (0) -
docs/de/docs/advanced/behind-a-proxy.md
### Den automatischen Server von `root_path` deaktivieren Wenn Sie nicht möchten, dass **FastAPI** einen automatischen Server inkludiert, welcher `root_path` verwendet, können Sie den Parameter `root_path_in_servers=False` verwenden: ```Python hl_lines="9" {!../../../docs_src/behind_a_proxy/tutorial004.py!} ``` Dann wird er nicht in das OpenAPI-Schema aufgenommen. ## Mounten einer Unteranwendung
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat Mar 30 20:30:07 GMT 2024 - 13.1K bytes - Viewed (0) -
docs/em/docs/tutorial/security/simple-oauth2.md
### 🤚 👆 👍 👩💻 💽 🔜 ⚙️ 🛠️ `GET` ⏮️ ➡ `/users/me`. 👆 🔜 🤚 👆 👩💻 📊, 💖: ```JSON { "username": "johndoe", "email": "******@****.***", "full_name": "John Doe", "disabled": false, "hashed_password": "fakehashedsecret" } ``` <img src="/img/tutorial/security/image06.png"> 🚥 👆 🖊 🔒 ℹ & ⏏, & ⤴️ 🔄 🎏 🛠️ 🔄, 👆 🔜 🤚 🇺🇸🔍 4️⃣0️⃣1️⃣ ❌: ```JSON {
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/en/docs/tutorial/security/oauth2-jwt.md
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 13K bytes - Viewed (0) -
docs/em/docs/tutorial/sql-databases.md
❌: ```Python connect_args={"check_same_thread": False} ``` ...💪 🕴 `SQLite`. ⚫️ 🚫 💪 🎏 💽. !!! info "📡 ℹ" 🔢 🗄 🔜 🕴 ✔ 1️⃣ 🧵 🔗 ⏮️ ⚫️, 🤔 👈 🔠 🧵 🔜 🍵 🔬 📨. 👉 ❎ 😫 🤝 🎏 🔗 🎏 👜 (🎏 📨). ✋️ FastAPI, ⚙️ 😐 🔢 (`def`) 🌅 🌘 1️⃣ 🧵 💪 🔗 ⏮️ 💽 🎏 📨, 👥 💪 ⚒ 🗄 💭 👈 ⚫️ 🔜 ✔ 👈 ⏮️ `connect_args={"check_same_thread": False}`.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 25.2K bytes - Viewed (1) -
docs/ja/docs/tutorial/security/oauth2-jwt.md
<img src="/img/tutorial/security/image08.png"> エンドポイント`/users/me/`を呼び出すと、次のようなレスポンスが得られます: ```JSON { "username": "johndoe", "email": "******@****.***", "full_name": "John Doe", "disabled": false } ``` <img src="/img/tutorial/security/image09.png"> 開発者ツールを開くと、送信されるデータにはトークンだけが含まれており、パスワードはユーザーを認証してアクセストークンを取得する最初のリクエストでのみ送信され、その後は送信されないことがわかります。 <img src="/img/tutorial/security/image10.png">
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)