]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commitdiff
:memo: Update release notes and OAuth2 scopes docs
authorSebastián Ramírez <tiangolo@gmail.com>
Tue, 9 Apr 2019 19:36:18 +0000 (23:36 +0400)
committerSebastián Ramírez <tiangolo@gmail.com>
Tue, 9 Apr 2019 19:36:18 +0000 (23:36 +0400)
docs/release-notes.md
docs/tutorial/security/oauth2-scopes.md

index 5d50cbe1c5677150b28db2def71044cf4c50da3b..28b51ff40a1911b6a601318f8e6929cc8ce83bbe 100644 (file)
@@ -1,5 +1,13 @@
 ## Next release
 
+* Improve/upgrade OAuth2 scopes support with `SecurityScopes`:
+    * `SecurityScopes` can be declared as a parameter like `Request`, to get the scopes of all super-dependencies/dependants.
+    * Improve `Security` handling, merging scopes when declaring `SecurityScopes`.
+    * Allow using `SecurityBase` (like `OAuth2`) classes with `Depends` and still document them. `Security` now is needed only to declare `scopes`.
+    * Updated docs about: <a href="https://fastapi.tiangolo.com/tutorial/security/oauth2-jwt/" target="_blank">OAuth2 with Password (and hashing), Bearer with JWT tokens</a>.
+    * New docs about: <a href="https://fastapi.tiangolo.com/tutorial/security/oauth2-scopes/" target="_blank">OAuth2 scopes</a>.
+    * PR <a href="https://github.com/tiangolo/fastapi/pull/141" target="_blank">#141</a>.
+
 ## 0.12.1
 
 * Fix bug: handling additional `responses` in `APIRouter.include_router()`. PR <a href="https://github.com/tiangolo/fastapi/pull/140" target="_blank">#140</a>.
index 51e28daafd853d60bf0ba6fa57e2085533b69518..2056b41abf70b2ee0731f153a4db7a5a52a7bf88 100644 (file)
@@ -1,6 +1,6 @@
 You can use OAuth2 scopes directly with **FastAPI**, they are integrated to work seamlessly.
 
-This would allow you to have a more fine-grained permission system, following standards like OAuth2, integrated into your OpenAPI application (and the API docs).
+This would allow you to have a more fine-grained permission system, following the OAuth2 standard, integrated into your OpenAPI application (and the API docs).
 
 OAuth2 with scopes is the mechanism used by many big authentication providers, like Facebook, Google, GitHub, Microsoft, Twitter, etc. They use it to provide specific permissions to users and applications.