Skip to content

Commit 2c09b63

Browse files
committed
✏️ Fix client_password typo in OAuth2 form docstrings
1 parent c441583 commit 2c09b63

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

fastapi/security/oauth2.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ def __init__(
143143
Form(json_schema_extra={"format": "password"}),
144144
Doc(
145145
"""
146-
If there's a `client_password` (and a `client_id`), they can be sent
146+
If there's a `client_secret` (and a `client_id`), they can be sent
147147
as part of the form fields. But the OAuth2 specification recommends
148148
sending the `client_id` and `client_secret` (if any) using HTTP Basic
149149
auth.
@@ -309,7 +309,7 @@ def __init__(
309309
Form(),
310310
Doc(
311311
"""
312-
If there's a `client_password` (and a `client_id`), they can be sent
312+
If there's a `client_secret` (and a `client_id`), they can be sent
313313
as part of the form fields. But the OAuth2 specification recommends
314314
sending the `client_id` and `client_secret` (if any) using HTTP Basic
315315
auth.

0 commit comments

Comments
 (0)