From: Sun Bin <165283125+shandongbinzhou@users.noreply.github.com> Date: Fri, 29 Mar 2024 23:06:20 +0000 (+0800) Subject: ✏️ Fix typo in `fastapi/security/oauth2.py` (#11368) X-Git-Tag: 0.110.1~269 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=009b14846362b0249303e49d00c3187859a5e176;p=thirdparty%2Ffastapi%2Ffastapi.git ✏️ Fix typo in `fastapi/security/oauth2.py` (#11368) --- diff --git a/fastapi/security/oauth2.py b/fastapi/security/oauth2.py index 0606291b8a..d7ba44bcea 100644 --- a/fastapi/security/oauth2.py +++ b/fastapi/security/oauth2.py @@ -54,7 +54,7 @@ class OAuth2PasswordRequestForm: Note that for OAuth2 the scope `items:read` is a single scope in an opaque string. You could have custom internal logic to separate it by colon caracters (`:`) or similar, and get the two parts `items` and `read`. Many applications do that to - group and organize permisions, you could do it as well in your application, just + group and organize permissions, you could do it as well in your application, just know that that it is application specific, it's not part of the specification. """ @@ -196,7 +196,7 @@ class OAuth2PasswordRequestFormStrict(OAuth2PasswordRequestForm): Note that for OAuth2 the scope `items:read` is a single scope in an opaque string. You could have custom internal logic to separate it by colon caracters (`:`) or similar, and get the two parts `items` and `read`. Many applications do that to - group and organize permisions, you could do it as well in your application, just + group and organize permissions, you could do it as well in your application, just know that that it is application specific, it's not part of the specification.