Complete OAuth2 documentation

This commit is contained in:
François Voron
2021-09-18 10:18:44 +02:00
parent fc59cf11ef
commit c198da58bc
11 changed files with 99 additions and 398 deletions

View File

@@ -24,7 +24,7 @@ For the sake of this tutorial from now on, we'll use a simple SQLite databse.
Let's declare our User ORM model.
```py hl_lines="11-15"
```py hl_lines="12-16"
{!./src/db_ormar.py!}
```
@@ -37,11 +37,11 @@ there to fit to your needs!
The database adapter of **FastAPI Users** makes the link between your
database configuration and the users logic. It should be generated by a FastAPI dependency.
```py hl_lines="22-23"
```py hl_lines="23-24"
{!./src/db_ormar.py!}
```
Notice that we pass a reference to your [`UserDB` model](../models.md).
Notice that we pass a reference to your [`UserDB` model](../model.md).
!!! warning
In production, it's strongly recommended to setup a migration system to