Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 18 for OAuth2PasswordRequestFormStrict (0.36 seconds)

  1. fastapi/security/oauth2.py

        fields `username` and `password`.
    
        All the initialization parameters are extracted from the request.
    
        The only difference between `OAuth2PasswordRequestFormStrict` and
        `OAuth2PasswordRequestForm` is that `OAuth2PasswordRequestFormStrict` requires the
        client to send the form field `grant_type` with the value `"password"`, which
        is required in the OAuth2 specification (it seems that for no particular reason),
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Mar 24 16:32:10 GMT 2026
    - 23.6K bytes
    - Click Count (0)
  2. docs/zh/docs/tutorial/security/simple-oauth2.md

    * 可选的 `grant_type`
    
    /// tip | 提示
    
    实际上,OAuth2 规范*要求* `grant_type` 字段使用固定值 `password`,但 `OAuth2PasswordRequestForm` 没有作强制约束。
    
    如需强制使用固定值 `password`,则不要用 `OAuth2PasswordRequestForm`,而是用 `OAuth2PasswordRequestFormStrict`。
    
    ///
    
    * 可选的 `client_id`(本例未使用)
    * 可选的 `client_secret`(本例未使用)
    
    /// info | 信息
    
    `OAuth2PasswordRequestForm` 并不像 `OAuth2PasswordBearer` 那样是 **FastAPI** 的特殊类。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 9K bytes
    - Click Count (0)
  3. docs/en/docs/tutorial/security/simple-oauth2.md

    /// tip
    
    The OAuth2 spec actually *requires* a field `grant_type` with a fixed value of `password`, but `OAuth2PasswordRequestForm` doesn't enforce it.
    
    If you need to enforce it, use `OAuth2PasswordRequestFormStrict` instead of `OAuth2PasswordRequestForm`.
    
    ///
    
    * An optional `client_id` (we don't need it for our example).
    * An optional `client_secret` (we don't need it for our example).
    
    /// info
    
    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)
  4. docs/zh-hant/docs/tutorial/security/simple-oauth2.md

    - `username`
    - `password`
    - 可選的 `scope` 欄位,內容是一個由空白分隔的長字串
    - 可選的 `grant_type`
    
    /// tip
    
    依規範,實際上需要一個 `grant_type` 欄位且固定值為 `password`,但 `OAuth2PasswordRequestForm` 並不會強制檢查。
    
    如果你需要強制檢查,請改用 `OAuth2PasswordRequestFormStrict` 取代 `OAuth2PasswordRequestForm`。
    
    ///
    
    - 可選的 `client_id`(本例不需要)
    - 可選的 `client_secret`(本例不需要)
    
    /// info
    
    `OAuth2PasswordRequestForm` 並不是像 `OAuth2PasswordBearer` 那樣對 **FastAPI** 來說的特殊類別。
    
    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)
  5. docs/ja/docs/tutorial/security/simple-oauth2.md

    - オプションの `grant_type`
    
    /// tip | 豆知識
    
    OAuth2 の仕様では、固定値 `password` を持つフィールド `grant_type` が実際には必須ですが、`OAuth2PasswordRequestForm` はそれを強制しません。
    
    強制したい場合は、`OAuth2PasswordRequestForm` の代わりに `OAuth2PasswordRequestFormStrict` を使ってください。
    
    ///
    
    - オプションの `client_id`(この例では不要)
    - オプションの `client_secret`(この例では不要)
    
    /// info | 情報
    
    `OAuth2PasswordRequestForm` は、`OAuth2PasswordBearer` のように **FastAPI** にとって特別なクラスではありません。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:07:17 GMT 2026
    - 12.1K bytes
    - Click Count (0)
  6. docs/en/docs/advanced/security/oauth2-scopes.md

    Sebastián Ramírez <******@****.***> 1772734399 -0800
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 13.4K bytes
    - Click Count (0)
  7. docs/zh-hant/docs/advanced/security/oauth2-scopes.md

    Sebastián Ramírez <******@****.***> 1774026338 +0100
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 12.7K bytes
    - Click Count (0)
  8. docs/zh/docs/advanced/security/oauth2-scopes.md

    Sebastián Ramírez <******@****.***> 1774026397 +0100
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 13K bytes
    - Click Count (0)
  9. docs/ja/docs/advanced/security/oauth2-scopes.md

    Sebastián Ramírez <******@****.***> 1774015637 +0100
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:07:17 GMT 2026
    - 16.6K bytes
    - Click Count (0)
  10. docs/tr/docs/tutorial/security/simple-oauth2.md

    OAuth2 spesifikasyonu aslında `grant_type` alanını sabit bir `password` değeriyle *zorunlu kılar*, ancak `OAuth2PasswordRequestForm` bunu zorlamaz.
    
    Bunu zorlamak istiyorsanız, `OAuth2PasswordRequestForm` yerine `OAuth2PasswordRequestFormStrict` kullanın.
    
    ///
    
    * Opsiyonel `client_id` (bu örnekte ihtiyacımız yok).
    * Opsiyonel `client_secret` (bu örnekte ihtiyacımız yok).
    
    /// info | Bilgi
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 07:53:17 GMT 2026
    - 10.4K bytes
    - Click Count (0)
Back to Top