- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 562 for bearer (0.1 sec)
-
docs/ja/docs/tutorial/security/first-steps.md
* したがって、APIで認証するため、HTTPヘッダー`Authorization`に`Bearer`の文字列とトークンを加えた値を送信します。 * トークンに`foobar`が含まれている場合、`Authorization`ヘッダーの内容は次のようになります: `Bearer foobar`。 ## **FastAPI**の`OAuth2PasswordBearer` **FastAPI**は、これらのセキュリティ機能を実装するために、抽象度の異なる複数のツールを提供しています。 この例では、**Bearer**トークンを使用して**OAuth2**を**パスワード**フローで使用します。これには`OAuth2PasswordBearer`クラスを使用します。 /// info | "情報" 「bearer」トークンが、唯一の選択肢ではありません。 しかし、私たちのユースケースには最適です。
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 10.5K bytes - Viewed (0) -
docs_src/security/tutorial005.py
async def get_current_user( security_scopes: SecurityScopes, token: str = Depends(oauth2_scheme) ): if security_scopes.scopes: authenticate_value = f'Bearer scope="{security_scopes.scope_str}"' else: authenticate_value = "Bearer" credentials_exception = HTTPException( status_code=status.HTTP_401_UNAUTHORIZED, detail="Could not validate credentials",
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Mon May 20 17:37:28 UTC 2024 - 5.2K bytes - Viewed (0) -
docs_src/security/tutorial005_an.py
async def get_current_user( security_scopes: SecurityScopes, token: Annotated[str, Depends(oauth2_scheme)] ): if security_scopes.scopes: authenticate_value = f'Bearer scope="{security_scopes.scope_str}"' else: authenticate_value = "Bearer" credentials_exception = HTTPException( status_code=status.HTTP_401_UNAUTHORIZED, detail="Could not validate credentials",
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Mon May 20 17:37:28 UTC 2024 - 5.3K bytes - Viewed (0) -
docs/pt/docs/tutorial/security/simple-oauth2.md
/// ## Retorne o token A resposta do endpoint `token` deve ser um objeto JSON. Deve ter um `token_type`. No nosso caso, como estamos usando tokens "Bearer", o tipo de token deve ser "`bearer`". E deve ter um `access_token`, com uma string contendo nosso token de acesso. Para este exemplo simples, seremos completamente inseguros e retornaremos o mesmo `username` do token.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Oct 31 12:17:45 UTC 2024 - 13.3K bytes - Viewed (0) -
docs_src/security/tutorial005_py310.py
async def get_current_user( security_scopes: SecurityScopes, token: str = Depends(oauth2_scheme) ): if security_scopes.scopes: authenticate_value = f'Bearer scope="{security_scopes.scope_str}"' else: authenticate_value = "Bearer" credentials_exception = HTTPException( status_code=status.HTTP_401_UNAUTHORIZED, detail="Could not validate credentials",
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Mon May 20 17:37:28 UTC 2024 - 5.1K bytes - Viewed (0) -
docs/de/docs/tutorial/security/index.md
* `apiKey`: ein anwendungsspezifischer Schlüssel, der stammen kann von: * Einem Query-Parameter. * Einem Header. * Einem Cookie. * `http`: Standard-HTTP-Authentifizierungssysteme, einschließlich: * `bearer`: ein Header `Authorization` mit dem Wert `Bearer` plus einem Token. Dies wird von OAuth2 geerbt. * HTTP Basic Authentication. * HTTP Digest, usw.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Tue Aug 06 04:48:30 UTC 2024 - 5K bytes - Viewed (0) -
docs/en/docs/tutorial/security/index.md
OpenAPI defines the following security schemes: * `apiKey`: an application specific key that can come from: * A query parameter. * A header. * A cookie. * `http`: standard HTTP authentication systems, including: * `bearer`: a header `Authorization` with a value of `Bearer ` plus a token. This is inherited from OAuth2. * HTTP Basic authentication. * HTTP Digest, etc.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Tue Aug 06 04:48:30 UTC 2024 - 4.3K bytes - Viewed (0) -
docs/em/docs/tutorial/security/index.md
⚙️ 👫, 👆 💪 ✊ 📈 🌐 👫 🐩-⚓️ 🧰, 🔌 👉 🎓 🧾 ⚙️. 🗄 🔬 📄 💂♂ ⚖: * `apiKey`: 🈸 🎯 🔑 👈 💪 👟 ⚪️➡️: * 🔢 🔢. * 🎚. * 🍪. * `http`: 🐩 🇺🇸🔍 🤝 ⚙️, 🔌: * `bearer`: 🎚 `Authorization` ⏮️ 💲 `Bearer ` ➕ 🤝. 👉 😖 ⚪️➡️ Oauth2️⃣. * 🇺🇸🔍 🔰 🤝. * 🇺🇸🔍 📰, ♒️. * `oauth2`: 🌐 Oauth2️⃣ 🌌 🍵 💂♂ (🤙 "💧"). * 📚 👫 💧 ☑ 🏗 ✳ 2️⃣.0️⃣ 🤝 🐕🦺 (💖 🇺🇸🔍, 👱📔, 👱📔, 📂, ♒️): * `implicit`
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Tue Aug 06 04:48:30 UTC 2024 - 3.5K bytes - Viewed (0) -
tests/test_security_oauth2_optional.py
return current_user client = TestClient(app) def test_security_oauth2(): response = client.get("/users/me", headers={"Authorization": "Bearer footokenbar"}) assert response.status_code == 200, response.text assert response.json() == {"username": "Bearer footokenbar"} def test_security_oauth2_password_other_header(): response = client.get("/users/me", headers={"Authorization": "Other footokenbar"})
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Apr 18 19:40:57 UTC 2024 - 10.8K bytes - Viewed (0) -
docs/em/docs/tutorial/security/simple-oauth2.md
```Python hl_lines="55-64 67-70 88" {!> ../../docs_src/security/tutorial003_py310.py!} ``` //// /// info 🌖 🎚 `WWW-Authenticate` ⏮️ 💲 `Bearer` 👥 🛬 📥 🍕 🔌. 🙆 🇺🇸🔍 (❌) 👔 📟 4️⃣0️⃣1️⃣ "⛔" 🤔 📨 `WWW-Authenticate` 🎚. 💼 📨 🤝 (👆 💼), 💲 👈 🎚 🔜 `Bearer`. 👆 💪 🤙 🚶 👈 ➕ 🎚 & ⚫️ 🔜 👷. ✋️ ⚫️ 🚚 📥 🛠️ ⏮️ 🔧. , 📤 5️⃣📆 🧰 👈 ⌛ & ⚙️ ⚫️ (🔜 ⚖️ 🔮) & 👈 💪 ⚠ 👆 ⚖️ 👆 👩💻, 🔜 ⚖️ 🔮.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 8.8K bytes - Viewed (0)