From 79225e66429bc6eedff30beddd10530a17a4004d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Voron?= Date: Thu, 9 Sep 2021 13:28:14 +0200 Subject: [PATCH] Add 6 -> 7 migration doc --- docs/migration/6x_to_7x.md | 10 ++++++++++ mkdocs.yml | 1 + 2 files changed, 11 insertions(+) create mode 100644 docs/migration/6x_to_7x.md diff --git a/docs/migration/6x_to_7x.md b/docs/migration/6x_to_7x.md new file mode 100644 index 00000000..0df44a2e --- /dev/null +++ b/docs/migration/6x_to_7x.md @@ -0,0 +1,10 @@ +# 6.x.x ➡️ 7.x.x + +* The deprecated dependencies to retrieve current user have been removed. Use the `current_user` factory instead. [[Documentation](https://fastapi-users.github.io/fastapi-users/usage/current-user/)] +* When trying to authenticate a not verified user, a **status code 403** is raised instead of status code 401. Thanks @daanbeverdam 🎉 [[Documentation](https://fastapi-users.github.io/fastapi-users/usage/current-user/#current_user)] + +--- + +* Database adapters now live in their [own repositories and packages](https://github.com/fastapi-users). + * When upgrading to v7.0.0, the dependency for your database adapter should automatically be installed. + * The `import` statements remain unchanged. diff --git a/mkdocs.yml b/mkdocs.yml index 5a4002b1..a093408c 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -70,3 +70,4 @@ nav: - migration/2x_to_3x.md - migration/3x_to_4x.md - migration/4x_to_5x.md + - migration/6x_to_7x.md