- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for 476Z (0.03 sec)
-
docs/em/docs/tutorial/security/simple-oauth2.md
🔜 ➡️ ⚙️ 🚙 🚚 **FastAPI** 🍵 👉. ### `OAuth2PasswordRequestForm` 🥇, 🗄 `OAuth2PasswordRequestForm`, & ⚙️ ⚫️ 🔗 ⏮️ `Depends` *➡ 🛠️* `/token`: //// 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!} ``` ////
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/tutorial/security/simple-oauth2.md
/// ## 获取 `username` 和 `password` 的代码 接下来,使用 **FastAPI** 工具获取用户名与密码。 ### `OAuth2PasswordRequestForm` 首先,导入 `OAuth2PasswordRequestForm`,然后,在 `/token` *路径操作* 中,用 `Depends` 把该类作为依赖项。 ```Python hl_lines="4 76" {!../../docs_src/security/tutorial003.py!} ``` `OAuth2PasswordRequestForm` 是用以下几项内容声明表单请求体的类依赖项: * `username` * `password` * 可选的 `scope` 字段,由多个空格分隔的字符串组成的长字符串 * 可选的 `grant_type` /// tip | "提示"
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 8.8K bytes - Viewed (0)