- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 152 for oauth2 (0.26 seconds)
-
docs/zh/docs/tutorial/security/simple-oauth2.md
# OAuth2 实现简单的 Password 和 Bearer 验证 { #simple-oauth2-with-password-and-bearer } 本章添加上一章示例中欠缺的部分,实现完整的安全流。 ## 获取 `username` 和 `password` { #get-the-username-and-password } 首先,使用 **FastAPI** 安全工具获取 `username` 和 `password`。 OAuth2 规范要求使用“密码流”时,客户端或用户必须以表单数据形式发送 `username` 和 `password` 字段。 并且,这两个字段必须命名为 `username` 和 `password`,不能使用 `user-name` 或 `email` 等其它名称。 不过也不用担心,前端仍可以显示终端用户所需的名称。 数据库模型也可以使用所需的名称。Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:06:37 GMT 2026 - 9K bytes - Click Count (0) -
docs/en/docs/tutorial/security/simple-oauth2.md
# Simple OAuth2 with Password and Bearer { #simple-oauth2-with-password-and-bearer } Now let's build from the previous chapter and add the missing parts to have a complete security flow. ## Get the `username` and `password` { #get-the-username-and-password } We are going to use **FastAPI** security utilities to get the `username` and `password`.Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 05 18:13:19 GMT 2026 - 9.4K bytes - Click Count (0) -
docs/zh-hant/docs/tutorial/security/simple-oauth2.md
# 簡易 OAuth2:Password 與 Bearer { #simple-oauth2-with-password-and-bearer } 現在從上一章延伸,補上缺少的部分,完成整個安全流程。 ## 取得 `username` 與 `password` { #get-the-username-and-password } 我們要使用 **FastAPI** 提供的安全性工具來取得 `username` 與 `password`。 OAuth2 規範中,當使用「password flow」(我們現在使用的)時,用戶端/使用者必須以表單資料送出 `username` 與 `password` 欄位。 而且規範要求欄位名稱必須就是這兩個,所以像是 `user-name` 或 `email` 都不行。 但別擔心,你在前端要怎麼呈現給最終使用者都可以。 而你的資料庫模型也可以使用任何你想要的欄位名稱。Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:05:38 GMT 2026 - 9.1K bytes - Click Count (0) -
docs/en/docs/tutorial/security/index.md
OpenID Connect is another specification, based on **OAuth2**. It just extends OAuth2 specifying some things that are relatively ambiguous in OAuth2, to try to make it more interoperable. For example, Google login uses OpenID Connect (which underneath uses OAuth2). But Facebook login doesn't support OpenID Connect. It has its own flavor of OAuth2. ### OpenID (not "OpenID Connect") { #openid-not-openid-connect }
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Aug 31 10:49:48 GMT 2025 - 4.4K bytes - Click Count (0) -
docs/zh-hant/docs/tutorial/security/index.md
如果你不在意這些術語,只需要立刻加入以使用者名稱與密碼為基礎的身分驗證與安全性,就直接跳到後續章節。 ## OAuth2 { #oauth2 } OAuth2 是一套規範,定義了多種處理身分驗證與授權的方法。 它相當龐大,涵蓋許多複雜的使用情境。 它也包含使用「第三方」進行身分驗證的方式。 這正是各種「使用 Facebook、Google、X(Twitter)、GitHub 登入」系統在底層採用的機制。 ### OAuth 1 { #oauth-1 } 過去有 OAuth 1,和 OAuth2 非常不同,也更複雜,因為它直接規範了如何加密通訊。 它現在並不流行,也很少被使用。 OAuth2 不規範通訊如何加密,而是假設你的應用會透過 HTTPS 提供服務。 /// tip | 提示Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sat Feb 14 08:15:26 GMT 2026 - 4.1K bytes - Click Count (0) -
docs/zh/docs/tutorial/security/index.md
如果你不关心这些术语,而只需要*立即*通过基于用户名和密码的身份认证来增加安全性,请跳转到接下来的章节。 ## OAuth2 { #oauth2 } OAuth2是一个规范,它定义了几种处理身份认证和授权的方法。 它是一个相当广泛的规范,涵盖了一些复杂的使用场景。 它包括了使用「第三方」进行身份认证的方法。 这就是所有带有「使用 Facebook,Google,X (Twitter),GitHub 登录」的系统背后所使用的机制。 ### OAuth 1 { #oauth-1 } 有一个 OAuth 1,它与 OAuth2 完全不同,并且更为复杂,因为它直接包含了有关如何加密通信的规范。 如今它已经不是很流行,没有被广泛使用了。 OAuth2 没有指定如何加密通信,它期望你为应用程序使用 HTTPS 进行通信。 /// tip | 提示Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Feb 13 13:37:57 GMT 2026 - 4.3K bytes - Click Count (0) -
fastapi/security/__init__.py
from .http import HTTPDigest as HTTPDigest from .oauth2 import OAuth2 as OAuth2 from .oauth2 import OAuth2AuthorizationCodeBearer as OAuth2AuthorizationCodeBearer from .oauth2 import OAuth2PasswordBearer as OAuth2PasswordBearer from .oauth2 import OAuth2PasswordRequestForm as OAuth2PasswordRequestForm from .oauth2 import OAuth2PasswordRequestFormStrict as OAuth2PasswordRequestFormStrict from .oauth2 import SecurityScopes as SecurityScopes
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Dec 20 18:50:00 GMT 2020 - 881 bytes - Click Count (0) -
docs/ja/docs/tutorial/security/index.md
もし、これらの用語に興味がなく、ユーザー名とパスワードに基づく認証でセキュリティを**今すぐ**確保する必要がある場合は、次の章に進んでください。 ## OAuth2 { #oauth2 } OAuth2は、認証と認可を処理するためのいくつかの方法を定義した仕様です。 かなり広範囲な仕様で、いくつかの複雑なユースケースをカバーしています。 これには「サードパーティ」を使用して認証する方法が含まれています。 これが、「Facebook、Google、X (Twitter)、GitHubを使ってログイン」を使用したすべてのシステムの背後で使われている仕組みです。 ### OAuth 1 { #oauth-1 } OAuth 1というものもありましたが、これはOAuth2とは全く異なり、通信をどのように暗号化するかという仕様が直接的に含まれており、より複雑なものとなっています。 現在ではあまり普及していませんし、使われてもいません。Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Feb 13 15:24:30 GMT 2026 - 6.1K bytes - Click Count (0) -
docs/en/docs/reference/security/index.md
::: fastapi.security.HTTPBasicCredentials ## OAuth2 Authentication ::: fastapi.security.OAuth2 ::: fastapi.security.OAuth2AuthorizationCodeBearer ::: fastapi.security.OAuth2PasswordBearer ## OAuth2 Password Form ::: fastapi.security.OAuth2PasswordRequestForm ::: fastapi.security.OAuth2PasswordRequestFormStrict ## OAuth2 Security Scopes in Dependencies ::: fastapi.security.SecurityScopes
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Wed Feb 04 12:41:54 GMT 2026 - 1.7K bytes - Click Count (0) -
tests/test_security_oauth2_authorization_code_bearer_scopes_openapi.py
}, "security": [{"OAuth2AuthorizationCodeBearer": []}], } }, "/with-oauth2-scheme": { "get": { "summary": "Read With Oauth2 Scheme", "operationId": "read_with_oauth2_scheme_with_oauth2_scheme_get", "responses": { "200": {Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Tue Feb 17 09:59:14 GMT 2026 - 6.6K bytes - Click Count (0)