- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 12 for grant_type (0.43 seconds)
-
tests/test_security_oauth2.py
pytest.param("blahpassword", id="password with prefix"), ], ) def test_strict_login_incorrect_grant_type(grant_type: str): response = client.post( "/login", data={"username": "johndoe", "password": "secret", "grant_type": grant_type}, ) assert response.status_code == 422 assert response.json() == { "detail": [ {
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Feb 08 10:18:38 GMT 2026 - 9.8K bytes - Click Count (0) -
tests/test_security_oauth2_optional_description.py
pytest.param("blahpassword", id="password with prefix"), ], ) def test_strict_login_incorrect_grant_type(grant_type: str): response = client.post( "/login", data={"username": "johndoe", "password": "secret", "grant_type": grant_type}, ) assert response.status_code == 422 assert response.json() == { "detail": [ {
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Tue Feb 17 09:59:14 GMT 2026 - 9.9K bytes - Click Count (0) -
fastapi/security/oauth2.py
sending the `client_id` and `client_secret` (if any) using HTTP Basic auth. """ ), ] = None, ): self.grant_type = grant_type self.username = username self.password = password self.scopes = scope.split() self.client_id = client_id self.client_secret = client_secretCreated: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Tue Mar 24 16:32:10 GMT 2026 - 23.6K bytes - Click Count (0) -
docs/ja/docs/tutorial/security/simple-oauth2.md
`OAuth2PasswordRequestForm` は次のフォームボディを宣言するクラス依存関係です: - `username` - `password` - スペース区切りの文字列で構成される、オプションの `scope` フィールド - オプションの `grant_type` /// tip | 豆知識 OAuth2 の仕様では、固定値 `password` を持つフィールド `grant_type` が実際には必須ですが、`OAuth2PasswordRequestForm` はそれを強制しません。 強制したい場合は、`OAuth2PasswordRequestForm` の代わりに `OAuth2PasswordRequestFormStrict` を使ってください。 /// - オプションの `client_id`(この例では不要)
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) -
docs/tr/docs/tutorial/security/simple-oauth2.md
* `username`. * `password`. * Boşlukla ayrılmış string’lerden oluşan büyük bir string olarak opsiyonel `scope` alanı. * Opsiyonel `grant_type`. /// tip | İpucu OAuth2 spesifikasyonu aslında `grant_type` alanını sabit bir `password` değeriyle *zorunlu kılar*, ancak `OAuth2PasswordRequestForm` bunu zorlamaz.
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) -
docs/uk/docs/tutorial/security/simple-oauth2.md
- `username`. - `password`. - Необов'язковим полем `scope` як великою строкою, складеною зі строк, розділених пробілами. - Необов'язковим `grant_type`. /// tip | Порада Специфікація OAuth2 насправді вимагає поле `grant_type` із фіксованим значенням `password`, але `OAuth2PasswordRequestForm` цього не примушує.
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:27:41 GMT 2026 - 15K bytes - Click Count (0) -
docs/ru/docs/tutorial/security/simple-oauth2.md
* `username`. * `password`. * Необязательное поле `scope` в виде большой строки, состоящей из строк, разделенных пробелами. * Необязательное поле `grant_type`. /// tip | Подсказка По спецификации OAuth2 поле `grant_type` обязательно и содержит фиксированное значение `password`, но `OAuth2PasswordRequestForm` это не проверяет строго.
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 17:56:20 GMT 2026 - 16.2K bytes - Click Count (0) -
docs/de/docs/tutorial/security/simple-oauth2.md
* Dem `password`. * Einem optionalen `scope`-Feld als langem String, bestehend aus durch Leerzeichen getrennten Strings. * Einem optionalen <abbr title="Art der Anmeldung">`grant_type`</abbr>. /// tip | Tipp Die OAuth2-Spezifikation *erfordert* tatsächlich ein Feld `grant_type` mit dem festen Wert `password`, aber `OAuth2PasswordRequestForm` erzwingt dies nicht.
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 17:58:09 GMT 2026 - 11.1K bytes - Click Count (0) -
docs/es/docs/tutorial/security/simple-oauth2.md
* El `username`. * El `password`. * Un campo opcional `scope` como un string grande, compuesto por strings separados por espacios. * Un `grant_type` opcional. /// tip | Consejo La especificación de OAuth2 en realidad *requiere* un campo `grant_type` con un valor fijo de `password`, pero `OAuth2PasswordRequestForm` no lo obliga.
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:15:55 GMT 2026 - 10.2K bytes - Click Count (0) -
docs/ko/docs/tutorial/security/simple-oauth2.md
`OAuth2PasswordRequestForm`은 다음을 사용하여 폼 본문을 선언하는 클래스 의존성입니다: * `username`. * `password`. * `scope`는 선택적인 필드로 공백으로 구분된 문자열로 구성된 큰 문자열입니다. * `grant_type`(선택적으로 사용). /// tip | 팁 OAuth2 사양은 실제로 `password`라는 고정 값이 있는 `grant_type` 필드를 *요구*하지만 `OAuth2PasswordRequestForm`은 이를 강요하지 않습니다. 사용해야 한다면 `OAuth2PasswordRequestForm` 대신 `OAuth2PasswordRequestFormStrict`를 사용하면 됩니다. ///
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 14:06:26 GMT 2026 - 11.1K bytes - Click Count (0)