Skip to content

Commit 8081d23

Browse files
authored
📝 Fix minor typos (fastapi#12516)
1 parent 2d43a8a commit 8081d23

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

fastapi/param_functions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2298,7 +2298,7 @@ def Security( # noqa: N802
22982298
dependency.
22992299
23002300
The term "scope" comes from the OAuth2 specification, it seems to be
2301-
intentionaly vague and interpretable. It normally refers to permissions,
2301+
intentionally vague and interpretable. It normally refers to permissions,
23022302
in cases to roles.
23032303
23042304
These scopes are integrated with OpenAPI (and the API docs at `/docs`).

fastapi/security/oauth2.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def login(form_data: Annotated[OAuth2PasswordRequestForm, Depends()]):
5252
```
5353
5454
Note that for OAuth2 the scope `items:read` is a single scope in an opaque string.
55-
You could have custom internal logic to separate it by colon caracters (`:`) or
55+
You could have custom internal logic to separate it by colon characters (`:`) or
5656
similar, and get the two parts `items` and `read`. Many applications do that to
5757
group and organize permissions, you could do it as well in your application, just
5858
know that that it is application specific, it's not part of the specification.
@@ -194,7 +194,7 @@ def login(form_data: Annotated[OAuth2PasswordRequestFormStrict, Depends()]):
194194
```
195195
196196
Note that for OAuth2 the scope `items:read` is a single scope in an opaque string.
197-
You could have custom internal logic to separate it by colon caracters (`:`) or
197+
You could have custom internal logic to separate it by colon characters (`:`) or
198198
similar, and get the two parts `items` and `read`. Many applications do that to
199199
group and organize permissions, you could do it as well in your application, just
200200
know that that it is application specific, it's not part of the specification.

0 commit comments

Comments
 (0)