mirror of
https://github.com/fastapi-users/fastapi-users.git
synced 2026-03-13 07:49:55 +08:00
Automated deployment: Tue Jun 8 14:29:22 UTC 2021 22384f6405
This commit is contained in:
@@ -11,8 +11,8 @@
|
||||
|
||||
|
||||
|
||||
<link rel="icon" href="../../../favicon.png">
|
||||
<meta name="generator" content="mkdocs-1.1.2, mkdocs-material-7.1.5">
|
||||
<link rel="icon" href="../../favicon.png">
|
||||
<meta name="generator" content="mkdocs-1.2, mkdocs-material-7.1.7">
|
||||
|
||||
|
||||
|
||||
@@ -20,10 +20,10 @@
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../../../assets/stylesheets/main.bde7dde4.min.css">
|
||||
<link rel="stylesheet" href="../../assets/stylesheets/main.ca7ac06f.min.css">
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../../../assets/stylesheets/palette.ef6f36e2.min.css">
|
||||
<link rel="stylesheet" href="../../assets/stylesheets/palette.f1a3b89f.min.css">
|
||||
|
||||
|
||||
|
||||
@@ -55,7 +55,7 @@
|
||||
<body dir="ltr" data-md-color-scheme="default" data-md-color-primary="red" data-md-color-accent="red">
|
||||
|
||||
|
||||
<script>function __prefix(e){return new URL("../../..",location).pathname+"."+e}function __get(e,t=localStorage){return JSON.parse(t.getItem(__prefix(e)))}</script>
|
||||
<script>function __prefix(e){return new URL("../..",location).pathname+"."+e}function __get(e,t=localStorage){return JSON.parse(t.getItem(__prefix(e)))}</script>
|
||||
|
||||
<script>var palette=__get("__palette");if(null!==palette&&"object"==typeof palette.color)for(var key in palette.color)document.body.setAttribute("data-md-color-"+key,palette.color[key])</script>
|
||||
|
||||
@@ -76,7 +76,7 @@
|
||||
|
||||
<header class="md-header" data-md-component="header">
|
||||
<nav class="md-header__inner md-grid" aria-label="Header">
|
||||
<a href="../../.." title="FastAPI Users" class="md-header__button md-logo" aria-label="FastAPI Users" data-md-component="logo">
|
||||
<a href="../../index.html" title="FastAPI Users" class="md-header__button md-logo" aria-label="FastAPI Users" data-md-component="logo">
|
||||
|
||||
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M16.5 12A2.5 2.5 0 0 0 19 9.5 2.5 2.5 0 0 0 16.5 7 2.5 2.5 0 0 0 14 9.5a2.5 2.5 0 0 0 2.5 2.5M9 11a3 3 0 0 0 3-3 3 3 0 0 0-3-3 3 3 0 0 0-3 3 3 3 0 0 0 3 3m7.5 3c-1.83 0-5.5.92-5.5 2.75V19h11v-2.25c0-1.83-3.67-2.75-5.5-2.75M9 13c-2.33 0-7 1.17-7 3.5V19h7v-2.25c0-.85.33-2.34 2.37-3.47C10.5 13.1 9.66 13 9 13z"/></svg>
|
||||
@@ -106,7 +106,7 @@
|
||||
|
||||
|
||||
|
||||
<input class="md-option" data-md-color-media="" data-md-color-scheme="default" data-md-color-primary="red" data-md-color-accent="red" type="radio" name="__palette" id="__palette_1">
|
||||
<input class="md-option" data-md-color-media="" data-md-color-scheme="default" data-md-color-primary="red" data-md-color-accent="red" aria-label="Switch to dark mode" type="radio" name="__palette" id="__palette_1">
|
||||
|
||||
<label class="md-header__button md-icon" title="Switch to dark mode" for="__palette_2" hidden>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2a7 7 0 0 0-7 7c0 2.38 1.19 4.47 3 5.74V17a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1v-2.26c1.81-1.27 3-3.36 3-5.74a7 7 0 0 0-7-7M9 21a1 1 0 0 0 1 1h4a1 1 0 0 0 1-1v-1H9v1z"/></svg>
|
||||
@@ -115,7 +115,7 @@
|
||||
|
||||
|
||||
|
||||
<input class="md-option" data-md-color-media="" data-md-color-scheme="slate" data-md-color-primary="red" data-md-color-accent="red" type="radio" name="__palette" id="__palette_2">
|
||||
<input class="md-option" data-md-color-media="" data-md-color-scheme="slate" data-md-color-primary="red" data-md-color-accent="red" aria-label="Switch to light mode" type="radio" name="__palette" id="__palette_2">
|
||||
|
||||
<label class="md-header__button md-icon" title="Switch to light mode" for="__palette_1" hidden>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2a7 7 0 0 1 7 7c0 2.38-1.19 4.47-3 5.74V17a1 1 0 0 1-1 1H9a1 1 0 0 1-1-1v-2.26C6.19 13.47 5 11.38 5 9a7 7 0 0 1 7-7M9 21v-1h6v1a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-1m3-17a5 5 0 0 0-5 5c0 2.05 1.23 3.81 3 4.58V16h4v-2.42c1.77-.77 3-2.53 3-4.58a5 5 0 0 0-5-5z"/></svg>
|
||||
@@ -191,7 +191,7 @@
|
||||
|
||||
<nav class="md-nav md-nav--primary" aria-label="Navigation" data-md-level="0">
|
||||
<label class="md-nav__title" for="__drawer">
|
||||
<a href="../../.." title="FastAPI Users" class="md-nav__button md-logo" aria-label="FastAPI Users" data-md-component="logo">
|
||||
<a href="../../index.html" title="FastAPI Users" class="md-nav__button md-logo" aria-label="FastAPI Users" data-md-component="logo">
|
||||
|
||||
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M16.5 12A2.5 2.5 0 0 0 19 9.5 2.5 2.5 0 0 0 16.5 7 2.5 2.5 0 0 0 14 9.5a2.5 2.5 0 0 0 2.5 2.5M9 11a3 3 0 0 0 3-3 3 3 0 0 0-3-3 3 3 0 0 0-3 3 3 3 0 0 0 3 3m7.5 3c-1.83 0-5.5.92-5.5 2.75V19h11v-2.25c0-1.83-3.67-2.75-5.5-2.75M9 13c-2.33 0-7 1.17-7 3.5V19h7v-2.25c0-.85.33-2.34 2.37-3.47C10.5 13.1 9.66 13 9 13z"/></svg>
|
||||
@@ -223,7 +223,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../.." class="md-nav__link">
|
||||
<a href="../../index.html" class="md-nav__link">
|
||||
About
|
||||
</a>
|
||||
</li>
|
||||
@@ -238,7 +238,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../../installation/" class="md-nav__link">
|
||||
<a href="../../installation.html" class="md-nav__link">
|
||||
Installation
|
||||
</a>
|
||||
</li>
|
||||
@@ -276,7 +276,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../model/" class="md-nav__link">
|
||||
<a href="../model.html" class="md-nav__link">
|
||||
User model
|
||||
</a>
|
||||
</li>
|
||||
@@ -309,7 +309,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../databases/sqlalchemy/" class="md-nav__link">
|
||||
<a href="../databases/sqlalchemy.html" class="md-nav__link">
|
||||
SQLAlchemy
|
||||
</a>
|
||||
</li>
|
||||
@@ -321,7 +321,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../databases/mongodb/" class="md-nav__link">
|
||||
<a href="../databases/mongodb.html" class="md-nav__link">
|
||||
MongoDB
|
||||
</a>
|
||||
</li>
|
||||
@@ -333,7 +333,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../databases/tortoise/" class="md-nav__link">
|
||||
<a href="../databases/tortoise.html" class="md-nav__link">
|
||||
Tortoise ORM
|
||||
</a>
|
||||
</li>
|
||||
@@ -345,7 +345,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../databases/ormar/" class="md-nav__link">
|
||||
<a href="../databases/ormar.html" class="md-nav__link">
|
||||
Ormar
|
||||
</a>
|
||||
</li>
|
||||
@@ -386,7 +386,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../" class="md-nav__link">
|
||||
<a href="index.html" class="md-nav__link">
|
||||
Introduction
|
||||
</a>
|
||||
</li>
|
||||
@@ -398,7 +398,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../jwt/" class="md-nav__link">
|
||||
<a href="jwt.html" class="md-nav__link">
|
||||
JWT
|
||||
</a>
|
||||
</li>
|
||||
@@ -424,7 +424,7 @@
|
||||
<span class="md-nav__icon md-icon"></span>
|
||||
</label>
|
||||
|
||||
<a href="./" class="md-nav__link md-nav__link--active">
|
||||
<a href="cookie.html" class="md-nav__link md-nav__link--active">
|
||||
Cookie
|
||||
</a>
|
||||
|
||||
@@ -517,7 +517,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../routers/" class="md-nav__link">
|
||||
<a href="../routers/index.html" class="md-nav__link">
|
||||
Introduction
|
||||
</a>
|
||||
</li>
|
||||
@@ -529,7 +529,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../routers/auth/" class="md-nav__link">
|
||||
<a href="../routers/auth.html" class="md-nav__link">
|
||||
Auth router
|
||||
</a>
|
||||
</li>
|
||||
@@ -541,7 +541,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../routers/register/" class="md-nav__link">
|
||||
<a href="../routers/register.html" class="md-nav__link">
|
||||
Register routes
|
||||
</a>
|
||||
</li>
|
||||
@@ -553,7 +553,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../routers/reset/" class="md-nav__link">
|
||||
<a href="../routers/reset.html" class="md-nav__link">
|
||||
Reset password router
|
||||
</a>
|
||||
</li>
|
||||
@@ -565,7 +565,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../routers/users/" class="md-nav__link">
|
||||
<a href="../routers/users.html" class="md-nav__link">
|
||||
Users router
|
||||
</a>
|
||||
</li>
|
||||
@@ -577,7 +577,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../routers/verify/" class="md-nav__link">
|
||||
<a href="../routers/verify.html" class="md-nav__link">
|
||||
Verify router
|
||||
</a>
|
||||
</li>
|
||||
@@ -595,7 +595,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../password-validation/" class="md-nav__link">
|
||||
<a href="../password-validation.html" class="md-nav__link">
|
||||
Password validation
|
||||
</a>
|
||||
</li>
|
||||
@@ -607,7 +607,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../full-example/" class="md-nav__link">
|
||||
<a href="../full-example.html" class="md-nav__link">
|
||||
Full example
|
||||
</a>
|
||||
</li>
|
||||
@@ -619,7 +619,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../oauth/" class="md-nav__link">
|
||||
<a href="../oauth.html" class="md-nav__link">
|
||||
OAuth2
|
||||
</a>
|
||||
</li>
|
||||
@@ -661,7 +661,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../../usage/flow/" class="md-nav__link">
|
||||
<a href="../../usage/flow.html" class="md-nav__link">
|
||||
Flow
|
||||
</a>
|
||||
</li>
|
||||
@@ -673,7 +673,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../../usage/routes/" class="md-nav__link">
|
||||
<a href="../../usage/routes.html" class="md-nav__link">
|
||||
Routes
|
||||
</a>
|
||||
</li>
|
||||
@@ -685,7 +685,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../../usage/dependency-callables/" class="md-nav__link">
|
||||
<a href="../../usage/dependency-callables.html" class="md-nav__link">
|
||||
Dependency callables
|
||||
</a>
|
||||
</li>
|
||||
@@ -697,7 +697,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../../usage/helpers/" class="md-nav__link">
|
||||
<a href="../../usage/helpers.html" class="md-nav__link">
|
||||
Helpers
|
||||
</a>
|
||||
</li>
|
||||
@@ -739,7 +739,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../../migration/08_to_1x/" class="md-nav__link">
|
||||
<a href="../../migration/08_to_1x.html" class="md-nav__link">
|
||||
0.8.x ➡️ 1.x.x
|
||||
</a>
|
||||
</li>
|
||||
@@ -751,7 +751,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../../migration/1x_to_2x/" class="md-nav__link">
|
||||
<a href="../../migration/1x_to_2x.html" class="md-nav__link">
|
||||
1.x.x ➡️ 2.x.x
|
||||
</a>
|
||||
</li>
|
||||
@@ -763,7 +763,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../../migration/2x_to_3x/" class="md-nav__link">
|
||||
<a href="../../migration/2x_to_3x.html" class="md-nav__link">
|
||||
2.x.x ➡️ 3.x.x
|
||||
</a>
|
||||
</li>
|
||||
@@ -775,7 +775,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../../migration/3x_to_4x/" class="md-nav__link">
|
||||
<a href="../../migration/3x_to_4x.html" class="md-nav__link">
|
||||
3.x.x ➡️ 4.x.x
|
||||
</a>
|
||||
</li>
|
||||
@@ -787,7 +787,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../../migration/4x_to_5x/" class="md-nav__link">
|
||||
<a href="../../migration/4x_to_5x.html" class="md-nav__link">
|
||||
4.x.x ➡️ 5.x.x
|
||||
</a>
|
||||
</li>
|
||||
@@ -906,7 +906,7 @@
|
||||
</code></pre></div>
|
||||
<div class="admonition tip">
|
||||
<p class="admonition-title">Tip</p>
|
||||
<p>The value of the cookie is actually a JWT. This authentication backend shares most of its logic with the <a href="../jwt/">JWT</a> one.</p>
|
||||
<p>The value of the cookie is actually a JWT. This authentication backend shares most of its logic with the <a href="jwt.html">JWT</a> one.</p>
|
||||
</div>
|
||||
<h2 id="login">Login<a class="headerlink" href="#login" title="Permanent link">¶</a></h2>
|
||||
<p>This method will return a response with a valid <code>set-cookie</code> header upon successful login:</p>
|
||||
@@ -914,7 +914,7 @@
|
||||
<p class="admonition-title"><code>200 OK</code></p>
|
||||
</div>
|
||||
<blockquote>
|
||||
<p>Check documentation about <a href="../../../usage/routes/#post-loginname">login route</a>.</p>
|
||||
<p>Check documentation about <a href="../../usage/routes.html#post-loginname">login route</a>.</p>
|
||||
</blockquote>
|
||||
<h2 id="logout">Logout<a class="headerlink" href="#logout" title="Permanent link">¶</a></h2>
|
||||
<p>This method will remove the authentication cookie:</p>
|
||||
@@ -922,12 +922,12 @@
|
||||
<p class="admonition-title"><code>200 OK</code></p>
|
||||
</div>
|
||||
<blockquote>
|
||||
<p>Check documentation about <a href="../../../usage/routes/#post-logoutname">logout route</a>.</p>
|
||||
<p>Check documentation about <a href="../../usage/routes.html#post-logoutname">logout route</a>.</p>
|
||||
</blockquote>
|
||||
<h2 id="authentication">Authentication<a class="headerlink" href="#authentication" title="Permanent link">¶</a></h2>
|
||||
<p>This method expects that you provide a valid cookie in the headers.</p>
|
||||
<h2 id="next-steps">Next steps<a class="headerlink" href="#next-steps" title="Permanent link">¶</a></h2>
|
||||
<p>We will now configure the main <strong>FastAPI Users</strong> object that will expose the <a href="../../routers/">routers</a>.</p>
|
||||
<p>We will now configure the main <strong>FastAPI Users</strong> object that will expose the <a href="../routers/index.html">routers</a>.</p>
|
||||
|
||||
|
||||
|
||||
@@ -946,7 +946,8 @@
|
||||
|
||||
<nav class="md-footer__inner md-grid" aria-label="Footer">
|
||||
|
||||
<a href="../jwt/" class="md-footer__link md-footer__link--prev" rel="prev">
|
||||
|
||||
<a href="jwt.html" class="md-footer__link md-footer__link--prev" aria-label="Previous: JWT" rel="prev">
|
||||
<div class="md-footer__button md-icon">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
|
||||
</div>
|
||||
@@ -961,7 +962,8 @@
|
||||
</a>
|
||||
|
||||
|
||||
<a href="../../routers/" class="md-footer__link md-footer__link--next" rel="next">
|
||||
|
||||
<a href="../routers/index.html" class="md-footer__link md-footer__link--next" aria-label="Next: Introduction" rel="next">
|
||||
<div class="md-footer__title">
|
||||
<div class="md-ellipsis">
|
||||
<span class="md-footer__direction">
|
||||
@@ -996,10 +998,10 @@
|
||||
<div class="md-dialog" data-md-component="dialog">
|
||||
<div class="md-dialog__inner md-typeset"></div>
|
||||
</div>
|
||||
<script id="__config" type="application/json">{"base": "../../..", "features": [], "translations": {"clipboard.copy": "Copy to clipboard", "clipboard.copied": "Copied to clipboard", "search.config.lang": "en", "search.config.pipeline": "trimmer, stopWordFilter", "search.config.separator": "[\\s\\-]+", "search.placeholder": "Search", "search.result.placeholder": "Type to start searching", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.term.missing": "Missing"}, "search": "../../../assets/javascripts/workers/search.d351de03.min.js", "version": null}</script>
|
||||
<script id="__config" type="application/json">{"base": "../..", "features": [], "translations": {"clipboard.copy": "Copy to clipboard", "clipboard.copied": "Copied to clipboard", "search.config.lang": "en", "search.config.pipeline": "trimmer, stopWordFilter", "search.config.separator": "[\\s\\-]+", "search.placeholder": "Search", "search.result.placeholder": "Type to start searching", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.term.missing": "Missing", "select.version.title": "Select version"}, "search": "../../assets/javascripts/workers/search.b0710199.min.js", "version": null}</script>
|
||||
|
||||
|
||||
<script src="../../../assets/javascripts/bundle.a1609d9a.min.js"></script>
|
||||
<script src="../../assets/javascripts/bundle.76f349be.min.js"></script>
|
||||
|
||||
|
||||
</body>
|
||||
@@ -12,7 +12,7 @@
|
||||
|
||||
|
||||
<link rel="icon" href="../../favicon.png">
|
||||
<meta name="generator" content="mkdocs-1.1.2, mkdocs-material-7.1.5">
|
||||
<meta name="generator" content="mkdocs-1.2, mkdocs-material-7.1.7">
|
||||
|
||||
|
||||
|
||||
@@ -20,10 +20,10 @@
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../../assets/stylesheets/main.bde7dde4.min.css">
|
||||
<link rel="stylesheet" href="../../assets/stylesheets/main.ca7ac06f.min.css">
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../../assets/stylesheets/palette.ef6f36e2.min.css">
|
||||
<link rel="stylesheet" href="../../assets/stylesheets/palette.f1a3b89f.min.css">
|
||||
|
||||
|
||||
|
||||
@@ -76,7 +76,7 @@
|
||||
|
||||
<header class="md-header" data-md-component="header">
|
||||
<nav class="md-header__inner md-grid" aria-label="Header">
|
||||
<a href="../.." title="FastAPI Users" class="md-header__button md-logo" aria-label="FastAPI Users" data-md-component="logo">
|
||||
<a href="../../index.html" title="FastAPI Users" class="md-header__button md-logo" aria-label="FastAPI Users" data-md-component="logo">
|
||||
|
||||
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M16.5 12A2.5 2.5 0 0 0 19 9.5 2.5 2.5 0 0 0 16.5 7 2.5 2.5 0 0 0 14 9.5a2.5 2.5 0 0 0 2.5 2.5M9 11a3 3 0 0 0 3-3 3 3 0 0 0-3-3 3 3 0 0 0-3 3 3 3 0 0 0 3 3m7.5 3c-1.83 0-5.5.92-5.5 2.75V19h11v-2.25c0-1.83-3.67-2.75-5.5-2.75M9 13c-2.33 0-7 1.17-7 3.5V19h7v-2.25c0-.85.33-2.34 2.37-3.47C10.5 13.1 9.66 13 9 13z"/></svg>
|
||||
@@ -106,7 +106,7 @@
|
||||
|
||||
|
||||
|
||||
<input class="md-option" data-md-color-media="" data-md-color-scheme="default" data-md-color-primary="red" data-md-color-accent="red" type="radio" name="__palette" id="__palette_1">
|
||||
<input class="md-option" data-md-color-media="" data-md-color-scheme="default" data-md-color-primary="red" data-md-color-accent="red" aria-label="Switch to dark mode" type="radio" name="__palette" id="__palette_1">
|
||||
|
||||
<label class="md-header__button md-icon" title="Switch to dark mode" for="__palette_2" hidden>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2a7 7 0 0 0-7 7c0 2.38 1.19 4.47 3 5.74V17a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1v-2.26c1.81-1.27 3-3.36 3-5.74a7 7 0 0 0-7-7M9 21a1 1 0 0 0 1 1h4a1 1 0 0 0 1-1v-1H9v1z"/></svg>
|
||||
@@ -115,7 +115,7 @@
|
||||
|
||||
|
||||
|
||||
<input class="md-option" data-md-color-media="" data-md-color-scheme="slate" data-md-color-primary="red" data-md-color-accent="red" type="radio" name="__palette" id="__palette_2">
|
||||
<input class="md-option" data-md-color-media="" data-md-color-scheme="slate" data-md-color-primary="red" data-md-color-accent="red" aria-label="Switch to light mode" type="radio" name="__palette" id="__palette_2">
|
||||
|
||||
<label class="md-header__button md-icon" title="Switch to light mode" for="__palette_1" hidden>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2a7 7 0 0 1 7 7c0 2.38-1.19 4.47-3 5.74V17a1 1 0 0 1-1 1H9a1 1 0 0 1-1-1v-2.26C6.19 13.47 5 11.38 5 9a7 7 0 0 1 7-7M9 21v-1h6v1a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-1m3-17a5 5 0 0 0-5 5c0 2.05 1.23 3.81 3 4.58V16h4v-2.42c1.77-.77 3-2.53 3-4.58a5 5 0 0 0-5-5z"/></svg>
|
||||
@@ -191,7 +191,7 @@
|
||||
|
||||
<nav class="md-nav md-nav--primary" aria-label="Navigation" data-md-level="0">
|
||||
<label class="md-nav__title" for="__drawer">
|
||||
<a href="../.." title="FastAPI Users" class="md-nav__button md-logo" aria-label="FastAPI Users" data-md-component="logo">
|
||||
<a href="../../index.html" title="FastAPI Users" class="md-nav__button md-logo" aria-label="FastAPI Users" data-md-component="logo">
|
||||
|
||||
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M16.5 12A2.5 2.5 0 0 0 19 9.5 2.5 2.5 0 0 0 16.5 7 2.5 2.5 0 0 0 14 9.5a2.5 2.5 0 0 0 2.5 2.5M9 11a3 3 0 0 0 3-3 3 3 0 0 0-3-3 3 3 0 0 0-3 3 3 3 0 0 0 3 3m7.5 3c-1.83 0-5.5.92-5.5 2.75V19h11v-2.25c0-1.83-3.67-2.75-5.5-2.75M9 13c-2.33 0-7 1.17-7 3.5V19h7v-2.25c0-.85.33-2.34 2.37-3.47C10.5 13.1 9.66 13 9 13z"/></svg>
|
||||
@@ -223,7 +223,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../.." class="md-nav__link">
|
||||
<a href="../../index.html" class="md-nav__link">
|
||||
About
|
||||
</a>
|
||||
</li>
|
||||
@@ -238,7 +238,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../installation/" class="md-nav__link">
|
||||
<a href="../../installation.html" class="md-nav__link">
|
||||
Installation
|
||||
</a>
|
||||
</li>
|
||||
@@ -276,7 +276,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../model/" class="md-nav__link">
|
||||
<a href="../model.html" class="md-nav__link">
|
||||
User model
|
||||
</a>
|
||||
</li>
|
||||
@@ -309,7 +309,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../databases/sqlalchemy/" class="md-nav__link">
|
||||
<a href="../databases/sqlalchemy.html" class="md-nav__link">
|
||||
SQLAlchemy
|
||||
</a>
|
||||
</li>
|
||||
@@ -321,7 +321,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../databases/mongodb/" class="md-nav__link">
|
||||
<a href="../databases/mongodb.html" class="md-nav__link">
|
||||
MongoDB
|
||||
</a>
|
||||
</li>
|
||||
@@ -333,7 +333,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../databases/tortoise/" class="md-nav__link">
|
||||
<a href="../databases/tortoise.html" class="md-nav__link">
|
||||
Tortoise ORM
|
||||
</a>
|
||||
</li>
|
||||
@@ -345,7 +345,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../databases/ormar/" class="md-nav__link">
|
||||
<a href="../databases/ormar.html" class="md-nav__link">
|
||||
Ormar
|
||||
</a>
|
||||
</li>
|
||||
@@ -400,7 +400,7 @@
|
||||
<span class="md-nav__icon md-icon"></span>
|
||||
</label>
|
||||
|
||||
<a href="./" class="md-nav__link md-nav__link--active">
|
||||
<a href="index.html" class="md-nav__link md-nav__link--active">
|
||||
Introduction
|
||||
</a>
|
||||
|
||||
@@ -445,7 +445,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="jwt/" class="md-nav__link">
|
||||
<a href="jwt.html" class="md-nav__link">
|
||||
JWT
|
||||
</a>
|
||||
</li>
|
||||
@@ -457,7 +457,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="cookie/" class="md-nav__link">
|
||||
<a href="cookie.html" class="md-nav__link">
|
||||
Cookie
|
||||
</a>
|
||||
</li>
|
||||
@@ -496,7 +496,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../routers/" class="md-nav__link">
|
||||
<a href="../routers/index.html" class="md-nav__link">
|
||||
Introduction
|
||||
</a>
|
||||
</li>
|
||||
@@ -508,7 +508,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../routers/auth/" class="md-nav__link">
|
||||
<a href="../routers/auth.html" class="md-nav__link">
|
||||
Auth router
|
||||
</a>
|
||||
</li>
|
||||
@@ -520,7 +520,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../routers/register/" class="md-nav__link">
|
||||
<a href="../routers/register.html" class="md-nav__link">
|
||||
Register routes
|
||||
</a>
|
||||
</li>
|
||||
@@ -532,7 +532,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../routers/reset/" class="md-nav__link">
|
||||
<a href="../routers/reset.html" class="md-nav__link">
|
||||
Reset password router
|
||||
</a>
|
||||
</li>
|
||||
@@ -544,7 +544,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../routers/users/" class="md-nav__link">
|
||||
<a href="../routers/users.html" class="md-nav__link">
|
||||
Users router
|
||||
</a>
|
||||
</li>
|
||||
@@ -556,7 +556,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../routers/verify/" class="md-nav__link">
|
||||
<a href="../routers/verify.html" class="md-nav__link">
|
||||
Verify router
|
||||
</a>
|
||||
</li>
|
||||
@@ -574,7 +574,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../password-validation/" class="md-nav__link">
|
||||
<a href="../password-validation.html" class="md-nav__link">
|
||||
Password validation
|
||||
</a>
|
||||
</li>
|
||||
@@ -586,7 +586,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../full-example/" class="md-nav__link">
|
||||
<a href="../full-example.html" class="md-nav__link">
|
||||
Full example
|
||||
</a>
|
||||
</li>
|
||||
@@ -598,7 +598,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../oauth/" class="md-nav__link">
|
||||
<a href="../oauth.html" class="md-nav__link">
|
||||
OAuth2
|
||||
</a>
|
||||
</li>
|
||||
@@ -640,7 +640,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../usage/flow/" class="md-nav__link">
|
||||
<a href="../../usage/flow.html" class="md-nav__link">
|
||||
Flow
|
||||
</a>
|
||||
</li>
|
||||
@@ -652,7 +652,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../usage/routes/" class="md-nav__link">
|
||||
<a href="../../usage/routes.html" class="md-nav__link">
|
||||
Routes
|
||||
</a>
|
||||
</li>
|
||||
@@ -664,7 +664,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../usage/dependency-callables/" class="md-nav__link">
|
||||
<a href="../../usage/dependency-callables.html" class="md-nav__link">
|
||||
Dependency callables
|
||||
</a>
|
||||
</li>
|
||||
@@ -676,7 +676,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../usage/helpers/" class="md-nav__link">
|
||||
<a href="../../usage/helpers.html" class="md-nav__link">
|
||||
Helpers
|
||||
</a>
|
||||
</li>
|
||||
@@ -718,7 +718,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../migration/08_to_1x/" class="md-nav__link">
|
||||
<a href="../../migration/08_to_1x.html" class="md-nav__link">
|
||||
0.8.x ➡️ 1.x.x
|
||||
</a>
|
||||
</li>
|
||||
@@ -730,7 +730,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../migration/1x_to_2x/" class="md-nav__link">
|
||||
<a href="../../migration/1x_to_2x.html" class="md-nav__link">
|
||||
1.x.x ➡️ 2.x.x
|
||||
</a>
|
||||
</li>
|
||||
@@ -742,7 +742,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../migration/2x_to_3x/" class="md-nav__link">
|
||||
<a href="../../migration/2x_to_3x.html" class="md-nav__link">
|
||||
2.x.x ➡️ 3.x.x
|
||||
</a>
|
||||
</li>
|
||||
@@ -754,7 +754,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../migration/3x_to_4x/" class="md-nav__link">
|
||||
<a href="../../migration/3x_to_4x.html" class="md-nav__link">
|
||||
3.x.x ➡️ 4.x.x
|
||||
</a>
|
||||
</li>
|
||||
@@ -766,7 +766,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../migration/4x_to_5x/" class="md-nav__link">
|
||||
<a href="../../migration/4x_to_5x.html" class="md-nav__link">
|
||||
4.x.x ➡️ 5.x.x
|
||||
</a>
|
||||
</li>
|
||||
@@ -836,11 +836,11 @@
|
||||
<h2 id="how-it-works">How it works?<a class="headerlink" href="#how-it-works" title="Permanent link">¶</a></h2>
|
||||
<p>You can have <strong>several</strong> authentication methods, e.g. a cookie authentication for browser-based queries and a JWT token authentication for pure API queries.</p>
|
||||
<p>When checking authentication, each method is run one after the other. The first method yielding a user wins. If no method yields a user, an <code>HTTPException</code> is raised.</p>
|
||||
<p>For each backend, you'll be able to add a router with the corresponding <code>/login</code> and <code>/logout</code> (if applicable routes). More on this in the <a href="../routers/">routers documentation</a>.</p>
|
||||
<p>For each backend, you'll be able to add a router with the corresponding <code>/login</code> and <code>/logout</code> (if applicable routes). More on this in the <a href="../routers/index.html">routers documentation</a>.</p>
|
||||
<h2 id="provided-methods">Provided methods<a class="headerlink" href="#provided-methods" title="Permanent link">¶</a></h2>
|
||||
<ul>
|
||||
<li><a href="jwt/">JWT authentication</a></li>
|
||||
<li><a href="cookie/">Cookie authentication</a></li>
|
||||
<li><a href="jwt.html">JWT authentication</a></li>
|
||||
<li><a href="cookie.html">Cookie authentication</a></li>
|
||||
</ul>
|
||||
|
||||
|
||||
@@ -860,7 +860,8 @@
|
||||
|
||||
<nav class="md-footer__inner md-grid" aria-label="Footer">
|
||||
|
||||
<a href="../databases/ormar/" class="md-footer__link md-footer__link--prev" rel="prev">
|
||||
|
||||
<a href="../databases/ormar.html" class="md-footer__link md-footer__link--prev" aria-label="Previous: Ormar" rel="prev">
|
||||
<div class="md-footer__button md-icon">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
|
||||
</div>
|
||||
@@ -875,7 +876,8 @@
|
||||
</a>
|
||||
|
||||
|
||||
<a href="jwt/" class="md-footer__link md-footer__link--next" rel="next">
|
||||
|
||||
<a href="jwt.html" class="md-footer__link md-footer__link--next" aria-label="Next: JWT" rel="next">
|
||||
<div class="md-footer__title">
|
||||
<div class="md-ellipsis">
|
||||
<span class="md-footer__direction">
|
||||
@@ -910,10 +912,10 @@
|
||||
<div class="md-dialog" data-md-component="dialog">
|
||||
<div class="md-dialog__inner md-typeset"></div>
|
||||
</div>
|
||||
<script id="__config" type="application/json">{"base": "../..", "features": [], "translations": {"clipboard.copy": "Copy to clipboard", "clipboard.copied": "Copied to clipboard", "search.config.lang": "en", "search.config.pipeline": "trimmer, stopWordFilter", "search.config.separator": "[\\s\\-]+", "search.placeholder": "Search", "search.result.placeholder": "Type to start searching", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.term.missing": "Missing"}, "search": "../../assets/javascripts/workers/search.d351de03.min.js", "version": null}</script>
|
||||
<script id="__config" type="application/json">{"base": "../..", "features": [], "translations": {"clipboard.copy": "Copy to clipboard", "clipboard.copied": "Copied to clipboard", "search.config.lang": "en", "search.config.pipeline": "trimmer, stopWordFilter", "search.config.separator": "[\\s\\-]+", "search.placeholder": "Search", "search.result.placeholder": "Type to start searching", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.term.missing": "Missing", "select.version.title": "Select version"}, "search": "../../assets/javascripts/workers/search.b0710199.min.js", "version": null}</script>
|
||||
|
||||
|
||||
<script src="../../assets/javascripts/bundle.a1609d9a.min.js"></script>
|
||||
<script src="../../assets/javascripts/bundle.76f349be.min.js"></script>
|
||||
|
||||
|
||||
</body>
|
||||
|
||||
@@ -11,8 +11,8 @@
|
||||
|
||||
|
||||
|
||||
<link rel="icon" href="../../../favicon.png">
|
||||
<meta name="generator" content="mkdocs-1.1.2, mkdocs-material-7.1.5">
|
||||
<link rel="icon" href="../../favicon.png">
|
||||
<meta name="generator" content="mkdocs-1.2, mkdocs-material-7.1.7">
|
||||
|
||||
|
||||
|
||||
@@ -20,10 +20,10 @@
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../../../assets/stylesheets/main.bde7dde4.min.css">
|
||||
<link rel="stylesheet" href="../../assets/stylesheets/main.ca7ac06f.min.css">
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../../../assets/stylesheets/palette.ef6f36e2.min.css">
|
||||
<link rel="stylesheet" href="../../assets/stylesheets/palette.f1a3b89f.min.css">
|
||||
|
||||
|
||||
|
||||
@@ -55,7 +55,7 @@
|
||||
<body dir="ltr" data-md-color-scheme="default" data-md-color-primary="red" data-md-color-accent="red">
|
||||
|
||||
|
||||
<script>function __prefix(e){return new URL("../../..",location).pathname+"."+e}function __get(e,t=localStorage){return JSON.parse(t.getItem(__prefix(e)))}</script>
|
||||
<script>function __prefix(e){return new URL("../..",location).pathname+"."+e}function __get(e,t=localStorage){return JSON.parse(t.getItem(__prefix(e)))}</script>
|
||||
|
||||
<script>var palette=__get("__palette");if(null!==palette&&"object"==typeof palette.color)for(var key in palette.color)document.body.setAttribute("data-md-color-"+key,palette.color[key])</script>
|
||||
|
||||
@@ -76,7 +76,7 @@
|
||||
|
||||
<header class="md-header" data-md-component="header">
|
||||
<nav class="md-header__inner md-grid" aria-label="Header">
|
||||
<a href="../../.." title="FastAPI Users" class="md-header__button md-logo" aria-label="FastAPI Users" data-md-component="logo">
|
||||
<a href="../../index.html" title="FastAPI Users" class="md-header__button md-logo" aria-label="FastAPI Users" data-md-component="logo">
|
||||
|
||||
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M16.5 12A2.5 2.5 0 0 0 19 9.5 2.5 2.5 0 0 0 16.5 7 2.5 2.5 0 0 0 14 9.5a2.5 2.5 0 0 0 2.5 2.5M9 11a3 3 0 0 0 3-3 3 3 0 0 0-3-3 3 3 0 0 0-3 3 3 3 0 0 0 3 3m7.5 3c-1.83 0-5.5.92-5.5 2.75V19h11v-2.25c0-1.83-3.67-2.75-5.5-2.75M9 13c-2.33 0-7 1.17-7 3.5V19h7v-2.25c0-.85.33-2.34 2.37-3.47C10.5 13.1 9.66 13 9 13z"/></svg>
|
||||
@@ -106,7 +106,7 @@
|
||||
|
||||
|
||||
|
||||
<input class="md-option" data-md-color-media="" data-md-color-scheme="default" data-md-color-primary="red" data-md-color-accent="red" type="radio" name="__palette" id="__palette_1">
|
||||
<input class="md-option" data-md-color-media="" data-md-color-scheme="default" data-md-color-primary="red" data-md-color-accent="red" aria-label="Switch to dark mode" type="radio" name="__palette" id="__palette_1">
|
||||
|
||||
<label class="md-header__button md-icon" title="Switch to dark mode" for="__palette_2" hidden>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2a7 7 0 0 0-7 7c0 2.38 1.19 4.47 3 5.74V17a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1v-2.26c1.81-1.27 3-3.36 3-5.74a7 7 0 0 0-7-7M9 21a1 1 0 0 0 1 1h4a1 1 0 0 0 1-1v-1H9v1z"/></svg>
|
||||
@@ -115,7 +115,7 @@
|
||||
|
||||
|
||||
|
||||
<input class="md-option" data-md-color-media="" data-md-color-scheme="slate" data-md-color-primary="red" data-md-color-accent="red" type="radio" name="__palette" id="__palette_2">
|
||||
<input class="md-option" data-md-color-media="" data-md-color-scheme="slate" data-md-color-primary="red" data-md-color-accent="red" aria-label="Switch to light mode" type="radio" name="__palette" id="__palette_2">
|
||||
|
||||
<label class="md-header__button md-icon" title="Switch to light mode" for="__palette_1" hidden>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2a7 7 0 0 1 7 7c0 2.38-1.19 4.47-3 5.74V17a1 1 0 0 1-1 1H9a1 1 0 0 1-1-1v-2.26C6.19 13.47 5 11.38 5 9a7 7 0 0 1 7-7M9 21v-1h6v1a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-1m3-17a5 5 0 0 0-5 5c0 2.05 1.23 3.81 3 4.58V16h4v-2.42c1.77-.77 3-2.53 3-4.58a5 5 0 0 0-5-5z"/></svg>
|
||||
@@ -191,7 +191,7 @@
|
||||
|
||||
<nav class="md-nav md-nav--primary" aria-label="Navigation" data-md-level="0">
|
||||
<label class="md-nav__title" for="__drawer">
|
||||
<a href="../../.." title="FastAPI Users" class="md-nav__button md-logo" aria-label="FastAPI Users" data-md-component="logo">
|
||||
<a href="../../index.html" title="FastAPI Users" class="md-nav__button md-logo" aria-label="FastAPI Users" data-md-component="logo">
|
||||
|
||||
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M16.5 12A2.5 2.5 0 0 0 19 9.5 2.5 2.5 0 0 0 16.5 7 2.5 2.5 0 0 0 14 9.5a2.5 2.5 0 0 0 2.5 2.5M9 11a3 3 0 0 0 3-3 3 3 0 0 0-3-3 3 3 0 0 0-3 3 3 3 0 0 0 3 3m7.5 3c-1.83 0-5.5.92-5.5 2.75V19h11v-2.25c0-1.83-3.67-2.75-5.5-2.75M9 13c-2.33 0-7 1.17-7 3.5V19h7v-2.25c0-.85.33-2.34 2.37-3.47C10.5 13.1 9.66 13 9 13z"/></svg>
|
||||
@@ -223,7 +223,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../.." class="md-nav__link">
|
||||
<a href="../../index.html" class="md-nav__link">
|
||||
About
|
||||
</a>
|
||||
</li>
|
||||
@@ -238,7 +238,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../../installation/" class="md-nav__link">
|
||||
<a href="../../installation.html" class="md-nav__link">
|
||||
Installation
|
||||
</a>
|
||||
</li>
|
||||
@@ -276,7 +276,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../model/" class="md-nav__link">
|
||||
<a href="../model.html" class="md-nav__link">
|
||||
User model
|
||||
</a>
|
||||
</li>
|
||||
@@ -309,7 +309,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../databases/sqlalchemy/" class="md-nav__link">
|
||||
<a href="../databases/sqlalchemy.html" class="md-nav__link">
|
||||
SQLAlchemy
|
||||
</a>
|
||||
</li>
|
||||
@@ -321,7 +321,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../databases/mongodb/" class="md-nav__link">
|
||||
<a href="../databases/mongodb.html" class="md-nav__link">
|
||||
MongoDB
|
||||
</a>
|
||||
</li>
|
||||
@@ -333,7 +333,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../databases/tortoise/" class="md-nav__link">
|
||||
<a href="../databases/tortoise.html" class="md-nav__link">
|
||||
Tortoise ORM
|
||||
</a>
|
||||
</li>
|
||||
@@ -345,7 +345,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../databases/ormar/" class="md-nav__link">
|
||||
<a href="../databases/ormar.html" class="md-nav__link">
|
||||
Ormar
|
||||
</a>
|
||||
</li>
|
||||
@@ -386,7 +386,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../" class="md-nav__link">
|
||||
<a href="index.html" class="md-nav__link">
|
||||
Introduction
|
||||
</a>
|
||||
</li>
|
||||
@@ -412,7 +412,7 @@
|
||||
<span class="md-nav__icon md-icon"></span>
|
||||
</label>
|
||||
|
||||
<a href="./" class="md-nav__link md-nav__link--active">
|
||||
<a href="jwt.html" class="md-nav__link md-nav__link--active">
|
||||
JWT
|
||||
</a>
|
||||
|
||||
@@ -485,7 +485,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../cookie/" class="md-nav__link">
|
||||
<a href="cookie.html" class="md-nav__link">
|
||||
Cookie
|
||||
</a>
|
||||
</li>
|
||||
@@ -524,7 +524,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../routers/" class="md-nav__link">
|
||||
<a href="../routers/index.html" class="md-nav__link">
|
||||
Introduction
|
||||
</a>
|
||||
</li>
|
||||
@@ -536,7 +536,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../routers/auth/" class="md-nav__link">
|
||||
<a href="../routers/auth.html" class="md-nav__link">
|
||||
Auth router
|
||||
</a>
|
||||
</li>
|
||||
@@ -548,7 +548,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../routers/register/" class="md-nav__link">
|
||||
<a href="../routers/register.html" class="md-nav__link">
|
||||
Register routes
|
||||
</a>
|
||||
</li>
|
||||
@@ -560,7 +560,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../routers/reset/" class="md-nav__link">
|
||||
<a href="../routers/reset.html" class="md-nav__link">
|
||||
Reset password router
|
||||
</a>
|
||||
</li>
|
||||
@@ -572,7 +572,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../routers/users/" class="md-nav__link">
|
||||
<a href="../routers/users.html" class="md-nav__link">
|
||||
Users router
|
||||
</a>
|
||||
</li>
|
||||
@@ -584,7 +584,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../routers/verify/" class="md-nav__link">
|
||||
<a href="../routers/verify.html" class="md-nav__link">
|
||||
Verify router
|
||||
</a>
|
||||
</li>
|
||||
@@ -602,7 +602,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../password-validation/" class="md-nav__link">
|
||||
<a href="../password-validation.html" class="md-nav__link">
|
||||
Password validation
|
||||
</a>
|
||||
</li>
|
||||
@@ -614,7 +614,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../full-example/" class="md-nav__link">
|
||||
<a href="../full-example.html" class="md-nav__link">
|
||||
Full example
|
||||
</a>
|
||||
</li>
|
||||
@@ -626,7 +626,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../oauth/" class="md-nav__link">
|
||||
<a href="../oauth.html" class="md-nav__link">
|
||||
OAuth2
|
||||
</a>
|
||||
</li>
|
||||
@@ -668,7 +668,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../../usage/flow/" class="md-nav__link">
|
||||
<a href="../../usage/flow.html" class="md-nav__link">
|
||||
Flow
|
||||
</a>
|
||||
</li>
|
||||
@@ -680,7 +680,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../../usage/routes/" class="md-nav__link">
|
||||
<a href="../../usage/routes.html" class="md-nav__link">
|
||||
Routes
|
||||
</a>
|
||||
</li>
|
||||
@@ -692,7 +692,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../../usage/dependency-callables/" class="md-nav__link">
|
||||
<a href="../../usage/dependency-callables.html" class="md-nav__link">
|
||||
Dependency callables
|
||||
</a>
|
||||
</li>
|
||||
@@ -704,7 +704,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../../usage/helpers/" class="md-nav__link">
|
||||
<a href="../../usage/helpers.html" class="md-nav__link">
|
||||
Helpers
|
||||
</a>
|
||||
</li>
|
||||
@@ -746,7 +746,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../../migration/08_to_1x/" class="md-nav__link">
|
||||
<a href="../../migration/08_to_1x.html" class="md-nav__link">
|
||||
0.8.x ➡️ 1.x.x
|
||||
</a>
|
||||
</li>
|
||||
@@ -758,7 +758,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../../migration/1x_to_2x/" class="md-nav__link">
|
||||
<a href="../../migration/1x_to_2x.html" class="md-nav__link">
|
||||
1.x.x ➡️ 2.x.x
|
||||
</a>
|
||||
</li>
|
||||
@@ -770,7 +770,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../../migration/2x_to_3x/" class="md-nav__link">
|
||||
<a href="../../migration/2x_to_3x.html" class="md-nav__link">
|
||||
2.x.x ➡️ 3.x.x
|
||||
</a>
|
||||
</li>
|
||||
@@ -782,7 +782,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../../migration/3x_to_4x/" class="md-nav__link">
|
||||
<a href="../../migration/3x_to_4x.html" class="md-nav__link">
|
||||
3.x.x ➡️ 4.x.x
|
||||
</a>
|
||||
</li>
|
||||
@@ -794,7 +794,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../../migration/4x_to_5x/" class="md-nav__link">
|
||||
<a href="../../migration/4x_to_5x.html" class="md-nav__link">
|
||||
4.x.x ➡️ 5.x.x
|
||||
</a>
|
||||
</li>
|
||||
@@ -924,7 +924,7 @@
|
||||
</code></pre></div>
|
||||
</div>
|
||||
<blockquote>
|
||||
<p>Check documentation about <a href="../../../usage/routes/#post-loginname">login route</a>.</p>
|
||||
<p>Check documentation about <a href="../../usage/routes.html#post-loginname">login route</a>.</p>
|
||||
</blockquote>
|
||||
<h2 id="logout">Logout<a class="headerlink" href="#logout" title="Permanent link">¶</a></h2>
|
||||
<p>This backend does not provide a logout method (a JWT is valid until it expires).</p>
|
||||
@@ -942,7 +942,7 @@
|
||||
<span class="k">return</span> <span class="k">await</span> <span class="n">jwt_authentication</span><span class="o">.</span><span class="n">get_login_response</span><span class="p">(</span><span class="n">user</span><span class="p">,</span> <span class="n">response</span><span class="p">)</span>
|
||||
</code></pre></div>
|
||||
<h2 id="next-steps">Next steps<a class="headerlink" href="#next-steps" title="Permanent link">¶</a></h2>
|
||||
<p>We will now configure the main <strong>FastAPI Users</strong> object that will expose the <a href="../../routers/">routers</a>.</p>
|
||||
<p>We will now configure the main <strong>FastAPI Users</strong> object that will expose the <a href="../routers/index.html">routers</a>.</p>
|
||||
|
||||
|
||||
|
||||
@@ -961,7 +961,8 @@
|
||||
|
||||
<nav class="md-footer__inner md-grid" aria-label="Footer">
|
||||
|
||||
<a href="../" class="md-footer__link md-footer__link--prev" rel="prev">
|
||||
|
||||
<a href="index.html" class="md-footer__link md-footer__link--prev" aria-label="Previous: Introduction" rel="prev">
|
||||
<div class="md-footer__button md-icon">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
|
||||
</div>
|
||||
@@ -976,7 +977,8 @@
|
||||
</a>
|
||||
|
||||
|
||||
<a href="../cookie/" class="md-footer__link md-footer__link--next" rel="next">
|
||||
|
||||
<a href="cookie.html" class="md-footer__link md-footer__link--next" aria-label="Next: Cookie" rel="next">
|
||||
<div class="md-footer__title">
|
||||
<div class="md-ellipsis">
|
||||
<span class="md-footer__direction">
|
||||
@@ -1011,10 +1013,10 @@
|
||||
<div class="md-dialog" data-md-component="dialog">
|
||||
<div class="md-dialog__inner md-typeset"></div>
|
||||
</div>
|
||||
<script id="__config" type="application/json">{"base": "../../..", "features": [], "translations": {"clipboard.copy": "Copy to clipboard", "clipboard.copied": "Copied to clipboard", "search.config.lang": "en", "search.config.pipeline": "trimmer, stopWordFilter", "search.config.separator": "[\\s\\-]+", "search.placeholder": "Search", "search.result.placeholder": "Type to start searching", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.term.missing": "Missing"}, "search": "../../../assets/javascripts/workers/search.d351de03.min.js", "version": null}</script>
|
||||
<script id="__config" type="application/json">{"base": "../..", "features": [], "translations": {"clipboard.copy": "Copy to clipboard", "clipboard.copied": "Copied to clipboard", "search.config.lang": "en", "search.config.pipeline": "trimmer, stopWordFilter", "search.config.separator": "[\\s\\-]+", "search.placeholder": "Search", "search.result.placeholder": "Type to start searching", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.term.missing": "Missing", "select.version.title": "Select version"}, "search": "../../assets/javascripts/workers/search.b0710199.min.js", "version": null}</script>
|
||||
|
||||
|
||||
<script src="../../../assets/javascripts/bundle.a1609d9a.min.js"></script>
|
||||
<script src="../../assets/javascripts/bundle.76f349be.min.js"></script>
|
||||
|
||||
|
||||
</body>
|
||||
@@ -11,8 +11,8 @@
|
||||
|
||||
|
||||
|
||||
<link rel="icon" href="../../../favicon.png">
|
||||
<meta name="generator" content="mkdocs-1.1.2, mkdocs-material-7.1.5">
|
||||
<link rel="icon" href="../../favicon.png">
|
||||
<meta name="generator" content="mkdocs-1.2, mkdocs-material-7.1.7">
|
||||
|
||||
|
||||
|
||||
@@ -20,10 +20,10 @@
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../../../assets/stylesheets/main.bde7dde4.min.css">
|
||||
<link rel="stylesheet" href="../../assets/stylesheets/main.ca7ac06f.min.css">
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../../../assets/stylesheets/palette.ef6f36e2.min.css">
|
||||
<link rel="stylesheet" href="../../assets/stylesheets/palette.f1a3b89f.min.css">
|
||||
|
||||
|
||||
|
||||
@@ -55,7 +55,7 @@
|
||||
<body dir="ltr" data-md-color-scheme="default" data-md-color-primary="red" data-md-color-accent="red">
|
||||
|
||||
|
||||
<script>function __prefix(e){return new URL("../../..",location).pathname+"."+e}function __get(e,t=localStorage){return JSON.parse(t.getItem(__prefix(e)))}</script>
|
||||
<script>function __prefix(e){return new URL("../..",location).pathname+"."+e}function __get(e,t=localStorage){return JSON.parse(t.getItem(__prefix(e)))}</script>
|
||||
|
||||
<script>var palette=__get("__palette");if(null!==palette&&"object"==typeof palette.color)for(var key in palette.color)document.body.setAttribute("data-md-color-"+key,palette.color[key])</script>
|
||||
|
||||
@@ -76,7 +76,7 @@
|
||||
|
||||
<header class="md-header" data-md-component="header">
|
||||
<nav class="md-header__inner md-grid" aria-label="Header">
|
||||
<a href="../../.." title="FastAPI Users" class="md-header__button md-logo" aria-label="FastAPI Users" data-md-component="logo">
|
||||
<a href="../../index.html" title="FastAPI Users" class="md-header__button md-logo" aria-label="FastAPI Users" data-md-component="logo">
|
||||
|
||||
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M16.5 12A2.5 2.5 0 0 0 19 9.5 2.5 2.5 0 0 0 16.5 7 2.5 2.5 0 0 0 14 9.5a2.5 2.5 0 0 0 2.5 2.5M9 11a3 3 0 0 0 3-3 3 3 0 0 0-3-3 3 3 0 0 0-3 3 3 3 0 0 0 3 3m7.5 3c-1.83 0-5.5.92-5.5 2.75V19h11v-2.25c0-1.83-3.67-2.75-5.5-2.75M9 13c-2.33 0-7 1.17-7 3.5V19h7v-2.25c0-.85.33-2.34 2.37-3.47C10.5 13.1 9.66 13 9 13z"/></svg>
|
||||
@@ -106,7 +106,7 @@
|
||||
|
||||
|
||||
|
||||
<input class="md-option" data-md-color-media="" data-md-color-scheme="default" data-md-color-primary="red" data-md-color-accent="red" type="radio" name="__palette" id="__palette_1">
|
||||
<input class="md-option" data-md-color-media="" data-md-color-scheme="default" data-md-color-primary="red" data-md-color-accent="red" aria-label="Switch to dark mode" type="radio" name="__palette" id="__palette_1">
|
||||
|
||||
<label class="md-header__button md-icon" title="Switch to dark mode" for="__palette_2" hidden>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2a7 7 0 0 0-7 7c0 2.38 1.19 4.47 3 5.74V17a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1v-2.26c1.81-1.27 3-3.36 3-5.74a7 7 0 0 0-7-7M9 21a1 1 0 0 0 1 1h4a1 1 0 0 0 1-1v-1H9v1z"/></svg>
|
||||
@@ -115,7 +115,7 @@
|
||||
|
||||
|
||||
|
||||
<input class="md-option" data-md-color-media="" data-md-color-scheme="slate" data-md-color-primary="red" data-md-color-accent="red" type="radio" name="__palette" id="__palette_2">
|
||||
<input class="md-option" data-md-color-media="" data-md-color-scheme="slate" data-md-color-primary="red" data-md-color-accent="red" aria-label="Switch to light mode" type="radio" name="__palette" id="__palette_2">
|
||||
|
||||
<label class="md-header__button md-icon" title="Switch to light mode" for="__palette_1" hidden>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2a7 7 0 0 1 7 7c0 2.38-1.19 4.47-3 5.74V17a1 1 0 0 1-1 1H9a1 1 0 0 1-1-1v-2.26C6.19 13.47 5 11.38 5 9a7 7 0 0 1 7-7M9 21v-1h6v1a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-1m3-17a5 5 0 0 0-5 5c0 2.05 1.23 3.81 3 4.58V16h4v-2.42c1.77-.77 3-2.53 3-4.58a5 5 0 0 0-5-5z"/></svg>
|
||||
@@ -191,7 +191,7 @@
|
||||
|
||||
<nav class="md-nav md-nav--primary" aria-label="Navigation" data-md-level="0">
|
||||
<label class="md-nav__title" for="__drawer">
|
||||
<a href="../../.." title="FastAPI Users" class="md-nav__button md-logo" aria-label="FastAPI Users" data-md-component="logo">
|
||||
<a href="../../index.html" title="FastAPI Users" class="md-nav__button md-logo" aria-label="FastAPI Users" data-md-component="logo">
|
||||
|
||||
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M16.5 12A2.5 2.5 0 0 0 19 9.5 2.5 2.5 0 0 0 16.5 7 2.5 2.5 0 0 0 14 9.5a2.5 2.5 0 0 0 2.5 2.5M9 11a3 3 0 0 0 3-3 3 3 0 0 0-3-3 3 3 0 0 0-3 3 3 3 0 0 0 3 3m7.5 3c-1.83 0-5.5.92-5.5 2.75V19h11v-2.25c0-1.83-3.67-2.75-5.5-2.75M9 13c-2.33 0-7 1.17-7 3.5V19h7v-2.25c0-.85.33-2.34 2.37-3.47C10.5 13.1 9.66 13 9 13z"/></svg>
|
||||
@@ -223,7 +223,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../.." class="md-nav__link">
|
||||
<a href="../../index.html" class="md-nav__link">
|
||||
About
|
||||
</a>
|
||||
</li>
|
||||
@@ -238,7 +238,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../../installation/" class="md-nav__link">
|
||||
<a href="../../installation.html" class="md-nav__link">
|
||||
Installation
|
||||
</a>
|
||||
</li>
|
||||
@@ -276,7 +276,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../model/" class="md-nav__link">
|
||||
<a href="../model.html" class="md-nav__link">
|
||||
User model
|
||||
</a>
|
||||
</li>
|
||||
@@ -311,7 +311,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../sqlalchemy/" class="md-nav__link">
|
||||
<a href="sqlalchemy.html" class="md-nav__link">
|
||||
SQLAlchemy
|
||||
</a>
|
||||
</li>
|
||||
@@ -337,7 +337,7 @@
|
||||
<span class="md-nav__icon md-icon"></span>
|
||||
</label>
|
||||
|
||||
<a href="./" class="md-nav__link md-nav__link--active">
|
||||
<a href="mongodb.html" class="md-nav__link md-nav__link--active">
|
||||
MongoDB
|
||||
</a>
|
||||
|
||||
@@ -389,7 +389,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../tortoise/" class="md-nav__link">
|
||||
<a href="tortoise.html" class="md-nav__link">
|
||||
Tortoise ORM
|
||||
</a>
|
||||
</li>
|
||||
@@ -401,7 +401,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../ormar/" class="md-nav__link">
|
||||
<a href="ormar.html" class="md-nav__link">
|
||||
Ormar
|
||||
</a>
|
||||
</li>
|
||||
@@ -440,7 +440,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../authentication/" class="md-nav__link">
|
||||
<a href="../authentication/index.html" class="md-nav__link">
|
||||
Introduction
|
||||
</a>
|
||||
</li>
|
||||
@@ -452,7 +452,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../authentication/jwt/" class="md-nav__link">
|
||||
<a href="../authentication/jwt.html" class="md-nav__link">
|
||||
JWT
|
||||
</a>
|
||||
</li>
|
||||
@@ -464,7 +464,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../authentication/cookie/" class="md-nav__link">
|
||||
<a href="../authentication/cookie.html" class="md-nav__link">
|
||||
Cookie
|
||||
</a>
|
||||
</li>
|
||||
@@ -503,7 +503,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../routers/" class="md-nav__link">
|
||||
<a href="../routers/index.html" class="md-nav__link">
|
||||
Introduction
|
||||
</a>
|
||||
</li>
|
||||
@@ -515,7 +515,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../routers/auth/" class="md-nav__link">
|
||||
<a href="../routers/auth.html" class="md-nav__link">
|
||||
Auth router
|
||||
</a>
|
||||
</li>
|
||||
@@ -527,7 +527,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../routers/register/" class="md-nav__link">
|
||||
<a href="../routers/register.html" class="md-nav__link">
|
||||
Register routes
|
||||
</a>
|
||||
</li>
|
||||
@@ -539,7 +539,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../routers/reset/" class="md-nav__link">
|
||||
<a href="../routers/reset.html" class="md-nav__link">
|
||||
Reset password router
|
||||
</a>
|
||||
</li>
|
||||
@@ -551,7 +551,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../routers/users/" class="md-nav__link">
|
||||
<a href="../routers/users.html" class="md-nav__link">
|
||||
Users router
|
||||
</a>
|
||||
</li>
|
||||
@@ -563,7 +563,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../routers/verify/" class="md-nav__link">
|
||||
<a href="../routers/verify.html" class="md-nav__link">
|
||||
Verify router
|
||||
</a>
|
||||
</li>
|
||||
@@ -581,7 +581,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../password-validation/" class="md-nav__link">
|
||||
<a href="../password-validation.html" class="md-nav__link">
|
||||
Password validation
|
||||
</a>
|
||||
</li>
|
||||
@@ -593,7 +593,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../full-example/" class="md-nav__link">
|
||||
<a href="../full-example.html" class="md-nav__link">
|
||||
Full example
|
||||
</a>
|
||||
</li>
|
||||
@@ -605,7 +605,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../oauth/" class="md-nav__link">
|
||||
<a href="../oauth.html" class="md-nav__link">
|
||||
OAuth2
|
||||
</a>
|
||||
</li>
|
||||
@@ -647,7 +647,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../../usage/flow/" class="md-nav__link">
|
||||
<a href="../../usage/flow.html" class="md-nav__link">
|
||||
Flow
|
||||
</a>
|
||||
</li>
|
||||
@@ -659,7 +659,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../../usage/routes/" class="md-nav__link">
|
||||
<a href="../../usage/routes.html" class="md-nav__link">
|
||||
Routes
|
||||
</a>
|
||||
</li>
|
||||
@@ -671,7 +671,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../../usage/dependency-callables/" class="md-nav__link">
|
||||
<a href="../../usage/dependency-callables.html" class="md-nav__link">
|
||||
Dependency callables
|
||||
</a>
|
||||
</li>
|
||||
@@ -683,7 +683,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../../usage/helpers/" class="md-nav__link">
|
||||
<a href="../../usage/helpers.html" class="md-nav__link">
|
||||
Helpers
|
||||
</a>
|
||||
</li>
|
||||
@@ -725,7 +725,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../../migration/08_to_1x/" class="md-nav__link">
|
||||
<a href="../../migration/08_to_1x.html" class="md-nav__link">
|
||||
0.8.x ➡️ 1.x.x
|
||||
</a>
|
||||
</li>
|
||||
@@ -737,7 +737,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../../migration/1x_to_2x/" class="md-nav__link">
|
||||
<a href="../../migration/1x_to_2x.html" class="md-nav__link">
|
||||
1.x.x ➡️ 2.x.x
|
||||
</a>
|
||||
</li>
|
||||
@@ -749,7 +749,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../../migration/2x_to_3x/" class="md-nav__link">
|
||||
<a href="../../migration/2x_to_3x.html" class="md-nav__link">
|
||||
2.x.x ➡️ 3.x.x
|
||||
</a>
|
||||
</li>
|
||||
@@ -761,7 +761,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../../migration/3x_to_4x/" class="md-nav__link">
|
||||
<a href="../../migration/3x_to_4x.html" class="md-nav__link">
|
||||
3.x.x ➡️ 4.x.x
|
||||
</a>
|
||||
</li>
|
||||
@@ -773,7 +773,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../../migration/4x_to_5x/" class="md-nav__link">
|
||||
<a href="../../migration/4x_to_5x.html" class="md-nav__link">
|
||||
4.x.x ➡️ 5.x.x
|
||||
</a>
|
||||
</li>
|
||||
@@ -926,17 +926,17 @@
|
||||
|
||||
<span class="hll"><span class="n">user_db</span> <span class="o">=</span> <span class="n">MongoDBUserDatabase</span><span class="p">(</span><span class="n">UserDB</span><span class="p">,</span> <span class="n">collection</span><span class="p">)</span>
|
||||
</span></code></pre></div>
|
||||
<p>Notice that we pass a reference to your <a href="../../model/"><code>UserDB</code> model</a>.</p>
|
||||
<p>Notice that we pass a reference to your <a href="../model.html"><code>UserDB</code> model</a>.</p>
|
||||
<div class="admonition info">
|
||||
<p class="admonition-title">Info</p>
|
||||
<p>The database adapter will automatically create a <a href="https://docs.mongodb.com/manual/core/index-unique/">unique index</a> on <code>id</code> and <code>email</code>.</p>
|
||||
</div>
|
||||
<div class="admonition warning">
|
||||
<p class="admonition-title">Warning</p>
|
||||
<p><strong>FastAPI Users</strong> will use its defined <a href="../../model/"><code>id</code> UUID</a> as unique identifier for the user, rather than the builtin MongoDB <code>_id</code>.</p>
|
||||
<p><strong>FastAPI Users</strong> will use its defined <a href="../model.html"><code>id</code> UUID</a> as unique identifier for the user, rather than the builtin MongoDB <code>_id</code>.</p>
|
||||
</div>
|
||||
<h2 id="next-steps">Next steps<a class="headerlink" href="#next-steps" title="Permanent link">¶</a></h2>
|
||||
<p>We will now configure an <a href="../../authentication/">authentication method</a>.</p>
|
||||
<p>We will now configure an <a href="../authentication/index.html">authentication method</a>.</p>
|
||||
|
||||
|
||||
|
||||
@@ -955,7 +955,8 @@
|
||||
|
||||
<nav class="md-footer__inner md-grid" aria-label="Footer">
|
||||
|
||||
<a href="../sqlalchemy/" class="md-footer__link md-footer__link--prev" rel="prev">
|
||||
|
||||
<a href="sqlalchemy.html" class="md-footer__link md-footer__link--prev" aria-label="Previous: SQLAlchemy" rel="prev">
|
||||
<div class="md-footer__button md-icon">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
|
||||
</div>
|
||||
@@ -970,7 +971,8 @@
|
||||
</a>
|
||||
|
||||
|
||||
<a href="../tortoise/" class="md-footer__link md-footer__link--next" rel="next">
|
||||
|
||||
<a href="tortoise.html" class="md-footer__link md-footer__link--next" aria-label="Next: Tortoise ORM" rel="next">
|
||||
<div class="md-footer__title">
|
||||
<div class="md-ellipsis">
|
||||
<span class="md-footer__direction">
|
||||
@@ -1005,10 +1007,10 @@
|
||||
<div class="md-dialog" data-md-component="dialog">
|
||||
<div class="md-dialog__inner md-typeset"></div>
|
||||
</div>
|
||||
<script id="__config" type="application/json">{"base": "../../..", "features": [], "translations": {"clipboard.copy": "Copy to clipboard", "clipboard.copied": "Copied to clipboard", "search.config.lang": "en", "search.config.pipeline": "trimmer, stopWordFilter", "search.config.separator": "[\\s\\-]+", "search.placeholder": "Search", "search.result.placeholder": "Type to start searching", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.term.missing": "Missing"}, "search": "../../../assets/javascripts/workers/search.d351de03.min.js", "version": null}</script>
|
||||
<script id="__config" type="application/json">{"base": "../..", "features": [], "translations": {"clipboard.copy": "Copy to clipboard", "clipboard.copied": "Copied to clipboard", "search.config.lang": "en", "search.config.pipeline": "trimmer, stopWordFilter", "search.config.separator": "[\\s\\-]+", "search.placeholder": "Search", "search.result.placeholder": "Type to start searching", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.term.missing": "Missing", "select.version.title": "Select version"}, "search": "../../assets/javascripts/workers/search.b0710199.min.js", "version": null}</script>
|
||||
|
||||
|
||||
<script src="../../../assets/javascripts/bundle.a1609d9a.min.js"></script>
|
||||
<script src="../../assets/javascripts/bundle.76f349be.min.js"></script>
|
||||
|
||||
|
||||
</body>
|
||||
@@ -11,8 +11,8 @@
|
||||
|
||||
|
||||
|
||||
<link rel="icon" href="../../../favicon.png">
|
||||
<meta name="generator" content="mkdocs-1.1.2, mkdocs-material-7.1.5">
|
||||
<link rel="icon" href="../../favicon.png">
|
||||
<meta name="generator" content="mkdocs-1.2, mkdocs-material-7.1.7">
|
||||
|
||||
|
||||
|
||||
@@ -20,10 +20,10 @@
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../../../assets/stylesheets/main.bde7dde4.min.css">
|
||||
<link rel="stylesheet" href="../../assets/stylesheets/main.ca7ac06f.min.css">
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../../../assets/stylesheets/palette.ef6f36e2.min.css">
|
||||
<link rel="stylesheet" href="../../assets/stylesheets/palette.f1a3b89f.min.css">
|
||||
|
||||
|
||||
|
||||
@@ -55,7 +55,7 @@
|
||||
<body dir="ltr" data-md-color-scheme="default" data-md-color-primary="red" data-md-color-accent="red">
|
||||
|
||||
|
||||
<script>function __prefix(e){return new URL("../../..",location).pathname+"."+e}function __get(e,t=localStorage){return JSON.parse(t.getItem(__prefix(e)))}</script>
|
||||
<script>function __prefix(e){return new URL("../..",location).pathname+"."+e}function __get(e,t=localStorage){return JSON.parse(t.getItem(__prefix(e)))}</script>
|
||||
|
||||
<script>var palette=__get("__palette");if(null!==palette&&"object"==typeof palette.color)for(var key in palette.color)document.body.setAttribute("data-md-color-"+key,palette.color[key])</script>
|
||||
|
||||
@@ -76,7 +76,7 @@
|
||||
|
||||
<header class="md-header" data-md-component="header">
|
||||
<nav class="md-header__inner md-grid" aria-label="Header">
|
||||
<a href="../../.." title="FastAPI Users" class="md-header__button md-logo" aria-label="FastAPI Users" data-md-component="logo">
|
||||
<a href="../../index.html" title="FastAPI Users" class="md-header__button md-logo" aria-label="FastAPI Users" data-md-component="logo">
|
||||
|
||||
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M16.5 12A2.5 2.5 0 0 0 19 9.5 2.5 2.5 0 0 0 16.5 7 2.5 2.5 0 0 0 14 9.5a2.5 2.5 0 0 0 2.5 2.5M9 11a3 3 0 0 0 3-3 3 3 0 0 0-3-3 3 3 0 0 0-3 3 3 3 0 0 0 3 3m7.5 3c-1.83 0-5.5.92-5.5 2.75V19h11v-2.25c0-1.83-3.67-2.75-5.5-2.75M9 13c-2.33 0-7 1.17-7 3.5V19h7v-2.25c0-.85.33-2.34 2.37-3.47C10.5 13.1 9.66 13 9 13z"/></svg>
|
||||
@@ -106,7 +106,7 @@
|
||||
|
||||
|
||||
|
||||
<input class="md-option" data-md-color-media="" data-md-color-scheme="default" data-md-color-primary="red" data-md-color-accent="red" type="radio" name="__palette" id="__palette_1">
|
||||
<input class="md-option" data-md-color-media="" data-md-color-scheme="default" data-md-color-primary="red" data-md-color-accent="red" aria-label="Switch to dark mode" type="radio" name="__palette" id="__palette_1">
|
||||
|
||||
<label class="md-header__button md-icon" title="Switch to dark mode" for="__palette_2" hidden>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2a7 7 0 0 0-7 7c0 2.38 1.19 4.47 3 5.74V17a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1v-2.26c1.81-1.27 3-3.36 3-5.74a7 7 0 0 0-7-7M9 21a1 1 0 0 0 1 1h4a1 1 0 0 0 1-1v-1H9v1z"/></svg>
|
||||
@@ -115,7 +115,7 @@
|
||||
|
||||
|
||||
|
||||
<input class="md-option" data-md-color-media="" data-md-color-scheme="slate" data-md-color-primary="red" data-md-color-accent="red" type="radio" name="__palette" id="__palette_2">
|
||||
<input class="md-option" data-md-color-media="" data-md-color-scheme="slate" data-md-color-primary="red" data-md-color-accent="red" aria-label="Switch to light mode" type="radio" name="__palette" id="__palette_2">
|
||||
|
||||
<label class="md-header__button md-icon" title="Switch to light mode" for="__palette_1" hidden>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2a7 7 0 0 1 7 7c0 2.38-1.19 4.47-3 5.74V17a1 1 0 0 1-1 1H9a1 1 0 0 1-1-1v-2.26C6.19 13.47 5 11.38 5 9a7 7 0 0 1 7-7M9 21v-1h6v1a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-1m3-17a5 5 0 0 0-5 5c0 2.05 1.23 3.81 3 4.58V16h4v-2.42c1.77-.77 3-2.53 3-4.58a5 5 0 0 0-5-5z"/></svg>
|
||||
@@ -191,7 +191,7 @@
|
||||
|
||||
<nav class="md-nav md-nav--primary" aria-label="Navigation" data-md-level="0">
|
||||
<label class="md-nav__title" for="__drawer">
|
||||
<a href="../../.." title="FastAPI Users" class="md-nav__button md-logo" aria-label="FastAPI Users" data-md-component="logo">
|
||||
<a href="../../index.html" title="FastAPI Users" class="md-nav__button md-logo" aria-label="FastAPI Users" data-md-component="logo">
|
||||
|
||||
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M16.5 12A2.5 2.5 0 0 0 19 9.5 2.5 2.5 0 0 0 16.5 7 2.5 2.5 0 0 0 14 9.5a2.5 2.5 0 0 0 2.5 2.5M9 11a3 3 0 0 0 3-3 3 3 0 0 0-3-3 3 3 0 0 0-3 3 3 3 0 0 0 3 3m7.5 3c-1.83 0-5.5.92-5.5 2.75V19h11v-2.25c0-1.83-3.67-2.75-5.5-2.75M9 13c-2.33 0-7 1.17-7 3.5V19h7v-2.25c0-.85.33-2.34 2.37-3.47C10.5 13.1 9.66 13 9 13z"/></svg>
|
||||
@@ -223,7 +223,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../.." class="md-nav__link">
|
||||
<a href="../../index.html" class="md-nav__link">
|
||||
About
|
||||
</a>
|
||||
</li>
|
||||
@@ -238,7 +238,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../../installation/" class="md-nav__link">
|
||||
<a href="../../installation.html" class="md-nav__link">
|
||||
Installation
|
||||
</a>
|
||||
</li>
|
||||
@@ -276,7 +276,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../model/" class="md-nav__link">
|
||||
<a href="../model.html" class="md-nav__link">
|
||||
User model
|
||||
</a>
|
||||
</li>
|
||||
@@ -311,7 +311,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../sqlalchemy/" class="md-nav__link">
|
||||
<a href="sqlalchemy.html" class="md-nav__link">
|
||||
SQLAlchemy
|
||||
</a>
|
||||
</li>
|
||||
@@ -323,7 +323,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../mongodb/" class="md-nav__link">
|
||||
<a href="mongodb.html" class="md-nav__link">
|
||||
MongoDB
|
||||
</a>
|
||||
</li>
|
||||
@@ -335,7 +335,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../tortoise/" class="md-nav__link">
|
||||
<a href="tortoise.html" class="md-nav__link">
|
||||
Tortoise ORM
|
||||
</a>
|
||||
</li>
|
||||
@@ -361,7 +361,7 @@
|
||||
<span class="md-nav__icon md-icon"></span>
|
||||
</label>
|
||||
|
||||
<a href="./" class="md-nav__link md-nav__link--active">
|
||||
<a href="ormar.html" class="md-nav__link md-nav__link--active">
|
||||
Ormar
|
||||
</a>
|
||||
|
||||
@@ -447,7 +447,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../authentication/" class="md-nav__link">
|
||||
<a href="../authentication/index.html" class="md-nav__link">
|
||||
Introduction
|
||||
</a>
|
||||
</li>
|
||||
@@ -459,7 +459,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../authentication/jwt/" class="md-nav__link">
|
||||
<a href="../authentication/jwt.html" class="md-nav__link">
|
||||
JWT
|
||||
</a>
|
||||
</li>
|
||||
@@ -471,7 +471,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../authentication/cookie/" class="md-nav__link">
|
||||
<a href="../authentication/cookie.html" class="md-nav__link">
|
||||
Cookie
|
||||
</a>
|
||||
</li>
|
||||
@@ -510,7 +510,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../routers/" class="md-nav__link">
|
||||
<a href="../routers/index.html" class="md-nav__link">
|
||||
Introduction
|
||||
</a>
|
||||
</li>
|
||||
@@ -522,7 +522,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../routers/auth/" class="md-nav__link">
|
||||
<a href="../routers/auth.html" class="md-nav__link">
|
||||
Auth router
|
||||
</a>
|
||||
</li>
|
||||
@@ -534,7 +534,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../routers/register/" class="md-nav__link">
|
||||
<a href="../routers/register.html" class="md-nav__link">
|
||||
Register routes
|
||||
</a>
|
||||
</li>
|
||||
@@ -546,7 +546,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../routers/reset/" class="md-nav__link">
|
||||
<a href="../routers/reset.html" class="md-nav__link">
|
||||
Reset password router
|
||||
</a>
|
||||
</li>
|
||||
@@ -558,7 +558,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../routers/users/" class="md-nav__link">
|
||||
<a href="../routers/users.html" class="md-nav__link">
|
||||
Users router
|
||||
</a>
|
||||
</li>
|
||||
@@ -570,7 +570,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../routers/verify/" class="md-nav__link">
|
||||
<a href="../routers/verify.html" class="md-nav__link">
|
||||
Verify router
|
||||
</a>
|
||||
</li>
|
||||
@@ -588,7 +588,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../password-validation/" class="md-nav__link">
|
||||
<a href="../password-validation.html" class="md-nav__link">
|
||||
Password validation
|
||||
</a>
|
||||
</li>
|
||||
@@ -600,7 +600,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../full-example/" class="md-nav__link">
|
||||
<a href="../full-example.html" class="md-nav__link">
|
||||
Full example
|
||||
</a>
|
||||
</li>
|
||||
@@ -612,7 +612,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../oauth/" class="md-nav__link">
|
||||
<a href="../oauth.html" class="md-nav__link">
|
||||
OAuth2
|
||||
</a>
|
||||
</li>
|
||||
@@ -654,7 +654,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../../usage/flow/" class="md-nav__link">
|
||||
<a href="../../usage/flow.html" class="md-nav__link">
|
||||
Flow
|
||||
</a>
|
||||
</li>
|
||||
@@ -666,7 +666,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../../usage/routes/" class="md-nav__link">
|
||||
<a href="../../usage/routes.html" class="md-nav__link">
|
||||
Routes
|
||||
</a>
|
||||
</li>
|
||||
@@ -678,7 +678,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../../usage/dependency-callables/" class="md-nav__link">
|
||||
<a href="../../usage/dependency-callables.html" class="md-nav__link">
|
||||
Dependency callables
|
||||
</a>
|
||||
</li>
|
||||
@@ -690,7 +690,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../../usage/helpers/" class="md-nav__link">
|
||||
<a href="../../usage/helpers.html" class="md-nav__link">
|
||||
Helpers
|
||||
</a>
|
||||
</li>
|
||||
@@ -732,7 +732,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../../migration/08_to_1x/" class="md-nav__link">
|
||||
<a href="../../migration/08_to_1x.html" class="md-nav__link">
|
||||
0.8.x ➡️ 1.x.x
|
||||
</a>
|
||||
</li>
|
||||
@@ -744,7 +744,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../../migration/1x_to_2x/" class="md-nav__link">
|
||||
<a href="../../migration/1x_to_2x.html" class="md-nav__link">
|
||||
1.x.x ➡️ 2.x.x
|
||||
</a>
|
||||
</li>
|
||||
@@ -756,7 +756,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../../migration/2x_to_3x/" class="md-nav__link">
|
||||
<a href="../../migration/2x_to_3x.html" class="md-nav__link">
|
||||
2.x.x ➡️ 3.x.x
|
||||
</a>
|
||||
</li>
|
||||
@@ -768,7 +768,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../../migration/3x_to_4x/" class="md-nav__link">
|
||||
<a href="../../migration/3x_to_4x.html" class="md-nav__link">
|
||||
3.x.x ➡️ 4.x.x
|
||||
</a>
|
||||
</li>
|
||||
@@ -780,7 +780,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../../migration/4x_to_5x/" class="md-nav__link">
|
||||
<a href="../../migration/4x_to_5x.html" class="md-nav__link">
|
||||
4.x.x ➡️ 5.x.x
|
||||
</a>
|
||||
</li>
|
||||
@@ -992,7 +992,7 @@ database configuration and the users logic. Create it like this.</p>
|
||||
<span class="k">if</span> <span class="n">database_</span><span class="o">.</span><span class="n">is_connected</span><span class="p">:</span>
|
||||
<span class="k">await</span> <span class="n">database_</span><span class="o">.</span><span class="n">disconnect</span><span class="p">()</span>
|
||||
</code></pre></div>
|
||||
<p>Notice that we pass a reference to your <a href="../../model/"><code>UserDB</code> model</a>.</p>
|
||||
<p>Notice that we pass a reference to your <a href="../model.html"><code>UserDB</code> model</a>.</p>
|
||||
<div class="admonition warning">
|
||||
<p class="admonition-title">Warning</p>
|
||||
<p>In production, it's strongly recommended to setup a migration system to
|
||||
@@ -1000,7 +1000,7 @@ update your SQL schemas. See
|
||||
<a href="https://alembic.sqlalchemy.org/en/latest/">Alembic</a>.</p>
|
||||
</div>
|
||||
<h2 id="next-steps">Next steps<a class="headerlink" href="#next-steps" title="Permanent link">¶</a></h2>
|
||||
<p>We will now configure an <a href="../../authentication/">authentication method</a>.</p>
|
||||
<p>We will now configure an <a href="../authentication/index.html">authentication method</a>.</p>
|
||||
|
||||
|
||||
|
||||
@@ -1019,7 +1019,8 @@ update your SQL schemas. See
|
||||
|
||||
<nav class="md-footer__inner md-grid" aria-label="Footer">
|
||||
|
||||
<a href="../tortoise/" class="md-footer__link md-footer__link--prev" rel="prev">
|
||||
|
||||
<a href="tortoise.html" class="md-footer__link md-footer__link--prev" aria-label="Previous: Tortoise ORM" rel="prev">
|
||||
<div class="md-footer__button md-icon">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
|
||||
</div>
|
||||
@@ -1034,7 +1035,8 @@ update your SQL schemas. See
|
||||
</a>
|
||||
|
||||
|
||||
<a href="../../authentication/" class="md-footer__link md-footer__link--next" rel="next">
|
||||
|
||||
<a href="../authentication/index.html" class="md-footer__link md-footer__link--next" aria-label="Next: Introduction" rel="next">
|
||||
<div class="md-footer__title">
|
||||
<div class="md-ellipsis">
|
||||
<span class="md-footer__direction">
|
||||
@@ -1069,10 +1071,10 @@ update your SQL schemas. See
|
||||
<div class="md-dialog" data-md-component="dialog">
|
||||
<div class="md-dialog__inner md-typeset"></div>
|
||||
</div>
|
||||
<script id="__config" type="application/json">{"base": "../../..", "features": [], "translations": {"clipboard.copy": "Copy to clipboard", "clipboard.copied": "Copied to clipboard", "search.config.lang": "en", "search.config.pipeline": "trimmer, stopWordFilter", "search.config.separator": "[\\s\\-]+", "search.placeholder": "Search", "search.result.placeholder": "Type to start searching", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.term.missing": "Missing"}, "search": "../../../assets/javascripts/workers/search.d351de03.min.js", "version": null}</script>
|
||||
<script id="__config" type="application/json">{"base": "../..", "features": [], "translations": {"clipboard.copy": "Copy to clipboard", "clipboard.copied": "Copied to clipboard", "search.config.lang": "en", "search.config.pipeline": "trimmer, stopWordFilter", "search.config.separator": "[\\s\\-]+", "search.placeholder": "Search", "search.result.placeholder": "Type to start searching", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.term.missing": "Missing", "select.version.title": "Select version"}, "search": "../../assets/javascripts/workers/search.b0710199.min.js", "version": null}</script>
|
||||
|
||||
|
||||
<script src="../../../assets/javascripts/bundle.a1609d9a.min.js"></script>
|
||||
<script src="../../assets/javascripts/bundle.76f349be.min.js"></script>
|
||||
|
||||
|
||||
</body>
|
||||
@@ -11,8 +11,8 @@
|
||||
|
||||
|
||||
|
||||
<link rel="icon" href="../../../favicon.png">
|
||||
<meta name="generator" content="mkdocs-1.1.2, mkdocs-material-7.1.5">
|
||||
<link rel="icon" href="../../favicon.png">
|
||||
<meta name="generator" content="mkdocs-1.2, mkdocs-material-7.1.7">
|
||||
|
||||
|
||||
|
||||
@@ -20,10 +20,10 @@
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../../../assets/stylesheets/main.bde7dde4.min.css">
|
||||
<link rel="stylesheet" href="../../assets/stylesheets/main.ca7ac06f.min.css">
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../../../assets/stylesheets/palette.ef6f36e2.min.css">
|
||||
<link rel="stylesheet" href="../../assets/stylesheets/palette.f1a3b89f.min.css">
|
||||
|
||||
|
||||
|
||||
@@ -55,7 +55,7 @@
|
||||
<body dir="ltr" data-md-color-scheme="default" data-md-color-primary="red" data-md-color-accent="red">
|
||||
|
||||
|
||||
<script>function __prefix(e){return new URL("../../..",location).pathname+"."+e}function __get(e,t=localStorage){return JSON.parse(t.getItem(__prefix(e)))}</script>
|
||||
<script>function __prefix(e){return new URL("../..",location).pathname+"."+e}function __get(e,t=localStorage){return JSON.parse(t.getItem(__prefix(e)))}</script>
|
||||
|
||||
<script>var palette=__get("__palette");if(null!==palette&&"object"==typeof palette.color)for(var key in palette.color)document.body.setAttribute("data-md-color-"+key,palette.color[key])</script>
|
||||
|
||||
@@ -76,7 +76,7 @@
|
||||
|
||||
<header class="md-header" data-md-component="header">
|
||||
<nav class="md-header__inner md-grid" aria-label="Header">
|
||||
<a href="../../.." title="FastAPI Users" class="md-header__button md-logo" aria-label="FastAPI Users" data-md-component="logo">
|
||||
<a href="../../index.html" title="FastAPI Users" class="md-header__button md-logo" aria-label="FastAPI Users" data-md-component="logo">
|
||||
|
||||
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M16.5 12A2.5 2.5 0 0 0 19 9.5 2.5 2.5 0 0 0 16.5 7 2.5 2.5 0 0 0 14 9.5a2.5 2.5 0 0 0 2.5 2.5M9 11a3 3 0 0 0 3-3 3 3 0 0 0-3-3 3 3 0 0 0-3 3 3 3 0 0 0 3 3m7.5 3c-1.83 0-5.5.92-5.5 2.75V19h11v-2.25c0-1.83-3.67-2.75-5.5-2.75M9 13c-2.33 0-7 1.17-7 3.5V19h7v-2.25c0-.85.33-2.34 2.37-3.47C10.5 13.1 9.66 13 9 13z"/></svg>
|
||||
@@ -106,7 +106,7 @@
|
||||
|
||||
|
||||
|
||||
<input class="md-option" data-md-color-media="" data-md-color-scheme="default" data-md-color-primary="red" data-md-color-accent="red" type="radio" name="__palette" id="__palette_1">
|
||||
<input class="md-option" data-md-color-media="" data-md-color-scheme="default" data-md-color-primary="red" data-md-color-accent="red" aria-label="Switch to dark mode" type="radio" name="__palette" id="__palette_1">
|
||||
|
||||
<label class="md-header__button md-icon" title="Switch to dark mode" for="__palette_2" hidden>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2a7 7 0 0 0-7 7c0 2.38 1.19 4.47 3 5.74V17a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1v-2.26c1.81-1.27 3-3.36 3-5.74a7 7 0 0 0-7-7M9 21a1 1 0 0 0 1 1h4a1 1 0 0 0 1-1v-1H9v1z"/></svg>
|
||||
@@ -115,7 +115,7 @@
|
||||
|
||||
|
||||
|
||||
<input class="md-option" data-md-color-media="" data-md-color-scheme="slate" data-md-color-primary="red" data-md-color-accent="red" type="radio" name="__palette" id="__palette_2">
|
||||
<input class="md-option" data-md-color-media="" data-md-color-scheme="slate" data-md-color-primary="red" data-md-color-accent="red" aria-label="Switch to light mode" type="radio" name="__palette" id="__palette_2">
|
||||
|
||||
<label class="md-header__button md-icon" title="Switch to light mode" for="__palette_1" hidden>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2a7 7 0 0 1 7 7c0 2.38-1.19 4.47-3 5.74V17a1 1 0 0 1-1 1H9a1 1 0 0 1-1-1v-2.26C6.19 13.47 5 11.38 5 9a7 7 0 0 1 7-7M9 21v-1h6v1a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-1m3-17a5 5 0 0 0-5 5c0 2.05 1.23 3.81 3 4.58V16h4v-2.42c1.77-.77 3-2.53 3-4.58a5 5 0 0 0-5-5z"/></svg>
|
||||
@@ -191,7 +191,7 @@
|
||||
|
||||
<nav class="md-nav md-nav--primary" aria-label="Navigation" data-md-level="0">
|
||||
<label class="md-nav__title" for="__drawer">
|
||||
<a href="../../.." title="FastAPI Users" class="md-nav__button md-logo" aria-label="FastAPI Users" data-md-component="logo">
|
||||
<a href="../../index.html" title="FastAPI Users" class="md-nav__button md-logo" aria-label="FastAPI Users" data-md-component="logo">
|
||||
|
||||
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M16.5 12A2.5 2.5 0 0 0 19 9.5 2.5 2.5 0 0 0 16.5 7 2.5 2.5 0 0 0 14 9.5a2.5 2.5 0 0 0 2.5 2.5M9 11a3 3 0 0 0 3-3 3 3 0 0 0-3-3 3 3 0 0 0-3 3 3 3 0 0 0 3 3m7.5 3c-1.83 0-5.5.92-5.5 2.75V19h11v-2.25c0-1.83-3.67-2.75-5.5-2.75M9 13c-2.33 0-7 1.17-7 3.5V19h7v-2.25c0-.85.33-2.34 2.37-3.47C10.5 13.1 9.66 13 9 13z"/></svg>
|
||||
@@ -223,7 +223,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../.." class="md-nav__link">
|
||||
<a href="../../index.html" class="md-nav__link">
|
||||
About
|
||||
</a>
|
||||
</li>
|
||||
@@ -238,7 +238,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../../installation/" class="md-nav__link">
|
||||
<a href="../../installation.html" class="md-nav__link">
|
||||
Installation
|
||||
</a>
|
||||
</li>
|
||||
@@ -276,7 +276,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../model/" class="md-nav__link">
|
||||
<a href="../model.html" class="md-nav__link">
|
||||
User model
|
||||
</a>
|
||||
</li>
|
||||
@@ -325,7 +325,7 @@
|
||||
<span class="md-nav__icon md-icon"></span>
|
||||
</label>
|
||||
|
||||
<a href="./" class="md-nav__link md-nav__link--active">
|
||||
<a href="sqlalchemy.html" class="md-nav__link md-nav__link--active">
|
||||
SQLAlchemy
|
||||
</a>
|
||||
|
||||
@@ -398,7 +398,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../mongodb/" class="md-nav__link">
|
||||
<a href="mongodb.html" class="md-nav__link">
|
||||
MongoDB
|
||||
</a>
|
||||
</li>
|
||||
@@ -410,7 +410,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../tortoise/" class="md-nav__link">
|
||||
<a href="tortoise.html" class="md-nav__link">
|
||||
Tortoise ORM
|
||||
</a>
|
||||
</li>
|
||||
@@ -422,7 +422,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../ormar/" class="md-nav__link">
|
||||
<a href="ormar.html" class="md-nav__link">
|
||||
Ormar
|
||||
</a>
|
||||
</li>
|
||||
@@ -461,7 +461,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../authentication/" class="md-nav__link">
|
||||
<a href="../authentication/index.html" class="md-nav__link">
|
||||
Introduction
|
||||
</a>
|
||||
</li>
|
||||
@@ -473,7 +473,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../authentication/jwt/" class="md-nav__link">
|
||||
<a href="../authentication/jwt.html" class="md-nav__link">
|
||||
JWT
|
||||
</a>
|
||||
</li>
|
||||
@@ -485,7 +485,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../authentication/cookie/" class="md-nav__link">
|
||||
<a href="../authentication/cookie.html" class="md-nav__link">
|
||||
Cookie
|
||||
</a>
|
||||
</li>
|
||||
@@ -524,7 +524,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../routers/" class="md-nav__link">
|
||||
<a href="../routers/index.html" class="md-nav__link">
|
||||
Introduction
|
||||
</a>
|
||||
</li>
|
||||
@@ -536,7 +536,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../routers/auth/" class="md-nav__link">
|
||||
<a href="../routers/auth.html" class="md-nav__link">
|
||||
Auth router
|
||||
</a>
|
||||
</li>
|
||||
@@ -548,7 +548,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../routers/register/" class="md-nav__link">
|
||||
<a href="../routers/register.html" class="md-nav__link">
|
||||
Register routes
|
||||
</a>
|
||||
</li>
|
||||
@@ -560,7 +560,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../routers/reset/" class="md-nav__link">
|
||||
<a href="../routers/reset.html" class="md-nav__link">
|
||||
Reset password router
|
||||
</a>
|
||||
</li>
|
||||
@@ -572,7 +572,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../routers/users/" class="md-nav__link">
|
||||
<a href="../routers/users.html" class="md-nav__link">
|
||||
Users router
|
||||
</a>
|
||||
</li>
|
||||
@@ -584,7 +584,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../routers/verify/" class="md-nav__link">
|
||||
<a href="../routers/verify.html" class="md-nav__link">
|
||||
Verify router
|
||||
</a>
|
||||
</li>
|
||||
@@ -602,7 +602,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../password-validation/" class="md-nav__link">
|
||||
<a href="../password-validation.html" class="md-nav__link">
|
||||
Password validation
|
||||
</a>
|
||||
</li>
|
||||
@@ -614,7 +614,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../full-example/" class="md-nav__link">
|
||||
<a href="../full-example.html" class="md-nav__link">
|
||||
Full example
|
||||
</a>
|
||||
</li>
|
||||
@@ -626,7 +626,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../oauth/" class="md-nav__link">
|
||||
<a href="../oauth.html" class="md-nav__link">
|
||||
OAuth2
|
||||
</a>
|
||||
</li>
|
||||
@@ -668,7 +668,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../../usage/flow/" class="md-nav__link">
|
||||
<a href="../../usage/flow.html" class="md-nav__link">
|
||||
Flow
|
||||
</a>
|
||||
</li>
|
||||
@@ -680,7 +680,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../../usage/routes/" class="md-nav__link">
|
||||
<a href="../../usage/routes.html" class="md-nav__link">
|
||||
Routes
|
||||
</a>
|
||||
</li>
|
||||
@@ -692,7 +692,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../../usage/dependency-callables/" class="md-nav__link">
|
||||
<a href="../../usage/dependency-callables.html" class="md-nav__link">
|
||||
Dependency callables
|
||||
</a>
|
||||
</li>
|
||||
@@ -704,7 +704,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../../usage/helpers/" class="md-nav__link">
|
||||
<a href="../../usage/helpers.html" class="md-nav__link">
|
||||
Helpers
|
||||
</a>
|
||||
</li>
|
||||
@@ -746,7 +746,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../../migration/08_to_1x/" class="md-nav__link">
|
||||
<a href="../../migration/08_to_1x.html" class="md-nav__link">
|
||||
0.8.x ➡️ 1.x.x
|
||||
</a>
|
||||
</li>
|
||||
@@ -758,7 +758,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../../migration/1x_to_2x/" class="md-nav__link">
|
||||
<a href="../../migration/1x_to_2x.html" class="md-nav__link">
|
||||
1.x.x ➡️ 2.x.x
|
||||
</a>
|
||||
</li>
|
||||
@@ -770,7 +770,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../../migration/2x_to_3x/" class="md-nav__link">
|
||||
<a href="../../migration/2x_to_3x.html" class="md-nav__link">
|
||||
2.x.x ➡️ 3.x.x
|
||||
</a>
|
||||
</li>
|
||||
@@ -782,7 +782,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../../migration/3x_to_4x/" class="md-nav__link">
|
||||
<a href="../../migration/3x_to_4x.html" class="md-nav__link">
|
||||
3.x.x ➡️ 4.x.x
|
||||
</a>
|
||||
</li>
|
||||
@@ -794,7 +794,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../../migration/4x_to_5x/" class="md-nav__link">
|
||||
<a href="../../migration/4x_to_5x.html" class="md-nav__link">
|
||||
4.x.x ➡️ 5.x.x
|
||||
</a>
|
||||
</li>
|
||||
@@ -1079,12 +1079,12 @@
|
||||
</code></pre></div>
|
||||
<p>Notice that we pass it three things:</p>
|
||||
<ul>
|
||||
<li>A reference to your <a href="../../model/"><code>UserDB</code> model</a>.</li>
|
||||
<li>A reference to your <a href="../model.html"><code>UserDB</code> model</a>.</li>
|
||||
<li>The <code>users</code> variable, which is the actual SQLAlchemy table behind the table class.</li>
|
||||
<li>A <code>database</code> instance, which allows us to do asynchronous request to the database.</li>
|
||||
</ul>
|
||||
<h2 id="next-steps">Next steps<a class="headerlink" href="#next-steps" title="Permanent link">¶</a></h2>
|
||||
<p>We will now configure an <a href="../../authentication/">authentication method</a>.</p>
|
||||
<p>We will now configure an <a href="../authentication/index.html">authentication method</a>.</p>
|
||||
<h2 id="what-about-sqlalchemy-orm">What about SQLAlchemy ORM?<a class="headerlink" href="#what-about-sqlalchemy-orm" title="Permanent link">¶</a></h2>
|
||||
<p>The primary objective was to use pure async approach as much as possible. However, we understand that ORM is convenient and useful for many developers. If this feature becomes very demanded, we will add a database adapter for SQLAlchemy ORM.</p>
|
||||
|
||||
@@ -1105,7 +1105,8 @@
|
||||
|
||||
<nav class="md-footer__inner md-grid" aria-label="Footer">
|
||||
|
||||
<a href="../../model/" class="md-footer__link md-footer__link--prev" rel="prev">
|
||||
|
||||
<a href="../model.html" class="md-footer__link md-footer__link--prev" aria-label="Previous: User model" rel="prev">
|
||||
<div class="md-footer__button md-icon">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
|
||||
</div>
|
||||
@@ -1120,7 +1121,8 @@
|
||||
</a>
|
||||
|
||||
|
||||
<a href="../mongodb/" class="md-footer__link md-footer__link--next" rel="next">
|
||||
|
||||
<a href="mongodb.html" class="md-footer__link md-footer__link--next" aria-label="Next: MongoDB" rel="next">
|
||||
<div class="md-footer__title">
|
||||
<div class="md-ellipsis">
|
||||
<span class="md-footer__direction">
|
||||
@@ -1155,10 +1157,10 @@
|
||||
<div class="md-dialog" data-md-component="dialog">
|
||||
<div class="md-dialog__inner md-typeset"></div>
|
||||
</div>
|
||||
<script id="__config" type="application/json">{"base": "../../..", "features": [], "translations": {"clipboard.copy": "Copy to clipboard", "clipboard.copied": "Copied to clipboard", "search.config.lang": "en", "search.config.pipeline": "trimmer, stopWordFilter", "search.config.separator": "[\\s\\-]+", "search.placeholder": "Search", "search.result.placeholder": "Type to start searching", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.term.missing": "Missing"}, "search": "../../../assets/javascripts/workers/search.d351de03.min.js", "version": null}</script>
|
||||
<script id="__config" type="application/json">{"base": "../..", "features": [], "translations": {"clipboard.copy": "Copy to clipboard", "clipboard.copied": "Copied to clipboard", "search.config.lang": "en", "search.config.pipeline": "trimmer, stopWordFilter", "search.config.separator": "[\\s\\-]+", "search.placeholder": "Search", "search.result.placeholder": "Type to start searching", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.term.missing": "Missing", "select.version.title": "Select version"}, "search": "../../assets/javascripts/workers/search.b0710199.min.js", "version": null}</script>
|
||||
|
||||
|
||||
<script src="../../../assets/javascripts/bundle.a1609d9a.min.js"></script>
|
||||
<script src="../../assets/javascripts/bundle.76f349be.min.js"></script>
|
||||
|
||||
|
||||
</body>
|
||||
@@ -11,8 +11,8 @@
|
||||
|
||||
|
||||
|
||||
<link rel="icon" href="../../../favicon.png">
|
||||
<meta name="generator" content="mkdocs-1.1.2, mkdocs-material-7.1.5">
|
||||
<link rel="icon" href="../../favicon.png">
|
||||
<meta name="generator" content="mkdocs-1.2, mkdocs-material-7.1.7">
|
||||
|
||||
|
||||
|
||||
@@ -20,10 +20,10 @@
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../../../assets/stylesheets/main.bde7dde4.min.css">
|
||||
<link rel="stylesheet" href="../../assets/stylesheets/main.ca7ac06f.min.css">
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../../../assets/stylesheets/palette.ef6f36e2.min.css">
|
||||
<link rel="stylesheet" href="../../assets/stylesheets/palette.f1a3b89f.min.css">
|
||||
|
||||
|
||||
|
||||
@@ -55,7 +55,7 @@
|
||||
<body dir="ltr" data-md-color-scheme="default" data-md-color-primary="red" data-md-color-accent="red">
|
||||
|
||||
|
||||
<script>function __prefix(e){return new URL("../../..",location).pathname+"."+e}function __get(e,t=localStorage){return JSON.parse(t.getItem(__prefix(e)))}</script>
|
||||
<script>function __prefix(e){return new URL("../..",location).pathname+"."+e}function __get(e,t=localStorage){return JSON.parse(t.getItem(__prefix(e)))}</script>
|
||||
|
||||
<script>var palette=__get("__palette");if(null!==palette&&"object"==typeof palette.color)for(var key in palette.color)document.body.setAttribute("data-md-color-"+key,palette.color[key])</script>
|
||||
|
||||
@@ -76,7 +76,7 @@
|
||||
|
||||
<header class="md-header" data-md-component="header">
|
||||
<nav class="md-header__inner md-grid" aria-label="Header">
|
||||
<a href="../../.." title="FastAPI Users" class="md-header__button md-logo" aria-label="FastAPI Users" data-md-component="logo">
|
||||
<a href="../../index.html" title="FastAPI Users" class="md-header__button md-logo" aria-label="FastAPI Users" data-md-component="logo">
|
||||
|
||||
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M16.5 12A2.5 2.5 0 0 0 19 9.5 2.5 2.5 0 0 0 16.5 7 2.5 2.5 0 0 0 14 9.5a2.5 2.5 0 0 0 2.5 2.5M9 11a3 3 0 0 0 3-3 3 3 0 0 0-3-3 3 3 0 0 0-3 3 3 3 0 0 0 3 3m7.5 3c-1.83 0-5.5.92-5.5 2.75V19h11v-2.25c0-1.83-3.67-2.75-5.5-2.75M9 13c-2.33 0-7 1.17-7 3.5V19h7v-2.25c0-.85.33-2.34 2.37-3.47C10.5 13.1 9.66 13 9 13z"/></svg>
|
||||
@@ -106,7 +106,7 @@
|
||||
|
||||
|
||||
|
||||
<input class="md-option" data-md-color-media="" data-md-color-scheme="default" data-md-color-primary="red" data-md-color-accent="red" type="radio" name="__palette" id="__palette_1">
|
||||
<input class="md-option" data-md-color-media="" data-md-color-scheme="default" data-md-color-primary="red" data-md-color-accent="red" aria-label="Switch to dark mode" type="radio" name="__palette" id="__palette_1">
|
||||
|
||||
<label class="md-header__button md-icon" title="Switch to dark mode" for="__palette_2" hidden>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2a7 7 0 0 0-7 7c0 2.38 1.19 4.47 3 5.74V17a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1v-2.26c1.81-1.27 3-3.36 3-5.74a7 7 0 0 0-7-7M9 21a1 1 0 0 0 1 1h4a1 1 0 0 0 1-1v-1H9v1z"/></svg>
|
||||
@@ -115,7 +115,7 @@
|
||||
|
||||
|
||||
|
||||
<input class="md-option" data-md-color-media="" data-md-color-scheme="slate" data-md-color-primary="red" data-md-color-accent="red" type="radio" name="__palette" id="__palette_2">
|
||||
<input class="md-option" data-md-color-media="" data-md-color-scheme="slate" data-md-color-primary="red" data-md-color-accent="red" aria-label="Switch to light mode" type="radio" name="__palette" id="__palette_2">
|
||||
|
||||
<label class="md-header__button md-icon" title="Switch to light mode" for="__palette_1" hidden>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2a7 7 0 0 1 7 7c0 2.38-1.19 4.47-3 5.74V17a1 1 0 0 1-1 1H9a1 1 0 0 1-1-1v-2.26C6.19 13.47 5 11.38 5 9a7 7 0 0 1 7-7M9 21v-1h6v1a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-1m3-17a5 5 0 0 0-5 5c0 2.05 1.23 3.81 3 4.58V16h4v-2.42c1.77-.77 3-2.53 3-4.58a5 5 0 0 0-5-5z"/></svg>
|
||||
@@ -191,7 +191,7 @@
|
||||
|
||||
<nav class="md-nav md-nav--primary" aria-label="Navigation" data-md-level="0">
|
||||
<label class="md-nav__title" for="__drawer">
|
||||
<a href="../../.." title="FastAPI Users" class="md-nav__button md-logo" aria-label="FastAPI Users" data-md-component="logo">
|
||||
<a href="../../index.html" title="FastAPI Users" class="md-nav__button md-logo" aria-label="FastAPI Users" data-md-component="logo">
|
||||
|
||||
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M16.5 12A2.5 2.5 0 0 0 19 9.5 2.5 2.5 0 0 0 16.5 7 2.5 2.5 0 0 0 14 9.5a2.5 2.5 0 0 0 2.5 2.5M9 11a3 3 0 0 0 3-3 3 3 0 0 0-3-3 3 3 0 0 0-3 3 3 3 0 0 0 3 3m7.5 3c-1.83 0-5.5.92-5.5 2.75V19h11v-2.25c0-1.83-3.67-2.75-5.5-2.75M9 13c-2.33 0-7 1.17-7 3.5V19h7v-2.25c0-.85.33-2.34 2.37-3.47C10.5 13.1 9.66 13 9 13z"/></svg>
|
||||
@@ -223,7 +223,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../.." class="md-nav__link">
|
||||
<a href="../../index.html" class="md-nav__link">
|
||||
About
|
||||
</a>
|
||||
</li>
|
||||
@@ -238,7 +238,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../../installation/" class="md-nav__link">
|
||||
<a href="../../installation.html" class="md-nav__link">
|
||||
Installation
|
||||
</a>
|
||||
</li>
|
||||
@@ -276,7 +276,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../model/" class="md-nav__link">
|
||||
<a href="../model.html" class="md-nav__link">
|
||||
User model
|
||||
</a>
|
||||
</li>
|
||||
@@ -311,7 +311,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../sqlalchemy/" class="md-nav__link">
|
||||
<a href="sqlalchemy.html" class="md-nav__link">
|
||||
SQLAlchemy
|
||||
</a>
|
||||
</li>
|
||||
@@ -323,7 +323,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../mongodb/" class="md-nav__link">
|
||||
<a href="mongodb.html" class="md-nav__link">
|
||||
MongoDB
|
||||
</a>
|
||||
</li>
|
||||
@@ -349,7 +349,7 @@
|
||||
<span class="md-nav__icon md-icon"></span>
|
||||
</label>
|
||||
|
||||
<a href="./" class="md-nav__link md-nav__link--active">
|
||||
<a href="tortoise.html" class="md-nav__link md-nav__link--active">
|
||||
Tortoise ORM
|
||||
</a>
|
||||
|
||||
@@ -422,7 +422,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../ormar/" class="md-nav__link">
|
||||
<a href="ormar.html" class="md-nav__link">
|
||||
Ormar
|
||||
</a>
|
||||
</li>
|
||||
@@ -461,7 +461,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../authentication/" class="md-nav__link">
|
||||
<a href="../authentication/index.html" class="md-nav__link">
|
||||
Introduction
|
||||
</a>
|
||||
</li>
|
||||
@@ -473,7 +473,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../authentication/jwt/" class="md-nav__link">
|
||||
<a href="../authentication/jwt.html" class="md-nav__link">
|
||||
JWT
|
||||
</a>
|
||||
</li>
|
||||
@@ -485,7 +485,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../authentication/cookie/" class="md-nav__link">
|
||||
<a href="../authentication/cookie.html" class="md-nav__link">
|
||||
Cookie
|
||||
</a>
|
||||
</li>
|
||||
@@ -524,7 +524,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../routers/" class="md-nav__link">
|
||||
<a href="../routers/index.html" class="md-nav__link">
|
||||
Introduction
|
||||
</a>
|
||||
</li>
|
||||
@@ -536,7 +536,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../routers/auth/" class="md-nav__link">
|
||||
<a href="../routers/auth.html" class="md-nav__link">
|
||||
Auth router
|
||||
</a>
|
||||
</li>
|
||||
@@ -548,7 +548,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../routers/register/" class="md-nav__link">
|
||||
<a href="../routers/register.html" class="md-nav__link">
|
||||
Register routes
|
||||
</a>
|
||||
</li>
|
||||
@@ -560,7 +560,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../routers/reset/" class="md-nav__link">
|
||||
<a href="../routers/reset.html" class="md-nav__link">
|
||||
Reset password router
|
||||
</a>
|
||||
</li>
|
||||
@@ -572,7 +572,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../routers/users/" class="md-nav__link">
|
||||
<a href="../routers/users.html" class="md-nav__link">
|
||||
Users router
|
||||
</a>
|
||||
</li>
|
||||
@@ -584,7 +584,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../routers/verify/" class="md-nav__link">
|
||||
<a href="../routers/verify.html" class="md-nav__link">
|
||||
Verify router
|
||||
</a>
|
||||
</li>
|
||||
@@ -602,7 +602,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../password-validation/" class="md-nav__link">
|
||||
<a href="../password-validation.html" class="md-nav__link">
|
||||
Password validation
|
||||
</a>
|
||||
</li>
|
||||
@@ -614,7 +614,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../full-example/" class="md-nav__link">
|
||||
<a href="../full-example.html" class="md-nav__link">
|
||||
Full example
|
||||
</a>
|
||||
</li>
|
||||
@@ -626,7 +626,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../oauth/" class="md-nav__link">
|
||||
<a href="../oauth.html" class="md-nav__link">
|
||||
OAuth2
|
||||
</a>
|
||||
</li>
|
||||
@@ -668,7 +668,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../../usage/flow/" class="md-nav__link">
|
||||
<a href="../../usage/flow.html" class="md-nav__link">
|
||||
Flow
|
||||
</a>
|
||||
</li>
|
||||
@@ -680,7 +680,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../../usage/routes/" class="md-nav__link">
|
||||
<a href="../../usage/routes.html" class="md-nav__link">
|
||||
Routes
|
||||
</a>
|
||||
</li>
|
||||
@@ -692,7 +692,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../../usage/dependency-callables/" class="md-nav__link">
|
||||
<a href="../../usage/dependency-callables.html" class="md-nav__link">
|
||||
Dependency callables
|
||||
</a>
|
||||
</li>
|
||||
@@ -704,7 +704,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../../usage/helpers/" class="md-nav__link">
|
||||
<a href="../../usage/helpers.html" class="md-nav__link">
|
||||
Helpers
|
||||
</a>
|
||||
</li>
|
||||
@@ -746,7 +746,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../../migration/08_to_1x/" class="md-nav__link">
|
||||
<a href="../../migration/08_to_1x.html" class="md-nav__link">
|
||||
0.8.x ➡️ 1.x.x
|
||||
</a>
|
||||
</li>
|
||||
@@ -758,7 +758,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../../migration/1x_to_2x/" class="md-nav__link">
|
||||
<a href="../../migration/1x_to_2x.html" class="md-nav__link">
|
||||
1.x.x ➡️ 2.x.x
|
||||
</a>
|
||||
</li>
|
||||
@@ -770,7 +770,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../../migration/2x_to_3x/" class="md-nav__link">
|
||||
<a href="../../migration/2x_to_3x.html" class="md-nav__link">
|
||||
2.x.x ➡️ 3.x.x
|
||||
</a>
|
||||
</li>
|
||||
@@ -782,7 +782,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../../migration/3x_to_4x/" class="md-nav__link">
|
||||
<a href="../../migration/3x_to_4x.html" class="md-nav__link">
|
||||
3.x.x ➡️ 4.x.x
|
||||
</a>
|
||||
</li>
|
||||
@@ -794,7 +794,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../../migration/4x_to_5x/" class="md-nav__link">
|
||||
<a href="../../migration/4x_to_5x.html" class="md-nav__link">
|
||||
4.x.x ➡️ 5.x.x
|
||||
</a>
|
||||
</li>
|
||||
@@ -1029,7 +1029,7 @@
|
||||
<span class="n">generate_schemas</span><span class="o">=</span><span class="kc">True</span><span class="p">,</span>
|
||||
<span class="p">)</span>
|
||||
</code></pre></div>
|
||||
<p>Notice that we pass a reference to your <a href="../../model/"><code>UserDB</code> model</a>.</p>
|
||||
<p>Notice that we pass a reference to your <a href="../model.html"><code>UserDB</code> model</a>.</p>
|
||||
<h2 id="register-tortoise">Register Tortoise<a class="headerlink" href="#register-tortoise" title="Permanent link">¶</a></h2>
|
||||
<p>For using Tortoise ORM we must register our models and database.</p>
|
||||
<p>Tortoise ORM supports integration with FastAPI out-of-the-box. It will automatically bind startup and shutdown events.</p>
|
||||
@@ -1079,7 +1079,7 @@
|
||||
<p>In production, it's strongly recommended to setup a migration system to update your SQL schemas. See <a href="https://tortoise-orm.readthedocs.io/en/latest/migration.html">https://tortoise-orm.readthedocs.io/en/latest/migration.html</a>.</p>
|
||||
</div>
|
||||
<h2 id="next-steps">Next steps<a class="headerlink" href="#next-steps" title="Permanent link">¶</a></h2>
|
||||
<p>We will now configure an <a href="../../authentication/">authentication method</a>.</p>
|
||||
<p>We will now configure an <a href="../authentication/index.html">authentication method</a>.</p>
|
||||
|
||||
|
||||
|
||||
@@ -1098,7 +1098,8 @@
|
||||
|
||||
<nav class="md-footer__inner md-grid" aria-label="Footer">
|
||||
|
||||
<a href="../mongodb/" class="md-footer__link md-footer__link--prev" rel="prev">
|
||||
|
||||
<a href="mongodb.html" class="md-footer__link md-footer__link--prev" aria-label="Previous: MongoDB" rel="prev">
|
||||
<div class="md-footer__button md-icon">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
|
||||
</div>
|
||||
@@ -1113,7 +1114,8 @@
|
||||
</a>
|
||||
|
||||
|
||||
<a href="../ormar/" class="md-footer__link md-footer__link--next" rel="next">
|
||||
|
||||
<a href="ormar.html" class="md-footer__link md-footer__link--next" aria-label="Next: Ormar" rel="next">
|
||||
<div class="md-footer__title">
|
||||
<div class="md-ellipsis">
|
||||
<span class="md-footer__direction">
|
||||
@@ -1148,10 +1150,10 @@
|
||||
<div class="md-dialog" data-md-component="dialog">
|
||||
<div class="md-dialog__inner md-typeset"></div>
|
||||
</div>
|
||||
<script id="__config" type="application/json">{"base": "../../..", "features": [], "translations": {"clipboard.copy": "Copy to clipboard", "clipboard.copied": "Copied to clipboard", "search.config.lang": "en", "search.config.pipeline": "trimmer, stopWordFilter", "search.config.separator": "[\\s\\-]+", "search.placeholder": "Search", "search.result.placeholder": "Type to start searching", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.term.missing": "Missing"}, "search": "../../../assets/javascripts/workers/search.d351de03.min.js", "version": null}</script>
|
||||
<script id="__config" type="application/json">{"base": "../..", "features": [], "translations": {"clipboard.copy": "Copy to clipboard", "clipboard.copied": "Copied to clipboard", "search.config.lang": "en", "search.config.pipeline": "trimmer, stopWordFilter", "search.config.separator": "[\\s\\-]+", "search.placeholder": "Search", "search.result.placeholder": "Type to start searching", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.term.missing": "Missing", "select.version.title": "Select version"}, "search": "../../assets/javascripts/workers/search.b0710199.min.js", "version": null}</script>
|
||||
|
||||
|
||||
<script src="../../../assets/javascripts/bundle.a1609d9a.min.js"></script>
|
||||
<script src="../../assets/javascripts/bundle.76f349be.min.js"></script>
|
||||
|
||||
|
||||
</body>
|
||||
@@ -11,8 +11,8 @@
|
||||
|
||||
|
||||
|
||||
<link rel="icon" href="../../favicon.png">
|
||||
<meta name="generator" content="mkdocs-1.1.2, mkdocs-material-7.1.5">
|
||||
<link rel="icon" href="../favicon.png">
|
||||
<meta name="generator" content="mkdocs-1.2, mkdocs-material-7.1.7">
|
||||
|
||||
|
||||
|
||||
@@ -20,10 +20,10 @@
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../../assets/stylesheets/main.bde7dde4.min.css">
|
||||
<link rel="stylesheet" href="../assets/stylesheets/main.ca7ac06f.min.css">
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../../assets/stylesheets/palette.ef6f36e2.min.css">
|
||||
<link rel="stylesheet" href="../assets/stylesheets/palette.f1a3b89f.min.css">
|
||||
|
||||
|
||||
|
||||
@@ -55,7 +55,7 @@
|
||||
<body dir="ltr" data-md-color-scheme="default" data-md-color-primary="red" data-md-color-accent="red">
|
||||
|
||||
|
||||
<script>function __prefix(e){return new URL("../..",location).pathname+"."+e}function __get(e,t=localStorage){return JSON.parse(t.getItem(__prefix(e)))}</script>
|
||||
<script>function __prefix(e){return new URL("..",location).pathname+"."+e}function __get(e,t=localStorage){return JSON.parse(t.getItem(__prefix(e)))}</script>
|
||||
|
||||
<script>var palette=__get("__palette");if(null!==palette&&"object"==typeof palette.color)for(var key in palette.color)document.body.setAttribute("data-md-color-"+key,palette.color[key])</script>
|
||||
|
||||
@@ -76,7 +76,7 @@
|
||||
|
||||
<header class="md-header" data-md-component="header">
|
||||
<nav class="md-header__inner md-grid" aria-label="Header">
|
||||
<a href="../.." title="FastAPI Users" class="md-header__button md-logo" aria-label="FastAPI Users" data-md-component="logo">
|
||||
<a href="../index.html" title="FastAPI Users" class="md-header__button md-logo" aria-label="FastAPI Users" data-md-component="logo">
|
||||
|
||||
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M16.5 12A2.5 2.5 0 0 0 19 9.5 2.5 2.5 0 0 0 16.5 7 2.5 2.5 0 0 0 14 9.5a2.5 2.5 0 0 0 2.5 2.5M9 11a3 3 0 0 0 3-3 3 3 0 0 0-3-3 3 3 0 0 0-3 3 3 3 0 0 0 3 3m7.5 3c-1.83 0-5.5.92-5.5 2.75V19h11v-2.25c0-1.83-3.67-2.75-5.5-2.75M9 13c-2.33 0-7 1.17-7 3.5V19h7v-2.25c0-.85.33-2.34 2.37-3.47C10.5 13.1 9.66 13 9 13z"/></svg>
|
||||
@@ -106,7 +106,7 @@
|
||||
|
||||
|
||||
|
||||
<input class="md-option" data-md-color-media="" data-md-color-scheme="default" data-md-color-primary="red" data-md-color-accent="red" type="radio" name="__palette" id="__palette_1">
|
||||
<input class="md-option" data-md-color-media="" data-md-color-scheme="default" data-md-color-primary="red" data-md-color-accent="red" aria-label="Switch to dark mode" type="radio" name="__palette" id="__palette_1">
|
||||
|
||||
<label class="md-header__button md-icon" title="Switch to dark mode" for="__palette_2" hidden>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2a7 7 0 0 0-7 7c0 2.38 1.19 4.47 3 5.74V17a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1v-2.26c1.81-1.27 3-3.36 3-5.74a7 7 0 0 0-7-7M9 21a1 1 0 0 0 1 1h4a1 1 0 0 0 1-1v-1H9v1z"/></svg>
|
||||
@@ -115,7 +115,7 @@
|
||||
|
||||
|
||||
|
||||
<input class="md-option" data-md-color-media="" data-md-color-scheme="slate" data-md-color-primary="red" data-md-color-accent="red" type="radio" name="__palette" id="__palette_2">
|
||||
<input class="md-option" data-md-color-media="" data-md-color-scheme="slate" data-md-color-primary="red" data-md-color-accent="red" aria-label="Switch to light mode" type="radio" name="__palette" id="__palette_2">
|
||||
|
||||
<label class="md-header__button md-icon" title="Switch to light mode" for="__palette_1" hidden>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2a7 7 0 0 1 7 7c0 2.38-1.19 4.47-3 5.74V17a1 1 0 0 1-1 1H9a1 1 0 0 1-1-1v-2.26C6.19 13.47 5 11.38 5 9a7 7 0 0 1 7-7M9 21v-1h6v1a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-1m3-17a5 5 0 0 0-5 5c0 2.05 1.23 3.81 3 4.58V16h4v-2.42c1.77-.77 3-2.53 3-4.58a5 5 0 0 0-5-5z"/></svg>
|
||||
@@ -191,7 +191,7 @@
|
||||
|
||||
<nav class="md-nav md-nav--primary" aria-label="Navigation" data-md-level="0">
|
||||
<label class="md-nav__title" for="__drawer">
|
||||
<a href="../.." title="FastAPI Users" class="md-nav__button md-logo" aria-label="FastAPI Users" data-md-component="logo">
|
||||
<a href="../index.html" title="FastAPI Users" class="md-nav__button md-logo" aria-label="FastAPI Users" data-md-component="logo">
|
||||
|
||||
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M16.5 12A2.5 2.5 0 0 0 19 9.5 2.5 2.5 0 0 0 16.5 7 2.5 2.5 0 0 0 14 9.5a2.5 2.5 0 0 0 2.5 2.5M9 11a3 3 0 0 0 3-3 3 3 0 0 0-3-3 3 3 0 0 0-3 3 3 3 0 0 0 3 3m7.5 3c-1.83 0-5.5.92-5.5 2.75V19h11v-2.25c0-1.83-3.67-2.75-5.5-2.75M9 13c-2.33 0-7 1.17-7 3.5V19h7v-2.25c0-.85.33-2.34 2.37-3.47C10.5 13.1 9.66 13 9 13z"/></svg>
|
||||
@@ -223,7 +223,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../.." class="md-nav__link">
|
||||
<a href="../index.html" class="md-nav__link">
|
||||
About
|
||||
</a>
|
||||
</li>
|
||||
@@ -238,7 +238,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../installation/" class="md-nav__link">
|
||||
<a href="../installation.html" class="md-nav__link">
|
||||
Installation
|
||||
</a>
|
||||
</li>
|
||||
@@ -276,7 +276,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../model/" class="md-nav__link">
|
||||
<a href="model.html" class="md-nav__link">
|
||||
User model
|
||||
</a>
|
||||
</li>
|
||||
@@ -309,7 +309,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../databases/sqlalchemy/" class="md-nav__link">
|
||||
<a href="databases/sqlalchemy.html" class="md-nav__link">
|
||||
SQLAlchemy
|
||||
</a>
|
||||
</li>
|
||||
@@ -321,7 +321,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../databases/mongodb/" class="md-nav__link">
|
||||
<a href="databases/mongodb.html" class="md-nav__link">
|
||||
MongoDB
|
||||
</a>
|
||||
</li>
|
||||
@@ -333,7 +333,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../databases/tortoise/" class="md-nav__link">
|
||||
<a href="databases/tortoise.html" class="md-nav__link">
|
||||
Tortoise ORM
|
||||
</a>
|
||||
</li>
|
||||
@@ -345,7 +345,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../databases/ormar/" class="md-nav__link">
|
||||
<a href="databases/ormar.html" class="md-nav__link">
|
||||
Ormar
|
||||
</a>
|
||||
</li>
|
||||
@@ -384,7 +384,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../authentication/" class="md-nav__link">
|
||||
<a href="authentication/index.html" class="md-nav__link">
|
||||
Introduction
|
||||
</a>
|
||||
</li>
|
||||
@@ -396,7 +396,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../authentication/jwt/" class="md-nav__link">
|
||||
<a href="authentication/jwt.html" class="md-nav__link">
|
||||
JWT
|
||||
</a>
|
||||
</li>
|
||||
@@ -408,7 +408,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../authentication/cookie/" class="md-nav__link">
|
||||
<a href="authentication/cookie.html" class="md-nav__link">
|
||||
Cookie
|
||||
</a>
|
||||
</li>
|
||||
@@ -447,7 +447,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../routers/" class="md-nav__link">
|
||||
<a href="routers/index.html" class="md-nav__link">
|
||||
Introduction
|
||||
</a>
|
||||
</li>
|
||||
@@ -459,7 +459,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../routers/auth/" class="md-nav__link">
|
||||
<a href="routers/auth.html" class="md-nav__link">
|
||||
Auth router
|
||||
</a>
|
||||
</li>
|
||||
@@ -471,7 +471,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../routers/register/" class="md-nav__link">
|
||||
<a href="routers/register.html" class="md-nav__link">
|
||||
Register routes
|
||||
</a>
|
||||
</li>
|
||||
@@ -483,7 +483,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../routers/reset/" class="md-nav__link">
|
||||
<a href="routers/reset.html" class="md-nav__link">
|
||||
Reset password router
|
||||
</a>
|
||||
</li>
|
||||
@@ -495,7 +495,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../routers/users/" class="md-nav__link">
|
||||
<a href="routers/users.html" class="md-nav__link">
|
||||
Users router
|
||||
</a>
|
||||
</li>
|
||||
@@ -507,7 +507,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../routers/verify/" class="md-nav__link">
|
||||
<a href="routers/verify.html" class="md-nav__link">
|
||||
Verify router
|
||||
</a>
|
||||
</li>
|
||||
@@ -525,7 +525,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../password-validation/" class="md-nav__link">
|
||||
<a href="password-validation.html" class="md-nav__link">
|
||||
Password validation
|
||||
</a>
|
||||
</li>
|
||||
@@ -551,7 +551,7 @@
|
||||
<span class="md-nav__icon md-icon"></span>
|
||||
</label>
|
||||
|
||||
<a href="./" class="md-nav__link md-nav__link--active">
|
||||
<a href="full-example.html" class="md-nav__link md-nav__link--active">
|
||||
Full example
|
||||
</a>
|
||||
|
||||
@@ -617,7 +617,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../oauth/" class="md-nav__link">
|
||||
<a href="oauth.html" class="md-nav__link">
|
||||
OAuth2
|
||||
</a>
|
||||
</li>
|
||||
@@ -659,7 +659,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../usage/flow/" class="md-nav__link">
|
||||
<a href="../usage/flow.html" class="md-nav__link">
|
||||
Flow
|
||||
</a>
|
||||
</li>
|
||||
@@ -671,7 +671,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../usage/routes/" class="md-nav__link">
|
||||
<a href="../usage/routes.html" class="md-nav__link">
|
||||
Routes
|
||||
</a>
|
||||
</li>
|
||||
@@ -683,7 +683,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../usage/dependency-callables/" class="md-nav__link">
|
||||
<a href="../usage/dependency-callables.html" class="md-nav__link">
|
||||
Dependency callables
|
||||
</a>
|
||||
</li>
|
||||
@@ -695,7 +695,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../usage/helpers/" class="md-nav__link">
|
||||
<a href="../usage/helpers.html" class="md-nav__link">
|
||||
Helpers
|
||||
</a>
|
||||
</li>
|
||||
@@ -737,7 +737,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../migration/08_to_1x/" class="md-nav__link">
|
||||
<a href="../migration/08_to_1x.html" class="md-nav__link">
|
||||
0.8.x ➡️ 1.x.x
|
||||
</a>
|
||||
</li>
|
||||
@@ -749,7 +749,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../migration/1x_to_2x/" class="md-nav__link">
|
||||
<a href="../migration/1x_to_2x.html" class="md-nav__link">
|
||||
1.x.x ➡️ 2.x.x
|
||||
</a>
|
||||
</li>
|
||||
@@ -761,7 +761,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../migration/2x_to_3x/" class="md-nav__link">
|
||||
<a href="../migration/2x_to_3x.html" class="md-nav__link">
|
||||
2.x.x ➡️ 3.x.x
|
||||
</a>
|
||||
</li>
|
||||
@@ -773,7 +773,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../migration/3x_to_4x/" class="md-nav__link">
|
||||
<a href="../migration/3x_to_4x.html" class="md-nav__link">
|
||||
3.x.x ➡️ 4.x.x
|
||||
</a>
|
||||
</li>
|
||||
@@ -785,7 +785,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../migration/4x_to_5x/" class="md-nav__link">
|
||||
<a href="../migration/4x_to_5x.html" class="md-nav__link">
|
||||
4.x.x ➡️ 5.x.x
|
||||
</a>
|
||||
</li>
|
||||
@@ -1261,7 +1261,7 @@ Insecure passwords may give attackers full access to your database.</p>
|
||||
<span class="k">await</span> <span class="n">database_</span><span class="o">.</span><span class="n">disconnect</span><span class="p">()</span>
|
||||
</code></pre></div>
|
||||
<h2 id="what-now">What now?<a class="headerlink" href="#what-now" title="Permanent link">¶</a></h2>
|
||||
<p>You're ready to go! Be sure to check the <a href="../../usage/routes/">Usage</a> section to understand how yo work with <strong>FastAPI Users</strong>.</p>
|
||||
<p>You're ready to go! Be sure to check the <a href="../usage/routes.html">Usage</a> section to understand how yo work with <strong>FastAPI Users</strong>.</p>
|
||||
|
||||
|
||||
|
||||
@@ -1280,7 +1280,8 @@ Insecure passwords may give attackers full access to your database.</p>
|
||||
|
||||
<nav class="md-footer__inner md-grid" aria-label="Footer">
|
||||
|
||||
<a href="../password-validation/" class="md-footer__link md-footer__link--prev" rel="prev">
|
||||
|
||||
<a href="password-validation.html" class="md-footer__link md-footer__link--prev" aria-label="Previous: Password validation" rel="prev">
|
||||
<div class="md-footer__button md-icon">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
|
||||
</div>
|
||||
@@ -1295,7 +1296,8 @@ Insecure passwords may give attackers full access to your database.</p>
|
||||
</a>
|
||||
|
||||
|
||||
<a href="../oauth/" class="md-footer__link md-footer__link--next" rel="next">
|
||||
|
||||
<a href="oauth.html" class="md-footer__link md-footer__link--next" aria-label="Next: OAuth2" rel="next">
|
||||
<div class="md-footer__title">
|
||||
<div class="md-ellipsis">
|
||||
<span class="md-footer__direction">
|
||||
@@ -1330,10 +1332,10 @@ Insecure passwords may give attackers full access to your database.</p>
|
||||
<div class="md-dialog" data-md-component="dialog">
|
||||
<div class="md-dialog__inner md-typeset"></div>
|
||||
</div>
|
||||
<script id="__config" type="application/json">{"base": "../..", "features": [], "translations": {"clipboard.copy": "Copy to clipboard", "clipboard.copied": "Copied to clipboard", "search.config.lang": "en", "search.config.pipeline": "trimmer, stopWordFilter", "search.config.separator": "[\\s\\-]+", "search.placeholder": "Search", "search.result.placeholder": "Type to start searching", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.term.missing": "Missing"}, "search": "../../assets/javascripts/workers/search.d351de03.min.js", "version": null}</script>
|
||||
<script id="__config" type="application/json">{"base": "..", "features": [], "translations": {"clipboard.copy": "Copy to clipboard", "clipboard.copied": "Copied to clipboard", "search.config.lang": "en", "search.config.pipeline": "trimmer, stopWordFilter", "search.config.separator": "[\\s\\-]+", "search.placeholder": "Search", "search.result.placeholder": "Type to start searching", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.term.missing": "Missing", "select.version.title": "Select version"}, "search": "../assets/javascripts/workers/search.b0710199.min.js", "version": null}</script>
|
||||
|
||||
|
||||
<script src="../../assets/javascripts/bundle.a1609d9a.min.js"></script>
|
||||
<script src="../assets/javascripts/bundle.76f349be.min.js"></script>
|
||||
|
||||
|
||||
</body>
|
||||
@@ -11,8 +11,8 @@
|
||||
|
||||
|
||||
|
||||
<link rel="icon" href="../../favicon.png">
|
||||
<meta name="generator" content="mkdocs-1.1.2, mkdocs-material-7.1.5">
|
||||
<link rel="icon" href="../favicon.png">
|
||||
<meta name="generator" content="mkdocs-1.2, mkdocs-material-7.1.7">
|
||||
|
||||
|
||||
|
||||
@@ -20,10 +20,10 @@
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../../assets/stylesheets/main.bde7dde4.min.css">
|
||||
<link rel="stylesheet" href="../assets/stylesheets/main.ca7ac06f.min.css">
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../../assets/stylesheets/palette.ef6f36e2.min.css">
|
||||
<link rel="stylesheet" href="../assets/stylesheets/palette.f1a3b89f.min.css">
|
||||
|
||||
|
||||
|
||||
@@ -55,7 +55,7 @@
|
||||
<body dir="ltr" data-md-color-scheme="default" data-md-color-primary="red" data-md-color-accent="red">
|
||||
|
||||
|
||||
<script>function __prefix(e){return new URL("../..",location).pathname+"."+e}function __get(e,t=localStorage){return JSON.parse(t.getItem(__prefix(e)))}</script>
|
||||
<script>function __prefix(e){return new URL("..",location).pathname+"."+e}function __get(e,t=localStorage){return JSON.parse(t.getItem(__prefix(e)))}</script>
|
||||
|
||||
<script>var palette=__get("__palette");if(null!==palette&&"object"==typeof palette.color)for(var key in palette.color)document.body.setAttribute("data-md-color-"+key,palette.color[key])</script>
|
||||
|
||||
@@ -76,7 +76,7 @@
|
||||
|
||||
<header class="md-header" data-md-component="header">
|
||||
<nav class="md-header__inner md-grid" aria-label="Header">
|
||||
<a href="../.." title="FastAPI Users" class="md-header__button md-logo" aria-label="FastAPI Users" data-md-component="logo">
|
||||
<a href="../index.html" title="FastAPI Users" class="md-header__button md-logo" aria-label="FastAPI Users" data-md-component="logo">
|
||||
|
||||
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M16.5 12A2.5 2.5 0 0 0 19 9.5 2.5 2.5 0 0 0 16.5 7 2.5 2.5 0 0 0 14 9.5a2.5 2.5 0 0 0 2.5 2.5M9 11a3 3 0 0 0 3-3 3 3 0 0 0-3-3 3 3 0 0 0-3 3 3 3 0 0 0 3 3m7.5 3c-1.83 0-5.5.92-5.5 2.75V19h11v-2.25c0-1.83-3.67-2.75-5.5-2.75M9 13c-2.33 0-7 1.17-7 3.5V19h7v-2.25c0-.85.33-2.34 2.37-3.47C10.5 13.1 9.66 13 9 13z"/></svg>
|
||||
@@ -106,7 +106,7 @@
|
||||
|
||||
|
||||
|
||||
<input class="md-option" data-md-color-media="" data-md-color-scheme="default" data-md-color-primary="red" data-md-color-accent="red" type="radio" name="__palette" id="__palette_1">
|
||||
<input class="md-option" data-md-color-media="" data-md-color-scheme="default" data-md-color-primary="red" data-md-color-accent="red" aria-label="Switch to dark mode" type="radio" name="__palette" id="__palette_1">
|
||||
|
||||
<label class="md-header__button md-icon" title="Switch to dark mode" for="__palette_2" hidden>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2a7 7 0 0 0-7 7c0 2.38 1.19 4.47 3 5.74V17a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1v-2.26c1.81-1.27 3-3.36 3-5.74a7 7 0 0 0-7-7M9 21a1 1 0 0 0 1 1h4a1 1 0 0 0 1-1v-1H9v1z"/></svg>
|
||||
@@ -115,7 +115,7 @@
|
||||
|
||||
|
||||
|
||||
<input class="md-option" data-md-color-media="" data-md-color-scheme="slate" data-md-color-primary="red" data-md-color-accent="red" type="radio" name="__palette" id="__palette_2">
|
||||
<input class="md-option" data-md-color-media="" data-md-color-scheme="slate" data-md-color-primary="red" data-md-color-accent="red" aria-label="Switch to light mode" type="radio" name="__palette" id="__palette_2">
|
||||
|
||||
<label class="md-header__button md-icon" title="Switch to light mode" for="__palette_1" hidden>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2a7 7 0 0 1 7 7c0 2.38-1.19 4.47-3 5.74V17a1 1 0 0 1-1 1H9a1 1 0 0 1-1-1v-2.26C6.19 13.47 5 11.38 5 9a7 7 0 0 1 7-7M9 21v-1h6v1a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-1m3-17a5 5 0 0 0-5 5c0 2.05 1.23 3.81 3 4.58V16h4v-2.42c1.77-.77 3-2.53 3-4.58a5 5 0 0 0-5-5z"/></svg>
|
||||
@@ -191,7 +191,7 @@
|
||||
|
||||
<nav class="md-nav md-nav--primary" aria-label="Navigation" data-md-level="0">
|
||||
<label class="md-nav__title" for="__drawer">
|
||||
<a href="../.." title="FastAPI Users" class="md-nav__button md-logo" aria-label="FastAPI Users" data-md-component="logo">
|
||||
<a href="../index.html" title="FastAPI Users" class="md-nav__button md-logo" aria-label="FastAPI Users" data-md-component="logo">
|
||||
|
||||
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M16.5 12A2.5 2.5 0 0 0 19 9.5 2.5 2.5 0 0 0 16.5 7 2.5 2.5 0 0 0 14 9.5a2.5 2.5 0 0 0 2.5 2.5M9 11a3 3 0 0 0 3-3 3 3 0 0 0-3-3 3 3 0 0 0-3 3 3 3 0 0 0 3 3m7.5 3c-1.83 0-5.5.92-5.5 2.75V19h11v-2.25c0-1.83-3.67-2.75-5.5-2.75M9 13c-2.33 0-7 1.17-7 3.5V19h7v-2.25c0-.85.33-2.34 2.37-3.47C10.5 13.1 9.66 13 9 13z"/></svg>
|
||||
@@ -223,7 +223,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../.." class="md-nav__link">
|
||||
<a href="../index.html" class="md-nav__link">
|
||||
About
|
||||
</a>
|
||||
</li>
|
||||
@@ -238,7 +238,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../installation/" class="md-nav__link">
|
||||
<a href="../installation.html" class="md-nav__link">
|
||||
Installation
|
||||
</a>
|
||||
</li>
|
||||
@@ -290,7 +290,7 @@
|
||||
<span class="md-nav__icon md-icon"></span>
|
||||
</label>
|
||||
|
||||
<a href="./" class="md-nav__link md-nav__link--active">
|
||||
<a href="model.html" class="md-nav__link md-nav__link--active">
|
||||
User model
|
||||
</a>
|
||||
|
||||
@@ -356,7 +356,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../databases/sqlalchemy/" class="md-nav__link">
|
||||
<a href="databases/sqlalchemy.html" class="md-nav__link">
|
||||
SQLAlchemy
|
||||
</a>
|
||||
</li>
|
||||
@@ -368,7 +368,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../databases/mongodb/" class="md-nav__link">
|
||||
<a href="databases/mongodb.html" class="md-nav__link">
|
||||
MongoDB
|
||||
</a>
|
||||
</li>
|
||||
@@ -380,7 +380,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../databases/tortoise/" class="md-nav__link">
|
||||
<a href="databases/tortoise.html" class="md-nav__link">
|
||||
Tortoise ORM
|
||||
</a>
|
||||
</li>
|
||||
@@ -392,7 +392,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../databases/ormar/" class="md-nav__link">
|
||||
<a href="databases/ormar.html" class="md-nav__link">
|
||||
Ormar
|
||||
</a>
|
||||
</li>
|
||||
@@ -431,7 +431,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../authentication/" class="md-nav__link">
|
||||
<a href="authentication/index.html" class="md-nav__link">
|
||||
Introduction
|
||||
</a>
|
||||
</li>
|
||||
@@ -443,7 +443,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../authentication/jwt/" class="md-nav__link">
|
||||
<a href="authentication/jwt.html" class="md-nav__link">
|
||||
JWT
|
||||
</a>
|
||||
</li>
|
||||
@@ -455,7 +455,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../authentication/cookie/" class="md-nav__link">
|
||||
<a href="authentication/cookie.html" class="md-nav__link">
|
||||
Cookie
|
||||
</a>
|
||||
</li>
|
||||
@@ -494,7 +494,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../routers/" class="md-nav__link">
|
||||
<a href="routers/index.html" class="md-nav__link">
|
||||
Introduction
|
||||
</a>
|
||||
</li>
|
||||
@@ -506,7 +506,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../routers/auth/" class="md-nav__link">
|
||||
<a href="routers/auth.html" class="md-nav__link">
|
||||
Auth router
|
||||
</a>
|
||||
</li>
|
||||
@@ -518,7 +518,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../routers/register/" class="md-nav__link">
|
||||
<a href="routers/register.html" class="md-nav__link">
|
||||
Register routes
|
||||
</a>
|
||||
</li>
|
||||
@@ -530,7 +530,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../routers/reset/" class="md-nav__link">
|
||||
<a href="routers/reset.html" class="md-nav__link">
|
||||
Reset password router
|
||||
</a>
|
||||
</li>
|
||||
@@ -542,7 +542,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../routers/users/" class="md-nav__link">
|
||||
<a href="routers/users.html" class="md-nav__link">
|
||||
Users router
|
||||
</a>
|
||||
</li>
|
||||
@@ -554,7 +554,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../routers/verify/" class="md-nav__link">
|
||||
<a href="routers/verify.html" class="md-nav__link">
|
||||
Verify router
|
||||
</a>
|
||||
</li>
|
||||
@@ -572,7 +572,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../password-validation/" class="md-nav__link">
|
||||
<a href="password-validation.html" class="md-nav__link">
|
||||
Password validation
|
||||
</a>
|
||||
</li>
|
||||
@@ -584,7 +584,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../full-example/" class="md-nav__link">
|
||||
<a href="full-example.html" class="md-nav__link">
|
||||
Full example
|
||||
</a>
|
||||
</li>
|
||||
@@ -596,7 +596,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../oauth/" class="md-nav__link">
|
||||
<a href="oauth.html" class="md-nav__link">
|
||||
OAuth2
|
||||
</a>
|
||||
</li>
|
||||
@@ -638,7 +638,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../usage/flow/" class="md-nav__link">
|
||||
<a href="../usage/flow.html" class="md-nav__link">
|
||||
Flow
|
||||
</a>
|
||||
</li>
|
||||
@@ -650,7 +650,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../usage/routes/" class="md-nav__link">
|
||||
<a href="../usage/routes.html" class="md-nav__link">
|
||||
Routes
|
||||
</a>
|
||||
</li>
|
||||
@@ -662,7 +662,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../usage/dependency-callables/" class="md-nav__link">
|
||||
<a href="../usage/dependency-callables.html" class="md-nav__link">
|
||||
Dependency callables
|
||||
</a>
|
||||
</li>
|
||||
@@ -674,7 +674,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../usage/helpers/" class="md-nav__link">
|
||||
<a href="../usage/helpers.html" class="md-nav__link">
|
||||
Helpers
|
||||
</a>
|
||||
</li>
|
||||
@@ -716,7 +716,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../migration/08_to_1x/" class="md-nav__link">
|
||||
<a href="../migration/08_to_1x.html" class="md-nav__link">
|
||||
0.8.x ➡️ 1.x.x
|
||||
</a>
|
||||
</li>
|
||||
@@ -728,7 +728,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../migration/1x_to_2x/" class="md-nav__link">
|
||||
<a href="../migration/1x_to_2x.html" class="md-nav__link">
|
||||
1.x.x ➡️ 2.x.x
|
||||
</a>
|
||||
</li>
|
||||
@@ -740,7 +740,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../migration/2x_to_3x/" class="md-nav__link">
|
||||
<a href="../migration/2x_to_3x.html" class="md-nav__link">
|
||||
2.x.x ➡️ 3.x.x
|
||||
</a>
|
||||
</li>
|
||||
@@ -752,7 +752,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../migration/3x_to_4x/" class="md-nav__link">
|
||||
<a href="../migration/3x_to_4x.html" class="md-nav__link">
|
||||
3.x.x ➡️ 4.x.x
|
||||
</a>
|
||||
</li>
|
||||
@@ -764,7 +764,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../migration/4x_to_5x/" class="md-nav__link">
|
||||
<a href="../migration/4x_to_5x.html" class="md-nav__link">
|
||||
4.x.x ➡️ 5.x.x
|
||||
</a>
|
||||
</li>
|
||||
@@ -835,7 +835,7 @@
|
||||
<li><code>id</code> (<code>UUID4</code>) – Unique identifier of the user. Defaults to a <strong>UUID4</strong>.</li>
|
||||
<li><code>email</code> (<code>str</code>) – Email of the user. Validated by <a href="https://github.com/JoshData/python-email-validator"><code>email-validator</code></a>.</li>
|
||||
<li><code>is_active</code> (<code>bool</code>) – Whether or not the user is active. If not, login and forgot password requests will be denied. Defaults to <code>True</code>.</li>
|
||||
<li><code>is_verified</code> (<code>bool</code>) – Whether or not the user is verified. Optional but helpful with the <a href="../routers/verify/"><code>verify</code> router</a> logic. Defaults to <code>False</code>.</li>
|
||||
<li><code>is_verified</code> (<code>bool</code>) – Whether or not the user is verified. Optional but helpful with the <a href="routers/verify.html"><code>verify</code> router</a> logic. Defaults to <code>False</code>.</li>
|
||||
<li><code>is_superuser</code> (<code>bool</code>) – Whether or not the user is a superuser. Useful to implement administration logic. Defaults to <code>False</code>.</li>
|
||||
</ul>
|
||||
<h2 id="define-your-models">Define your models<a class="headerlink" href="#define-your-models" title="Permanent link">¶</a></h2>
|
||||
@@ -868,10 +868,10 @@
|
||||
<p>You can of course add your own properties there to fit to your needs!</p>
|
||||
<h2 id="next-steps">Next steps<a class="headerlink" href="#next-steps" title="Permanent link">¶</a></h2>
|
||||
<p>Depending on your database backend, the database configuration will differ a bit.</p>
|
||||
<p><a href="../databases/sqlalchemy/">I'm using SQLAlchemy</a></p>
|
||||
<p><a href="../databases/mongodb/">I'm using MongoDB</a></p>
|
||||
<p><a href="../databases/tortoise/">I'm using Tortoise ORM</a></p>
|
||||
<p><a href="../databases/ormar/">I'm using ormar</a></p>
|
||||
<p><a href="databases/sqlalchemy.html">I'm using SQLAlchemy</a></p>
|
||||
<p><a href="databases/mongodb.html">I'm using MongoDB</a></p>
|
||||
<p><a href="databases/tortoise.html">I'm using Tortoise ORM</a></p>
|
||||
<p><a href="databases/ormar.html">I'm using ormar</a></p>
|
||||
|
||||
|
||||
|
||||
@@ -890,7 +890,8 @@
|
||||
|
||||
<nav class="md-footer__inner md-grid" aria-label="Footer">
|
||||
|
||||
<a href="../../installation/" class="md-footer__link md-footer__link--prev" rel="prev">
|
||||
|
||||
<a href="../installation.html" class="md-footer__link md-footer__link--prev" aria-label="Previous: Installation" rel="prev">
|
||||
<div class="md-footer__button md-icon">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
|
||||
</div>
|
||||
@@ -905,7 +906,8 @@
|
||||
</a>
|
||||
|
||||
|
||||
<a href="../databases/sqlalchemy/" class="md-footer__link md-footer__link--next" rel="next">
|
||||
|
||||
<a href="databases/sqlalchemy.html" class="md-footer__link md-footer__link--next" aria-label="Next: SQLAlchemy" rel="next">
|
||||
<div class="md-footer__title">
|
||||
<div class="md-ellipsis">
|
||||
<span class="md-footer__direction">
|
||||
@@ -940,10 +942,10 @@
|
||||
<div class="md-dialog" data-md-component="dialog">
|
||||
<div class="md-dialog__inner md-typeset"></div>
|
||||
</div>
|
||||
<script id="__config" type="application/json">{"base": "../..", "features": [], "translations": {"clipboard.copy": "Copy to clipboard", "clipboard.copied": "Copied to clipboard", "search.config.lang": "en", "search.config.pipeline": "trimmer, stopWordFilter", "search.config.separator": "[\\s\\-]+", "search.placeholder": "Search", "search.result.placeholder": "Type to start searching", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.term.missing": "Missing"}, "search": "../../assets/javascripts/workers/search.d351de03.min.js", "version": null}</script>
|
||||
<script id="__config" type="application/json">{"base": "..", "features": [], "translations": {"clipboard.copy": "Copy to clipboard", "clipboard.copied": "Copied to clipboard", "search.config.lang": "en", "search.config.pipeline": "trimmer, stopWordFilter", "search.config.separator": "[\\s\\-]+", "search.placeholder": "Search", "search.result.placeholder": "Type to start searching", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.term.missing": "Missing", "select.version.title": "Select version"}, "search": "../assets/javascripts/workers/search.b0710199.min.js", "version": null}</script>
|
||||
|
||||
|
||||
<script src="../../assets/javascripts/bundle.a1609d9a.min.js"></script>
|
||||
<script src="../assets/javascripts/bundle.76f349be.min.js"></script>
|
||||
|
||||
|
||||
</body>
|
||||
@@ -11,8 +11,8 @@
|
||||
|
||||
|
||||
|
||||
<link rel="icon" href="../../favicon.png">
|
||||
<meta name="generator" content="mkdocs-1.1.2, mkdocs-material-7.1.5">
|
||||
<link rel="icon" href="../favicon.png">
|
||||
<meta name="generator" content="mkdocs-1.2, mkdocs-material-7.1.7">
|
||||
|
||||
|
||||
|
||||
@@ -20,10 +20,10 @@
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../../assets/stylesheets/main.bde7dde4.min.css">
|
||||
<link rel="stylesheet" href="../assets/stylesheets/main.ca7ac06f.min.css">
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../../assets/stylesheets/palette.ef6f36e2.min.css">
|
||||
<link rel="stylesheet" href="../assets/stylesheets/palette.f1a3b89f.min.css">
|
||||
|
||||
|
||||
|
||||
@@ -55,7 +55,7 @@
|
||||
<body dir="ltr" data-md-color-scheme="default" data-md-color-primary="red" data-md-color-accent="red">
|
||||
|
||||
|
||||
<script>function __prefix(e){return new URL("../..",location).pathname+"."+e}function __get(e,t=localStorage){return JSON.parse(t.getItem(__prefix(e)))}</script>
|
||||
<script>function __prefix(e){return new URL("..",location).pathname+"."+e}function __get(e,t=localStorage){return JSON.parse(t.getItem(__prefix(e)))}</script>
|
||||
|
||||
<script>var palette=__get("__palette");if(null!==palette&&"object"==typeof palette.color)for(var key in palette.color)document.body.setAttribute("data-md-color-"+key,palette.color[key])</script>
|
||||
|
||||
@@ -76,7 +76,7 @@
|
||||
|
||||
<header class="md-header" data-md-component="header">
|
||||
<nav class="md-header__inner md-grid" aria-label="Header">
|
||||
<a href="../.." title="FastAPI Users" class="md-header__button md-logo" aria-label="FastAPI Users" data-md-component="logo">
|
||||
<a href="../index.html" title="FastAPI Users" class="md-header__button md-logo" aria-label="FastAPI Users" data-md-component="logo">
|
||||
|
||||
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M16.5 12A2.5 2.5 0 0 0 19 9.5 2.5 2.5 0 0 0 16.5 7 2.5 2.5 0 0 0 14 9.5a2.5 2.5 0 0 0 2.5 2.5M9 11a3 3 0 0 0 3-3 3 3 0 0 0-3-3 3 3 0 0 0-3 3 3 3 0 0 0 3 3m7.5 3c-1.83 0-5.5.92-5.5 2.75V19h11v-2.25c0-1.83-3.67-2.75-5.5-2.75M9 13c-2.33 0-7 1.17-7 3.5V19h7v-2.25c0-.85.33-2.34 2.37-3.47C10.5 13.1 9.66 13 9 13z"/></svg>
|
||||
@@ -106,7 +106,7 @@
|
||||
|
||||
|
||||
|
||||
<input class="md-option" data-md-color-media="" data-md-color-scheme="default" data-md-color-primary="red" data-md-color-accent="red" type="radio" name="__palette" id="__palette_1">
|
||||
<input class="md-option" data-md-color-media="" data-md-color-scheme="default" data-md-color-primary="red" data-md-color-accent="red" aria-label="Switch to dark mode" type="radio" name="__palette" id="__palette_1">
|
||||
|
||||
<label class="md-header__button md-icon" title="Switch to dark mode" for="__palette_2" hidden>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2a7 7 0 0 0-7 7c0 2.38 1.19 4.47 3 5.74V17a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1v-2.26c1.81-1.27 3-3.36 3-5.74a7 7 0 0 0-7-7M9 21a1 1 0 0 0 1 1h4a1 1 0 0 0 1-1v-1H9v1z"/></svg>
|
||||
@@ -115,7 +115,7 @@
|
||||
|
||||
|
||||
|
||||
<input class="md-option" data-md-color-media="" data-md-color-scheme="slate" data-md-color-primary="red" data-md-color-accent="red" type="radio" name="__palette" id="__palette_2">
|
||||
<input class="md-option" data-md-color-media="" data-md-color-scheme="slate" data-md-color-primary="red" data-md-color-accent="red" aria-label="Switch to light mode" type="radio" name="__palette" id="__palette_2">
|
||||
|
||||
<label class="md-header__button md-icon" title="Switch to light mode" for="__palette_1" hidden>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2a7 7 0 0 1 7 7c0 2.38-1.19 4.47-3 5.74V17a1 1 0 0 1-1 1H9a1 1 0 0 1-1-1v-2.26C6.19 13.47 5 11.38 5 9a7 7 0 0 1 7-7M9 21v-1h6v1a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-1m3-17a5 5 0 0 0-5 5c0 2.05 1.23 3.81 3 4.58V16h4v-2.42c1.77-.77 3-2.53 3-4.58a5 5 0 0 0-5-5z"/></svg>
|
||||
@@ -191,7 +191,7 @@
|
||||
|
||||
<nav class="md-nav md-nav--primary" aria-label="Navigation" data-md-level="0">
|
||||
<label class="md-nav__title" for="__drawer">
|
||||
<a href="../.." title="FastAPI Users" class="md-nav__button md-logo" aria-label="FastAPI Users" data-md-component="logo">
|
||||
<a href="../index.html" title="FastAPI Users" class="md-nav__button md-logo" aria-label="FastAPI Users" data-md-component="logo">
|
||||
|
||||
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M16.5 12A2.5 2.5 0 0 0 19 9.5 2.5 2.5 0 0 0 16.5 7 2.5 2.5 0 0 0 14 9.5a2.5 2.5 0 0 0 2.5 2.5M9 11a3 3 0 0 0 3-3 3 3 0 0 0-3-3 3 3 0 0 0-3 3 3 3 0 0 0 3 3m7.5 3c-1.83 0-5.5.92-5.5 2.75V19h11v-2.25c0-1.83-3.67-2.75-5.5-2.75M9 13c-2.33 0-7 1.17-7 3.5V19h7v-2.25c0-.85.33-2.34 2.37-3.47C10.5 13.1 9.66 13 9 13z"/></svg>
|
||||
@@ -223,7 +223,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../.." class="md-nav__link">
|
||||
<a href="../index.html" class="md-nav__link">
|
||||
About
|
||||
</a>
|
||||
</li>
|
||||
@@ -238,7 +238,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../installation/" class="md-nav__link">
|
||||
<a href="../installation.html" class="md-nav__link">
|
||||
Installation
|
||||
</a>
|
||||
</li>
|
||||
@@ -276,7 +276,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../model/" class="md-nav__link">
|
||||
<a href="model.html" class="md-nav__link">
|
||||
User model
|
||||
</a>
|
||||
</li>
|
||||
@@ -309,7 +309,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../databases/sqlalchemy/" class="md-nav__link">
|
||||
<a href="databases/sqlalchemy.html" class="md-nav__link">
|
||||
SQLAlchemy
|
||||
</a>
|
||||
</li>
|
||||
@@ -321,7 +321,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../databases/mongodb/" class="md-nav__link">
|
||||
<a href="databases/mongodb.html" class="md-nav__link">
|
||||
MongoDB
|
||||
</a>
|
||||
</li>
|
||||
@@ -333,7 +333,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../databases/tortoise/" class="md-nav__link">
|
||||
<a href="databases/tortoise.html" class="md-nav__link">
|
||||
Tortoise ORM
|
||||
</a>
|
||||
</li>
|
||||
@@ -345,7 +345,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../databases/ormar/" class="md-nav__link">
|
||||
<a href="databases/ormar.html" class="md-nav__link">
|
||||
Ormar
|
||||
</a>
|
||||
</li>
|
||||
@@ -384,7 +384,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../authentication/" class="md-nav__link">
|
||||
<a href="authentication/index.html" class="md-nav__link">
|
||||
Introduction
|
||||
</a>
|
||||
</li>
|
||||
@@ -396,7 +396,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../authentication/jwt/" class="md-nav__link">
|
||||
<a href="authentication/jwt.html" class="md-nav__link">
|
||||
JWT
|
||||
</a>
|
||||
</li>
|
||||
@@ -408,7 +408,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../authentication/cookie/" class="md-nav__link">
|
||||
<a href="authentication/cookie.html" class="md-nav__link">
|
||||
Cookie
|
||||
</a>
|
||||
</li>
|
||||
@@ -447,7 +447,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../routers/" class="md-nav__link">
|
||||
<a href="routers/index.html" class="md-nav__link">
|
||||
Introduction
|
||||
</a>
|
||||
</li>
|
||||
@@ -459,7 +459,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../routers/auth/" class="md-nav__link">
|
||||
<a href="routers/auth.html" class="md-nav__link">
|
||||
Auth router
|
||||
</a>
|
||||
</li>
|
||||
@@ -471,7 +471,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../routers/register/" class="md-nav__link">
|
||||
<a href="routers/register.html" class="md-nav__link">
|
||||
Register routes
|
||||
</a>
|
||||
</li>
|
||||
@@ -483,7 +483,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../routers/reset/" class="md-nav__link">
|
||||
<a href="routers/reset.html" class="md-nav__link">
|
||||
Reset password router
|
||||
</a>
|
||||
</li>
|
||||
@@ -495,7 +495,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../routers/users/" class="md-nav__link">
|
||||
<a href="routers/users.html" class="md-nav__link">
|
||||
Users router
|
||||
</a>
|
||||
</li>
|
||||
@@ -507,7 +507,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../routers/verify/" class="md-nav__link">
|
||||
<a href="routers/verify.html" class="md-nav__link">
|
||||
Verify router
|
||||
</a>
|
||||
</li>
|
||||
@@ -525,7 +525,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../password-validation/" class="md-nav__link">
|
||||
<a href="password-validation.html" class="md-nav__link">
|
||||
Password validation
|
||||
</a>
|
||||
</li>
|
||||
@@ -537,7 +537,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../full-example/" class="md-nav__link">
|
||||
<a href="full-example.html" class="md-nav__link">
|
||||
Full example
|
||||
</a>
|
||||
</li>
|
||||
@@ -563,7 +563,7 @@
|
||||
<span class="md-nav__icon md-icon"></span>
|
||||
</label>
|
||||
|
||||
<a href="./" class="md-nav__link md-nav__link--active">
|
||||
<a href="oauth.html" class="md-nav__link md-nav__link--active">
|
||||
OAuth2
|
||||
</a>
|
||||
|
||||
@@ -740,7 +740,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../usage/flow/" class="md-nav__link">
|
||||
<a href="../usage/flow.html" class="md-nav__link">
|
||||
Flow
|
||||
</a>
|
||||
</li>
|
||||
@@ -752,7 +752,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../usage/routes/" class="md-nav__link">
|
||||
<a href="../usage/routes.html" class="md-nav__link">
|
||||
Routes
|
||||
</a>
|
||||
</li>
|
||||
@@ -764,7 +764,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../usage/dependency-callables/" class="md-nav__link">
|
||||
<a href="../usage/dependency-callables.html" class="md-nav__link">
|
||||
Dependency callables
|
||||
</a>
|
||||
</li>
|
||||
@@ -776,7 +776,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../usage/helpers/" class="md-nav__link">
|
||||
<a href="../usage/helpers.html" class="md-nav__link">
|
||||
Helpers
|
||||
</a>
|
||||
</li>
|
||||
@@ -818,7 +818,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../migration/08_to_1x/" class="md-nav__link">
|
||||
<a href="../migration/08_to_1x.html" class="md-nav__link">
|
||||
0.8.x ➡️ 1.x.x
|
||||
</a>
|
||||
</li>
|
||||
@@ -830,7 +830,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../migration/1x_to_2x/" class="md-nav__link">
|
||||
<a href="../migration/1x_to_2x.html" class="md-nav__link">
|
||||
1.x.x ➡️ 2.x.x
|
||||
</a>
|
||||
</li>
|
||||
@@ -842,7 +842,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../migration/2x_to_3x/" class="md-nav__link">
|
||||
<a href="../migration/2x_to_3x.html" class="md-nav__link">
|
||||
2.x.x ➡️ 3.x.x
|
||||
</a>
|
||||
</li>
|
||||
@@ -854,7 +854,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../migration/3x_to_4x/" class="md-nav__link">
|
||||
<a href="../migration/3x_to_4x.html" class="md-nav__link">
|
||||
3.x.x ➡️ 4.x.x
|
||||
</a>
|
||||
</li>
|
||||
@@ -866,7 +866,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../migration/4x_to_5x/" class="md-nav__link">
|
||||
<a href="../migration/4x_to_5x.html" class="md-nav__link">
|
||||
4.x.x ➡️ 5.x.x
|
||||
</a>
|
||||
</li>
|
||||
@@ -1092,7 +1092,7 @@
|
||||
<div class="highlight"><pre><span></span><code><span class="n">user_db</span> <span class="o">=</span> <span class="n">SQLAlchemyUserDatabase</span><span class="p">(</span><span class="n">UserDB</span><span class="p">,</span> <span class="n">database</span><span class="p">,</span> <span class="n">User</span><span class="o">.</span><span class="n">__table__</span><span class="p">,</span> <span class="n">OAuthAccount</span><span class="o">.</span><span class="n">__table__</span><span class="p">)</span>
|
||||
</code></pre></div>
|
||||
<h4 id="mongodb">MongoDB<a class="headerlink" href="#mongodb" title="Permanent link">¶</a></h4>
|
||||
<p>Nothing to do, the <a href="../databases/mongodb/">basic configuration</a> is enough.</p>
|
||||
<p>Nothing to do, the <a href="databases/mongodb.html">basic configuration</a> is enough.</p>
|
||||
<h4 id="tortoise-orm">Tortoise ORM<a class="headerlink" href="#tortoise-orm" title="Permanent link">¶</a></h4>
|
||||
<p>You'll need to define the Tortoise model for storing the OAuth account model. We provide a base one for this:</p>
|
||||
<div class="highlight"><pre><span></span><code><span class="kn">from</span> <span class="nn">fastapi_users.db.tortoise</span> <span class="kn">import</span> <span class="n">TortoiseBaseOAuthAccountModel</span>
|
||||
@@ -1493,7 +1493,8 @@ Insecure passwords may give attackers full access to your database.</p>
|
||||
|
||||
<nav class="md-footer__inner md-grid" aria-label="Footer">
|
||||
|
||||
<a href="../full-example/" class="md-footer__link md-footer__link--prev" rel="prev">
|
||||
|
||||
<a href="full-example.html" class="md-footer__link md-footer__link--prev" aria-label="Previous: Full example" rel="prev">
|
||||
<div class="md-footer__button md-icon">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
|
||||
</div>
|
||||
@@ -1508,7 +1509,8 @@ Insecure passwords may give attackers full access to your database.</p>
|
||||
</a>
|
||||
|
||||
|
||||
<a href="../../usage/flow/" class="md-footer__link md-footer__link--next" rel="next">
|
||||
|
||||
<a href="../usage/flow.html" class="md-footer__link md-footer__link--next" aria-label="Next: Flow" rel="next">
|
||||
<div class="md-footer__title">
|
||||
<div class="md-ellipsis">
|
||||
<span class="md-footer__direction">
|
||||
@@ -1543,10 +1545,10 @@ Insecure passwords may give attackers full access to your database.</p>
|
||||
<div class="md-dialog" data-md-component="dialog">
|
||||
<div class="md-dialog__inner md-typeset"></div>
|
||||
</div>
|
||||
<script id="__config" type="application/json">{"base": "../..", "features": [], "translations": {"clipboard.copy": "Copy to clipboard", "clipboard.copied": "Copied to clipboard", "search.config.lang": "en", "search.config.pipeline": "trimmer, stopWordFilter", "search.config.separator": "[\\s\\-]+", "search.placeholder": "Search", "search.result.placeholder": "Type to start searching", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.term.missing": "Missing"}, "search": "../../assets/javascripts/workers/search.d351de03.min.js", "version": null}</script>
|
||||
<script id="__config" type="application/json">{"base": "..", "features": [], "translations": {"clipboard.copy": "Copy to clipboard", "clipboard.copied": "Copied to clipboard", "search.config.lang": "en", "search.config.pipeline": "trimmer, stopWordFilter", "search.config.separator": "[\\s\\-]+", "search.placeholder": "Search", "search.result.placeholder": "Type to start searching", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.term.missing": "Missing", "select.version.title": "Select version"}, "search": "../assets/javascripts/workers/search.b0710199.min.js", "version": null}</script>
|
||||
|
||||
|
||||
<script src="../../assets/javascripts/bundle.a1609d9a.min.js"></script>
|
||||
<script src="../assets/javascripts/bundle.76f349be.min.js"></script>
|
||||
|
||||
|
||||
</body>
|
||||
@@ -11,8 +11,8 @@
|
||||
|
||||
|
||||
|
||||
<link rel="icon" href="../../favicon.png">
|
||||
<meta name="generator" content="mkdocs-1.1.2, mkdocs-material-7.1.5">
|
||||
<link rel="icon" href="../favicon.png">
|
||||
<meta name="generator" content="mkdocs-1.2, mkdocs-material-7.1.7">
|
||||
|
||||
|
||||
|
||||
@@ -20,10 +20,10 @@
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../../assets/stylesheets/main.bde7dde4.min.css">
|
||||
<link rel="stylesheet" href="../assets/stylesheets/main.ca7ac06f.min.css">
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../../assets/stylesheets/palette.ef6f36e2.min.css">
|
||||
<link rel="stylesheet" href="../assets/stylesheets/palette.f1a3b89f.min.css">
|
||||
|
||||
|
||||
|
||||
@@ -55,7 +55,7 @@
|
||||
<body dir="ltr" data-md-color-scheme="default" data-md-color-primary="red" data-md-color-accent="red">
|
||||
|
||||
|
||||
<script>function __prefix(e){return new URL("../..",location).pathname+"."+e}function __get(e,t=localStorage){return JSON.parse(t.getItem(__prefix(e)))}</script>
|
||||
<script>function __prefix(e){return new URL("..",location).pathname+"."+e}function __get(e,t=localStorage){return JSON.parse(t.getItem(__prefix(e)))}</script>
|
||||
|
||||
<script>var palette=__get("__palette");if(null!==palette&&"object"==typeof palette.color)for(var key in palette.color)document.body.setAttribute("data-md-color-"+key,palette.color[key])</script>
|
||||
|
||||
@@ -76,7 +76,7 @@
|
||||
|
||||
<header class="md-header" data-md-component="header">
|
||||
<nav class="md-header__inner md-grid" aria-label="Header">
|
||||
<a href="../.." title="FastAPI Users" class="md-header__button md-logo" aria-label="FastAPI Users" data-md-component="logo">
|
||||
<a href="../index.html" title="FastAPI Users" class="md-header__button md-logo" aria-label="FastAPI Users" data-md-component="logo">
|
||||
|
||||
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M16.5 12A2.5 2.5 0 0 0 19 9.5 2.5 2.5 0 0 0 16.5 7 2.5 2.5 0 0 0 14 9.5a2.5 2.5 0 0 0 2.5 2.5M9 11a3 3 0 0 0 3-3 3 3 0 0 0-3-3 3 3 0 0 0-3 3 3 3 0 0 0 3 3m7.5 3c-1.83 0-5.5.92-5.5 2.75V19h11v-2.25c0-1.83-3.67-2.75-5.5-2.75M9 13c-2.33 0-7 1.17-7 3.5V19h7v-2.25c0-.85.33-2.34 2.37-3.47C10.5 13.1 9.66 13 9 13z"/></svg>
|
||||
@@ -106,7 +106,7 @@
|
||||
|
||||
|
||||
|
||||
<input class="md-option" data-md-color-media="" data-md-color-scheme="default" data-md-color-primary="red" data-md-color-accent="red" type="radio" name="__palette" id="__palette_1">
|
||||
<input class="md-option" data-md-color-media="" data-md-color-scheme="default" data-md-color-primary="red" data-md-color-accent="red" aria-label="Switch to dark mode" type="radio" name="__palette" id="__palette_1">
|
||||
|
||||
<label class="md-header__button md-icon" title="Switch to dark mode" for="__palette_2" hidden>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2a7 7 0 0 0-7 7c0 2.38 1.19 4.47 3 5.74V17a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1v-2.26c1.81-1.27 3-3.36 3-5.74a7 7 0 0 0-7-7M9 21a1 1 0 0 0 1 1h4a1 1 0 0 0 1-1v-1H9v1z"/></svg>
|
||||
@@ -115,7 +115,7 @@
|
||||
|
||||
|
||||
|
||||
<input class="md-option" data-md-color-media="" data-md-color-scheme="slate" data-md-color-primary="red" data-md-color-accent="red" type="radio" name="__palette" id="__palette_2">
|
||||
<input class="md-option" data-md-color-media="" data-md-color-scheme="slate" data-md-color-primary="red" data-md-color-accent="red" aria-label="Switch to light mode" type="radio" name="__palette" id="__palette_2">
|
||||
|
||||
<label class="md-header__button md-icon" title="Switch to light mode" for="__palette_1" hidden>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2a7 7 0 0 1 7 7c0 2.38-1.19 4.47-3 5.74V17a1 1 0 0 1-1 1H9a1 1 0 0 1-1-1v-2.26C6.19 13.47 5 11.38 5 9a7 7 0 0 1 7-7M9 21v-1h6v1a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-1m3-17a5 5 0 0 0-5 5c0 2.05 1.23 3.81 3 4.58V16h4v-2.42c1.77-.77 3-2.53 3-4.58a5 5 0 0 0-5-5z"/></svg>
|
||||
@@ -191,7 +191,7 @@
|
||||
|
||||
<nav class="md-nav md-nav--primary" aria-label="Navigation" data-md-level="0">
|
||||
<label class="md-nav__title" for="__drawer">
|
||||
<a href="../.." title="FastAPI Users" class="md-nav__button md-logo" aria-label="FastAPI Users" data-md-component="logo">
|
||||
<a href="../index.html" title="FastAPI Users" class="md-nav__button md-logo" aria-label="FastAPI Users" data-md-component="logo">
|
||||
|
||||
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M16.5 12A2.5 2.5 0 0 0 19 9.5 2.5 2.5 0 0 0 16.5 7 2.5 2.5 0 0 0 14 9.5a2.5 2.5 0 0 0 2.5 2.5M9 11a3 3 0 0 0 3-3 3 3 0 0 0-3-3 3 3 0 0 0-3 3 3 3 0 0 0 3 3m7.5 3c-1.83 0-5.5.92-5.5 2.75V19h11v-2.25c0-1.83-3.67-2.75-5.5-2.75M9 13c-2.33 0-7 1.17-7 3.5V19h7v-2.25c0-.85.33-2.34 2.37-3.47C10.5 13.1 9.66 13 9 13z"/></svg>
|
||||
@@ -223,7 +223,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../.." class="md-nav__link">
|
||||
<a href="../index.html" class="md-nav__link">
|
||||
About
|
||||
</a>
|
||||
</li>
|
||||
@@ -238,7 +238,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../installation/" class="md-nav__link">
|
||||
<a href="../installation.html" class="md-nav__link">
|
||||
Installation
|
||||
</a>
|
||||
</li>
|
||||
@@ -276,7 +276,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../model/" class="md-nav__link">
|
||||
<a href="model.html" class="md-nav__link">
|
||||
User model
|
||||
</a>
|
||||
</li>
|
||||
@@ -309,7 +309,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../databases/sqlalchemy/" class="md-nav__link">
|
||||
<a href="databases/sqlalchemy.html" class="md-nav__link">
|
||||
SQLAlchemy
|
||||
</a>
|
||||
</li>
|
||||
@@ -321,7 +321,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../databases/mongodb/" class="md-nav__link">
|
||||
<a href="databases/mongodb.html" class="md-nav__link">
|
||||
MongoDB
|
||||
</a>
|
||||
</li>
|
||||
@@ -333,7 +333,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../databases/tortoise/" class="md-nav__link">
|
||||
<a href="databases/tortoise.html" class="md-nav__link">
|
||||
Tortoise ORM
|
||||
</a>
|
||||
</li>
|
||||
@@ -345,7 +345,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../databases/ormar/" class="md-nav__link">
|
||||
<a href="databases/ormar.html" class="md-nav__link">
|
||||
Ormar
|
||||
</a>
|
||||
</li>
|
||||
@@ -384,7 +384,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../authentication/" class="md-nav__link">
|
||||
<a href="authentication/index.html" class="md-nav__link">
|
||||
Introduction
|
||||
</a>
|
||||
</li>
|
||||
@@ -396,7 +396,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../authentication/jwt/" class="md-nav__link">
|
||||
<a href="authentication/jwt.html" class="md-nav__link">
|
||||
JWT
|
||||
</a>
|
||||
</li>
|
||||
@@ -408,7 +408,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../authentication/cookie/" class="md-nav__link">
|
||||
<a href="authentication/cookie.html" class="md-nav__link">
|
||||
Cookie
|
||||
</a>
|
||||
</li>
|
||||
@@ -447,7 +447,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../routers/" class="md-nav__link">
|
||||
<a href="routers/index.html" class="md-nav__link">
|
||||
Introduction
|
||||
</a>
|
||||
</li>
|
||||
@@ -459,7 +459,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../routers/auth/" class="md-nav__link">
|
||||
<a href="routers/auth.html" class="md-nav__link">
|
||||
Auth router
|
||||
</a>
|
||||
</li>
|
||||
@@ -471,7 +471,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../routers/register/" class="md-nav__link">
|
||||
<a href="routers/register.html" class="md-nav__link">
|
||||
Register routes
|
||||
</a>
|
||||
</li>
|
||||
@@ -483,7 +483,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../routers/reset/" class="md-nav__link">
|
||||
<a href="routers/reset.html" class="md-nav__link">
|
||||
Reset password router
|
||||
</a>
|
||||
</li>
|
||||
@@ -495,7 +495,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../routers/users/" class="md-nav__link">
|
||||
<a href="routers/users.html" class="md-nav__link">
|
||||
Users router
|
||||
</a>
|
||||
</li>
|
||||
@@ -507,7 +507,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../routers/verify/" class="md-nav__link">
|
||||
<a href="routers/verify.html" class="md-nav__link">
|
||||
Verify router
|
||||
</a>
|
||||
</li>
|
||||
@@ -539,7 +539,7 @@
|
||||
<span class="md-nav__icon md-icon"></span>
|
||||
</label>
|
||||
|
||||
<a href="./" class="md-nav__link md-nav__link--active">
|
||||
<a href="password-validation.html" class="md-nav__link md-nav__link--active">
|
||||
Password validation
|
||||
</a>
|
||||
|
||||
@@ -584,7 +584,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../full-example/" class="md-nav__link">
|
||||
<a href="full-example.html" class="md-nav__link">
|
||||
Full example
|
||||
</a>
|
||||
</li>
|
||||
@@ -596,7 +596,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../oauth/" class="md-nav__link">
|
||||
<a href="oauth.html" class="md-nav__link">
|
||||
OAuth2
|
||||
</a>
|
||||
</li>
|
||||
@@ -638,7 +638,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../usage/flow/" class="md-nav__link">
|
||||
<a href="../usage/flow.html" class="md-nav__link">
|
||||
Flow
|
||||
</a>
|
||||
</li>
|
||||
@@ -650,7 +650,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../usage/routes/" class="md-nav__link">
|
||||
<a href="../usage/routes.html" class="md-nav__link">
|
||||
Routes
|
||||
</a>
|
||||
</li>
|
||||
@@ -662,7 +662,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../usage/dependency-callables/" class="md-nav__link">
|
||||
<a href="../usage/dependency-callables.html" class="md-nav__link">
|
||||
Dependency callables
|
||||
</a>
|
||||
</li>
|
||||
@@ -674,7 +674,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../usage/helpers/" class="md-nav__link">
|
||||
<a href="../usage/helpers.html" class="md-nav__link">
|
||||
Helpers
|
||||
</a>
|
||||
</li>
|
||||
@@ -716,7 +716,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../migration/08_to_1x/" class="md-nav__link">
|
||||
<a href="../migration/08_to_1x.html" class="md-nav__link">
|
||||
0.8.x ➡️ 1.x.x
|
||||
</a>
|
||||
</li>
|
||||
@@ -728,7 +728,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../migration/1x_to_2x/" class="md-nav__link">
|
||||
<a href="../migration/1x_to_2x.html" class="md-nav__link">
|
||||
1.x.x ➡️ 2.x.x
|
||||
</a>
|
||||
</li>
|
||||
@@ -740,7 +740,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../migration/2x_to_3x/" class="md-nav__link">
|
||||
<a href="../migration/2x_to_3x.html" class="md-nav__link">
|
||||
2.x.x ➡️ 3.x.x
|
||||
</a>
|
||||
</li>
|
||||
@@ -752,7 +752,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../migration/3x_to_4x/" class="md-nav__link">
|
||||
<a href="../migration/3x_to_4x.html" class="md-nav__link">
|
||||
3.x.x ➡️ 4.x.x
|
||||
</a>
|
||||
</li>
|
||||
@@ -764,7 +764,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../migration/4x_to_5x/" class="md-nav__link">
|
||||
<a href="../migration/4x_to_5x.html" class="md-nav__link">
|
||||
4.x.x ➡️ 5.x.x
|
||||
</a>
|
||||
</li>
|
||||
@@ -833,9 +833,9 @@
|
||||
<p>FastAPI Users <strong>doesn't have any password validation logic by default</strong>. However, there is an argument on the <code>FastAPIUsers</code> class so that you can provide your own password validation function.</p>
|
||||
<p>It'll be applied on each routes that need to validate the input password:</p>
|
||||
<ul>
|
||||
<li>At registration (<a href="../../usage/routes/#post-register"><code>/register</code></a>)</li>
|
||||
<li>At password reset (<a href="../../usage/routes/#post-reset-password"><code>/reset-password</code></a>)</li>
|
||||
<li>At profile update (<a href="../../usage/routes/#patch-me"><code>/me</code></a> and <a href="../../usage/routes/#patch-user_id"><code>/{user_id}</code></a>)</li>
|
||||
<li>At registration (<a href="../usage/routes.html#post-register"><code>/register</code></a>)</li>
|
||||
<li>At password reset (<a href="../usage/routes.html#post-reset-password"><code>/reset-password</code></a>)</li>
|
||||
<li>At profile update (<a href="../usage/routes.html#patch-me"><code>/me</code></a> and <a href="../usage/routes.html#patch-user_id"><code>/{user_id}</code></a>)</li>
|
||||
</ul>
|
||||
<h2 id="configuration">Configuration<a class="headerlink" href="#configuration" title="Permanent link">¶</a></h2>
|
||||
<p>The FastAPIUsers class accepts an optional keyword argument <code>validate_password</code>. It expects an async function which accepts in argument:</p>
|
||||
@@ -890,7 +890,8 @@
|
||||
|
||||
<nav class="md-footer__inner md-grid" aria-label="Footer">
|
||||
|
||||
<a href="../routers/verify/" class="md-footer__link md-footer__link--prev" rel="prev">
|
||||
|
||||
<a href="routers/verify.html" class="md-footer__link md-footer__link--prev" aria-label="Previous: Verify router" rel="prev">
|
||||
<div class="md-footer__button md-icon">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
|
||||
</div>
|
||||
@@ -905,7 +906,8 @@
|
||||
</a>
|
||||
|
||||
|
||||
<a href="../full-example/" class="md-footer__link md-footer__link--next" rel="next">
|
||||
|
||||
<a href="full-example.html" class="md-footer__link md-footer__link--next" aria-label="Next: Full example" rel="next">
|
||||
<div class="md-footer__title">
|
||||
<div class="md-ellipsis">
|
||||
<span class="md-footer__direction">
|
||||
@@ -940,10 +942,10 @@
|
||||
<div class="md-dialog" data-md-component="dialog">
|
||||
<div class="md-dialog__inner md-typeset"></div>
|
||||
</div>
|
||||
<script id="__config" type="application/json">{"base": "../..", "features": [], "translations": {"clipboard.copy": "Copy to clipboard", "clipboard.copied": "Copied to clipboard", "search.config.lang": "en", "search.config.pipeline": "trimmer, stopWordFilter", "search.config.separator": "[\\s\\-]+", "search.placeholder": "Search", "search.result.placeholder": "Type to start searching", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.term.missing": "Missing"}, "search": "../../assets/javascripts/workers/search.d351de03.min.js", "version": null}</script>
|
||||
<script id="__config" type="application/json">{"base": "..", "features": [], "translations": {"clipboard.copy": "Copy to clipboard", "clipboard.copied": "Copied to clipboard", "search.config.lang": "en", "search.config.pipeline": "trimmer, stopWordFilter", "search.config.separator": "[\\s\\-]+", "search.placeholder": "Search", "search.result.placeholder": "Type to start searching", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.term.missing": "Missing", "select.version.title": "Select version"}, "search": "../assets/javascripts/workers/search.b0710199.min.js", "version": null}</script>
|
||||
|
||||
|
||||
<script src="../../assets/javascripts/bundle.a1609d9a.min.js"></script>
|
||||
<script src="../assets/javascripts/bundle.76f349be.min.js"></script>
|
||||
|
||||
|
||||
</body>
|
||||
@@ -11,8 +11,8 @@
|
||||
|
||||
|
||||
|
||||
<link rel="icon" href="../../../favicon.png">
|
||||
<meta name="generator" content="mkdocs-1.1.2, mkdocs-material-7.1.5">
|
||||
<link rel="icon" href="../../favicon.png">
|
||||
<meta name="generator" content="mkdocs-1.2, mkdocs-material-7.1.7">
|
||||
|
||||
|
||||
|
||||
@@ -20,10 +20,10 @@
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../../../assets/stylesheets/main.bde7dde4.min.css">
|
||||
<link rel="stylesheet" href="../../assets/stylesheets/main.ca7ac06f.min.css">
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../../../assets/stylesheets/palette.ef6f36e2.min.css">
|
||||
<link rel="stylesheet" href="../../assets/stylesheets/palette.f1a3b89f.min.css">
|
||||
|
||||
|
||||
|
||||
@@ -55,7 +55,7 @@
|
||||
<body dir="ltr" data-md-color-scheme="default" data-md-color-primary="red" data-md-color-accent="red">
|
||||
|
||||
|
||||
<script>function __prefix(e){return new URL("../../..",location).pathname+"."+e}function __get(e,t=localStorage){return JSON.parse(t.getItem(__prefix(e)))}</script>
|
||||
<script>function __prefix(e){return new URL("../..",location).pathname+"."+e}function __get(e,t=localStorage){return JSON.parse(t.getItem(__prefix(e)))}</script>
|
||||
|
||||
<script>var palette=__get("__palette");if(null!==palette&&"object"==typeof palette.color)for(var key in palette.color)document.body.setAttribute("data-md-color-"+key,palette.color[key])</script>
|
||||
|
||||
@@ -76,7 +76,7 @@
|
||||
|
||||
<header class="md-header" data-md-component="header">
|
||||
<nav class="md-header__inner md-grid" aria-label="Header">
|
||||
<a href="../../.." title="FastAPI Users" class="md-header__button md-logo" aria-label="FastAPI Users" data-md-component="logo">
|
||||
<a href="../../index.html" title="FastAPI Users" class="md-header__button md-logo" aria-label="FastAPI Users" data-md-component="logo">
|
||||
|
||||
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M16.5 12A2.5 2.5 0 0 0 19 9.5 2.5 2.5 0 0 0 16.5 7 2.5 2.5 0 0 0 14 9.5a2.5 2.5 0 0 0 2.5 2.5M9 11a3 3 0 0 0 3-3 3 3 0 0 0-3-3 3 3 0 0 0-3 3 3 3 0 0 0 3 3m7.5 3c-1.83 0-5.5.92-5.5 2.75V19h11v-2.25c0-1.83-3.67-2.75-5.5-2.75M9 13c-2.33 0-7 1.17-7 3.5V19h7v-2.25c0-.85.33-2.34 2.37-3.47C10.5 13.1 9.66 13 9 13z"/></svg>
|
||||
@@ -106,7 +106,7 @@
|
||||
|
||||
|
||||
|
||||
<input class="md-option" data-md-color-media="" data-md-color-scheme="default" data-md-color-primary="red" data-md-color-accent="red" type="radio" name="__palette" id="__palette_1">
|
||||
<input class="md-option" data-md-color-media="" data-md-color-scheme="default" data-md-color-primary="red" data-md-color-accent="red" aria-label="Switch to dark mode" type="radio" name="__palette" id="__palette_1">
|
||||
|
||||
<label class="md-header__button md-icon" title="Switch to dark mode" for="__palette_2" hidden>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2a7 7 0 0 0-7 7c0 2.38 1.19 4.47 3 5.74V17a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1v-2.26c1.81-1.27 3-3.36 3-5.74a7 7 0 0 0-7-7M9 21a1 1 0 0 0 1 1h4a1 1 0 0 0 1-1v-1H9v1z"/></svg>
|
||||
@@ -115,7 +115,7 @@
|
||||
|
||||
|
||||
|
||||
<input class="md-option" data-md-color-media="" data-md-color-scheme="slate" data-md-color-primary="red" data-md-color-accent="red" type="radio" name="__palette" id="__palette_2">
|
||||
<input class="md-option" data-md-color-media="" data-md-color-scheme="slate" data-md-color-primary="red" data-md-color-accent="red" aria-label="Switch to light mode" type="radio" name="__palette" id="__palette_2">
|
||||
|
||||
<label class="md-header__button md-icon" title="Switch to light mode" for="__palette_1" hidden>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2a7 7 0 0 1 7 7c0 2.38-1.19 4.47-3 5.74V17a1 1 0 0 1-1 1H9a1 1 0 0 1-1-1v-2.26C6.19 13.47 5 11.38 5 9a7 7 0 0 1 7-7M9 21v-1h6v1a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-1m3-17a5 5 0 0 0-5 5c0 2.05 1.23 3.81 3 4.58V16h4v-2.42c1.77-.77 3-2.53 3-4.58a5 5 0 0 0-5-5z"/></svg>
|
||||
@@ -191,7 +191,7 @@
|
||||
|
||||
<nav class="md-nav md-nav--primary" aria-label="Navigation" data-md-level="0">
|
||||
<label class="md-nav__title" for="__drawer">
|
||||
<a href="../../.." title="FastAPI Users" class="md-nav__button md-logo" aria-label="FastAPI Users" data-md-component="logo">
|
||||
<a href="../../index.html" title="FastAPI Users" class="md-nav__button md-logo" aria-label="FastAPI Users" data-md-component="logo">
|
||||
|
||||
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M16.5 12A2.5 2.5 0 0 0 19 9.5 2.5 2.5 0 0 0 16.5 7 2.5 2.5 0 0 0 14 9.5a2.5 2.5 0 0 0 2.5 2.5M9 11a3 3 0 0 0 3-3 3 3 0 0 0-3-3 3 3 0 0 0-3 3 3 3 0 0 0 3 3m7.5 3c-1.83 0-5.5.92-5.5 2.75V19h11v-2.25c0-1.83-3.67-2.75-5.5-2.75M9 13c-2.33 0-7 1.17-7 3.5V19h7v-2.25c0-.85.33-2.34 2.37-3.47C10.5 13.1 9.66 13 9 13z"/></svg>
|
||||
@@ -223,7 +223,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../.." class="md-nav__link">
|
||||
<a href="../../index.html" class="md-nav__link">
|
||||
About
|
||||
</a>
|
||||
</li>
|
||||
@@ -238,7 +238,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../../installation/" class="md-nav__link">
|
||||
<a href="../../installation.html" class="md-nav__link">
|
||||
Installation
|
||||
</a>
|
||||
</li>
|
||||
@@ -276,7 +276,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../model/" class="md-nav__link">
|
||||
<a href="../model.html" class="md-nav__link">
|
||||
User model
|
||||
</a>
|
||||
</li>
|
||||
@@ -309,7 +309,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../databases/sqlalchemy/" class="md-nav__link">
|
||||
<a href="../databases/sqlalchemy.html" class="md-nav__link">
|
||||
SQLAlchemy
|
||||
</a>
|
||||
</li>
|
||||
@@ -321,7 +321,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../databases/mongodb/" class="md-nav__link">
|
||||
<a href="../databases/mongodb.html" class="md-nav__link">
|
||||
MongoDB
|
||||
</a>
|
||||
</li>
|
||||
@@ -333,7 +333,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../databases/tortoise/" class="md-nav__link">
|
||||
<a href="../databases/tortoise.html" class="md-nav__link">
|
||||
Tortoise ORM
|
||||
</a>
|
||||
</li>
|
||||
@@ -345,7 +345,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../databases/ormar/" class="md-nav__link">
|
||||
<a href="../databases/ormar.html" class="md-nav__link">
|
||||
Ormar
|
||||
</a>
|
||||
</li>
|
||||
@@ -384,7 +384,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../authentication/" class="md-nav__link">
|
||||
<a href="../authentication/index.html" class="md-nav__link">
|
||||
Introduction
|
||||
</a>
|
||||
</li>
|
||||
@@ -396,7 +396,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../authentication/jwt/" class="md-nav__link">
|
||||
<a href="../authentication/jwt.html" class="md-nav__link">
|
||||
JWT
|
||||
</a>
|
||||
</li>
|
||||
@@ -408,7 +408,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../authentication/cookie/" class="md-nav__link">
|
||||
<a href="../authentication/cookie.html" class="md-nav__link">
|
||||
Cookie
|
||||
</a>
|
||||
</li>
|
||||
@@ -449,7 +449,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../" class="md-nav__link">
|
||||
<a href="index.html" class="md-nav__link">
|
||||
Introduction
|
||||
</a>
|
||||
</li>
|
||||
@@ -475,7 +475,7 @@
|
||||
<span class="md-nav__icon md-icon"></span>
|
||||
</label>
|
||||
|
||||
<a href="./" class="md-nav__link md-nav__link--active">
|
||||
<a href="auth.html" class="md-nav__link md-nav__link--active">
|
||||
Auth router
|
||||
</a>
|
||||
|
||||
@@ -526,7 +526,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../register/" class="md-nav__link">
|
||||
<a href="register.html" class="md-nav__link">
|
||||
Register routes
|
||||
</a>
|
||||
</li>
|
||||
@@ -538,7 +538,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../reset/" class="md-nav__link">
|
||||
<a href="reset.html" class="md-nav__link">
|
||||
Reset password router
|
||||
</a>
|
||||
</li>
|
||||
@@ -550,7 +550,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../users/" class="md-nav__link">
|
||||
<a href="users.html" class="md-nav__link">
|
||||
Users router
|
||||
</a>
|
||||
</li>
|
||||
@@ -562,7 +562,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../verify/" class="md-nav__link">
|
||||
<a href="verify.html" class="md-nav__link">
|
||||
Verify router
|
||||
</a>
|
||||
</li>
|
||||
@@ -580,7 +580,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../password-validation/" class="md-nav__link">
|
||||
<a href="../password-validation.html" class="md-nav__link">
|
||||
Password validation
|
||||
</a>
|
||||
</li>
|
||||
@@ -592,7 +592,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../full-example/" class="md-nav__link">
|
||||
<a href="../full-example.html" class="md-nav__link">
|
||||
Full example
|
||||
</a>
|
||||
</li>
|
||||
@@ -604,7 +604,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../oauth/" class="md-nav__link">
|
||||
<a href="../oauth.html" class="md-nav__link">
|
||||
OAuth2
|
||||
</a>
|
||||
</li>
|
||||
@@ -646,7 +646,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../../usage/flow/" class="md-nav__link">
|
||||
<a href="../../usage/flow.html" class="md-nav__link">
|
||||
Flow
|
||||
</a>
|
||||
</li>
|
||||
@@ -658,7 +658,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../../usage/routes/" class="md-nav__link">
|
||||
<a href="../../usage/routes.html" class="md-nav__link">
|
||||
Routes
|
||||
</a>
|
||||
</li>
|
||||
@@ -670,7 +670,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../../usage/dependency-callables/" class="md-nav__link">
|
||||
<a href="../../usage/dependency-callables.html" class="md-nav__link">
|
||||
Dependency callables
|
||||
</a>
|
||||
</li>
|
||||
@@ -682,7 +682,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../../usage/helpers/" class="md-nav__link">
|
||||
<a href="../../usage/helpers.html" class="md-nav__link">
|
||||
Helpers
|
||||
</a>
|
||||
</li>
|
||||
@@ -724,7 +724,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../../migration/08_to_1x/" class="md-nav__link">
|
||||
<a href="../../migration/08_to_1x.html" class="md-nav__link">
|
||||
0.8.x ➡️ 1.x.x
|
||||
</a>
|
||||
</li>
|
||||
@@ -736,7 +736,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../../migration/1x_to_2x/" class="md-nav__link">
|
||||
<a href="../../migration/1x_to_2x.html" class="md-nav__link">
|
||||
1.x.x ➡️ 2.x.x
|
||||
</a>
|
||||
</li>
|
||||
@@ -748,7 +748,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../../migration/2x_to_3x/" class="md-nav__link">
|
||||
<a href="../../migration/2x_to_3x.html" class="md-nav__link">
|
||||
2.x.x ➡️ 3.x.x
|
||||
</a>
|
||||
</li>
|
||||
@@ -760,7 +760,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../../migration/3x_to_4x/" class="md-nav__link">
|
||||
<a href="../../migration/3x_to_4x.html" class="md-nav__link">
|
||||
3.x.x ➡️ 4.x.x
|
||||
</a>
|
||||
</li>
|
||||
@@ -772,7 +772,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../../migration/4x_to_5x/" class="md-nav__link">
|
||||
<a href="../../migration/4x_to_5x.html" class="md-nav__link">
|
||||
4.x.x ➡️ 5.x.x
|
||||
</a>
|
||||
</li>
|
||||
@@ -844,8 +844,8 @@
|
||||
|
||||
|
||||
<h1 id="auth-router">Auth router<a class="headerlink" href="#auth-router" title="Permanent link">¶</a></h1>
|
||||
<p>The auth router will generate <code>/login</code> and <code>/logout</code> (if applicable) routes for a given <a href="../../authentication/">authentication backend</a>.</p>
|
||||
<p>Check the <a href="../../../usage/routes/">routes usage</a> to learn how to use them.</p>
|
||||
<p>The auth router will generate <code>/login</code> and <code>/logout</code> (if applicable) routes for a given <a href="../authentication/index.html">authentication backend</a>.</p>
|
||||
<p>Check the <a href="../../usage/routes.html">routes usage</a> to learn how to use them.</p>
|
||||
<h2 id="setup">Setup<a class="headerlink" href="#setup" title="Permanent link">¶</a></h2>
|
||||
<div class="highlight"><pre><span></span><code><span class="kn">from</span> <span class="nn">fastapi</span> <span class="kn">import</span> <span class="n">FastAPI</span>
|
||||
<span class="kn">from</span> <span class="nn">fastapi_users</span> <span class="kn">import</span> <span class="n">FastAPIUsers</span>
|
||||
@@ -853,7 +853,7 @@
|
||||
|
||||
<span class="n">SECRET</span> <span class="o">=</span> <span class="s2">"SECRET"</span>
|
||||
|
||||
<span class="n">jwt_authentication</span> <span class="o">=</span> <span class="n">JWTAuthentication</span><span class="p">(</span><span class="n">secret</span><span class="o">=</span><span class="n">SECRET</span><span class="p">,</span> <span class="n">lifetime_seconds</span><span class="o">=</span><span class="mi">3600</span><span class="p">))</span>
|
||||
<span class="n">jwt_authentication</span> <span class="o">=</span> <span class="n">JWTAuthentication</span><span class="p">(</span><span class="n">secret</span><span class="o">=</span><span class="n">SECRET</span><span class="p">,</span> <span class="n">lifetime_seconds</span><span class="o">=</span><span class="mi">3600</span><span class="p">)</span>
|
||||
|
||||
<span class="n">fastapi_users</span> <span class="o">=</span> <span class="n">FastAPIUsers</span><span class="p">(</span>
|
||||
<span class="n">user_db</span><span class="p">,</span>
|
||||
@@ -897,7 +897,8 @@
|
||||
|
||||
<nav class="md-footer__inner md-grid" aria-label="Footer">
|
||||
|
||||
<a href="../" class="md-footer__link md-footer__link--prev" rel="prev">
|
||||
|
||||
<a href="index.html" class="md-footer__link md-footer__link--prev" aria-label="Previous: Introduction" rel="prev">
|
||||
<div class="md-footer__button md-icon">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
|
||||
</div>
|
||||
@@ -912,7 +913,8 @@
|
||||
</a>
|
||||
|
||||
|
||||
<a href="../register/" class="md-footer__link md-footer__link--next" rel="next">
|
||||
|
||||
<a href="register.html" class="md-footer__link md-footer__link--next" aria-label="Next: Register routes" rel="next">
|
||||
<div class="md-footer__title">
|
||||
<div class="md-ellipsis">
|
||||
<span class="md-footer__direction">
|
||||
@@ -947,10 +949,10 @@
|
||||
<div class="md-dialog" data-md-component="dialog">
|
||||
<div class="md-dialog__inner md-typeset"></div>
|
||||
</div>
|
||||
<script id="__config" type="application/json">{"base": "../../..", "features": [], "translations": {"clipboard.copy": "Copy to clipboard", "clipboard.copied": "Copied to clipboard", "search.config.lang": "en", "search.config.pipeline": "trimmer, stopWordFilter", "search.config.separator": "[\\s\\-]+", "search.placeholder": "Search", "search.result.placeholder": "Type to start searching", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.term.missing": "Missing"}, "search": "../../../assets/javascripts/workers/search.d351de03.min.js", "version": null}</script>
|
||||
<script id="__config" type="application/json">{"base": "../..", "features": [], "translations": {"clipboard.copy": "Copy to clipboard", "clipboard.copied": "Copied to clipboard", "search.config.lang": "en", "search.config.pipeline": "trimmer, stopWordFilter", "search.config.separator": "[\\s\\-]+", "search.placeholder": "Search", "search.result.placeholder": "Type to start searching", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.term.missing": "Missing", "select.version.title": "Select version"}, "search": "../../assets/javascripts/workers/search.b0710199.min.js", "version": null}</script>
|
||||
|
||||
|
||||
<script src="../../../assets/javascripts/bundle.a1609d9a.min.js"></script>
|
||||
<script src="../../assets/javascripts/bundle.76f349be.min.js"></script>
|
||||
|
||||
|
||||
</body>
|
||||
@@ -12,7 +12,7 @@
|
||||
|
||||
|
||||
<link rel="icon" href="../../favicon.png">
|
||||
<meta name="generator" content="mkdocs-1.1.2, mkdocs-material-7.1.5">
|
||||
<meta name="generator" content="mkdocs-1.2, mkdocs-material-7.1.7">
|
||||
|
||||
|
||||
|
||||
@@ -20,10 +20,10 @@
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../../assets/stylesheets/main.bde7dde4.min.css">
|
||||
<link rel="stylesheet" href="../../assets/stylesheets/main.ca7ac06f.min.css">
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../../assets/stylesheets/palette.ef6f36e2.min.css">
|
||||
<link rel="stylesheet" href="../../assets/stylesheets/palette.f1a3b89f.min.css">
|
||||
|
||||
|
||||
|
||||
@@ -76,7 +76,7 @@
|
||||
|
||||
<header class="md-header" data-md-component="header">
|
||||
<nav class="md-header__inner md-grid" aria-label="Header">
|
||||
<a href="../.." title="FastAPI Users" class="md-header__button md-logo" aria-label="FastAPI Users" data-md-component="logo">
|
||||
<a href="../../index.html" title="FastAPI Users" class="md-header__button md-logo" aria-label="FastAPI Users" data-md-component="logo">
|
||||
|
||||
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M16.5 12A2.5 2.5 0 0 0 19 9.5 2.5 2.5 0 0 0 16.5 7 2.5 2.5 0 0 0 14 9.5a2.5 2.5 0 0 0 2.5 2.5M9 11a3 3 0 0 0 3-3 3 3 0 0 0-3-3 3 3 0 0 0-3 3 3 3 0 0 0 3 3m7.5 3c-1.83 0-5.5.92-5.5 2.75V19h11v-2.25c0-1.83-3.67-2.75-5.5-2.75M9 13c-2.33 0-7 1.17-7 3.5V19h7v-2.25c0-.85.33-2.34 2.37-3.47C10.5 13.1 9.66 13 9 13z"/></svg>
|
||||
@@ -106,7 +106,7 @@
|
||||
|
||||
|
||||
|
||||
<input class="md-option" data-md-color-media="" data-md-color-scheme="default" data-md-color-primary="red" data-md-color-accent="red" type="radio" name="__palette" id="__palette_1">
|
||||
<input class="md-option" data-md-color-media="" data-md-color-scheme="default" data-md-color-primary="red" data-md-color-accent="red" aria-label="Switch to dark mode" type="radio" name="__palette" id="__palette_1">
|
||||
|
||||
<label class="md-header__button md-icon" title="Switch to dark mode" for="__palette_2" hidden>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2a7 7 0 0 0-7 7c0 2.38 1.19 4.47 3 5.74V17a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1v-2.26c1.81-1.27 3-3.36 3-5.74a7 7 0 0 0-7-7M9 21a1 1 0 0 0 1 1h4a1 1 0 0 0 1-1v-1H9v1z"/></svg>
|
||||
@@ -115,7 +115,7 @@
|
||||
|
||||
|
||||
|
||||
<input class="md-option" data-md-color-media="" data-md-color-scheme="slate" data-md-color-primary="red" data-md-color-accent="red" type="radio" name="__palette" id="__palette_2">
|
||||
<input class="md-option" data-md-color-media="" data-md-color-scheme="slate" data-md-color-primary="red" data-md-color-accent="red" aria-label="Switch to light mode" type="radio" name="__palette" id="__palette_2">
|
||||
|
||||
<label class="md-header__button md-icon" title="Switch to light mode" for="__palette_1" hidden>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2a7 7 0 0 1 7 7c0 2.38-1.19 4.47-3 5.74V17a1 1 0 0 1-1 1H9a1 1 0 0 1-1-1v-2.26C6.19 13.47 5 11.38 5 9a7 7 0 0 1 7-7M9 21v-1h6v1a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-1m3-17a5 5 0 0 0-5 5c0 2.05 1.23 3.81 3 4.58V16h4v-2.42c1.77-.77 3-2.53 3-4.58a5 5 0 0 0-5-5z"/></svg>
|
||||
@@ -191,7 +191,7 @@
|
||||
|
||||
<nav class="md-nav md-nav--primary" aria-label="Navigation" data-md-level="0">
|
||||
<label class="md-nav__title" for="__drawer">
|
||||
<a href="../.." title="FastAPI Users" class="md-nav__button md-logo" aria-label="FastAPI Users" data-md-component="logo">
|
||||
<a href="../../index.html" title="FastAPI Users" class="md-nav__button md-logo" aria-label="FastAPI Users" data-md-component="logo">
|
||||
|
||||
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M16.5 12A2.5 2.5 0 0 0 19 9.5 2.5 2.5 0 0 0 16.5 7 2.5 2.5 0 0 0 14 9.5a2.5 2.5 0 0 0 2.5 2.5M9 11a3 3 0 0 0 3-3 3 3 0 0 0-3-3 3 3 0 0 0-3 3 3 3 0 0 0 3 3m7.5 3c-1.83 0-5.5.92-5.5 2.75V19h11v-2.25c0-1.83-3.67-2.75-5.5-2.75M9 13c-2.33 0-7 1.17-7 3.5V19h7v-2.25c0-.85.33-2.34 2.37-3.47C10.5 13.1 9.66 13 9 13z"/></svg>
|
||||
@@ -223,7 +223,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../.." class="md-nav__link">
|
||||
<a href="../../index.html" class="md-nav__link">
|
||||
About
|
||||
</a>
|
||||
</li>
|
||||
@@ -238,7 +238,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../installation/" class="md-nav__link">
|
||||
<a href="../../installation.html" class="md-nav__link">
|
||||
Installation
|
||||
</a>
|
||||
</li>
|
||||
@@ -276,7 +276,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../model/" class="md-nav__link">
|
||||
<a href="../model.html" class="md-nav__link">
|
||||
User model
|
||||
</a>
|
||||
</li>
|
||||
@@ -309,7 +309,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../databases/sqlalchemy/" class="md-nav__link">
|
||||
<a href="../databases/sqlalchemy.html" class="md-nav__link">
|
||||
SQLAlchemy
|
||||
</a>
|
||||
</li>
|
||||
@@ -321,7 +321,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../databases/mongodb/" class="md-nav__link">
|
||||
<a href="../databases/mongodb.html" class="md-nav__link">
|
||||
MongoDB
|
||||
</a>
|
||||
</li>
|
||||
@@ -333,7 +333,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../databases/tortoise/" class="md-nav__link">
|
||||
<a href="../databases/tortoise.html" class="md-nav__link">
|
||||
Tortoise ORM
|
||||
</a>
|
||||
</li>
|
||||
@@ -345,7 +345,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../databases/ormar/" class="md-nav__link">
|
||||
<a href="../databases/ormar.html" class="md-nav__link">
|
||||
Ormar
|
||||
</a>
|
||||
</li>
|
||||
@@ -384,7 +384,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../authentication/" class="md-nav__link">
|
||||
<a href="../authentication/index.html" class="md-nav__link">
|
||||
Introduction
|
||||
</a>
|
||||
</li>
|
||||
@@ -396,7 +396,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../authentication/jwt/" class="md-nav__link">
|
||||
<a href="../authentication/jwt.html" class="md-nav__link">
|
||||
JWT
|
||||
</a>
|
||||
</li>
|
||||
@@ -408,7 +408,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../authentication/cookie/" class="md-nav__link">
|
||||
<a href="../authentication/cookie.html" class="md-nav__link">
|
||||
Cookie
|
||||
</a>
|
||||
</li>
|
||||
@@ -463,7 +463,7 @@
|
||||
<span class="md-nav__icon md-icon"></span>
|
||||
</label>
|
||||
|
||||
<a href="./" class="md-nav__link md-nav__link--active">
|
||||
<a href="index.html" class="md-nav__link md-nav__link--active">
|
||||
Introduction
|
||||
</a>
|
||||
|
||||
@@ -508,7 +508,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="auth/" class="md-nav__link">
|
||||
<a href="auth.html" class="md-nav__link">
|
||||
Auth router
|
||||
</a>
|
||||
</li>
|
||||
@@ -520,7 +520,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="register/" class="md-nav__link">
|
||||
<a href="register.html" class="md-nav__link">
|
||||
Register routes
|
||||
</a>
|
||||
</li>
|
||||
@@ -532,7 +532,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="reset/" class="md-nav__link">
|
||||
<a href="reset.html" class="md-nav__link">
|
||||
Reset password router
|
||||
</a>
|
||||
</li>
|
||||
@@ -544,7 +544,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="users/" class="md-nav__link">
|
||||
<a href="users.html" class="md-nav__link">
|
||||
Users router
|
||||
</a>
|
||||
</li>
|
||||
@@ -556,7 +556,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="verify/" class="md-nav__link">
|
||||
<a href="verify.html" class="md-nav__link">
|
||||
Verify router
|
||||
</a>
|
||||
</li>
|
||||
@@ -574,7 +574,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../password-validation/" class="md-nav__link">
|
||||
<a href="../password-validation.html" class="md-nav__link">
|
||||
Password validation
|
||||
</a>
|
||||
</li>
|
||||
@@ -586,7 +586,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../full-example/" class="md-nav__link">
|
||||
<a href="../full-example.html" class="md-nav__link">
|
||||
Full example
|
||||
</a>
|
||||
</li>
|
||||
@@ -598,7 +598,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../oauth/" class="md-nav__link">
|
||||
<a href="../oauth.html" class="md-nav__link">
|
||||
OAuth2
|
||||
</a>
|
||||
</li>
|
||||
@@ -640,7 +640,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../usage/flow/" class="md-nav__link">
|
||||
<a href="../../usage/flow.html" class="md-nav__link">
|
||||
Flow
|
||||
</a>
|
||||
</li>
|
||||
@@ -652,7 +652,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../usage/routes/" class="md-nav__link">
|
||||
<a href="../../usage/routes.html" class="md-nav__link">
|
||||
Routes
|
||||
</a>
|
||||
</li>
|
||||
@@ -664,7 +664,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../usage/dependency-callables/" class="md-nav__link">
|
||||
<a href="../../usage/dependency-callables.html" class="md-nav__link">
|
||||
Dependency callables
|
||||
</a>
|
||||
</li>
|
||||
@@ -676,7 +676,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../usage/helpers/" class="md-nav__link">
|
||||
<a href="../../usage/helpers.html" class="md-nav__link">
|
||||
Helpers
|
||||
</a>
|
||||
</li>
|
||||
@@ -718,7 +718,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../migration/08_to_1x/" class="md-nav__link">
|
||||
<a href="../../migration/08_to_1x.html" class="md-nav__link">
|
||||
0.8.x ➡️ 1.x.x
|
||||
</a>
|
||||
</li>
|
||||
@@ -730,7 +730,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../migration/1x_to_2x/" class="md-nav__link">
|
||||
<a href="../../migration/1x_to_2x.html" class="md-nav__link">
|
||||
1.x.x ➡️ 2.x.x
|
||||
</a>
|
||||
</li>
|
||||
@@ -742,7 +742,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../migration/2x_to_3x/" class="md-nav__link">
|
||||
<a href="../../migration/2x_to_3x.html" class="md-nav__link">
|
||||
2.x.x ➡️ 3.x.x
|
||||
</a>
|
||||
</li>
|
||||
@@ -754,7 +754,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../migration/3x_to_4x/" class="md-nav__link">
|
||||
<a href="../../migration/3x_to_4x.html" class="md-nav__link">
|
||||
3.x.x ➡️ 4.x.x
|
||||
</a>
|
||||
</li>
|
||||
@@ -766,7 +766,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../migration/4x_to_5x/" class="md-nav__link">
|
||||
<a href="../../migration/4x_to_5x.html" class="md-nav__link">
|
||||
4.x.x ➡️ 5.x.x
|
||||
</a>
|
||||
</li>
|
||||
@@ -837,7 +837,7 @@
|
||||
<p>Configure <code>FastAPIUsers</code> object with all the elements we defined before. More precisely:</p>
|
||||
<ul>
|
||||
<li><code>db</code>: Database adapter instance.</li>
|
||||
<li><code>auth_backends</code>: List of authentication backends. See <a href="../authentication/">Authentication</a>.</li>
|
||||
<li><code>auth_backends</code>: List of authentication backends. See <a href="../authentication/index.html">Authentication</a>.</li>
|
||||
<li><code>user_model</code>: Pydantic model of a user.</li>
|
||||
<li><code>user_create_model</code>: Pydantic model for creating a user.</li>
|
||||
<li><code>user_update_model</code>: Pydantic model for updating a user.</li>
|
||||
@@ -857,12 +857,12 @@
|
||||
<h2 id="available-routers">Available routers<a class="headerlink" href="#available-routers" title="Permanent link">¶</a></h2>
|
||||
<p>This helper class will let you generate useful routers to setup the authentication system. Each of them is <strong>optional</strong>, so you can pick only the one that you are interested in! Here are the routers provided:</p>
|
||||
<ul>
|
||||
<li><a href="auth/">Auth router</a>: Provides <code>/login</code> and <code>/logout</code> routes for a given <a href="../authentication/">authentication backend</a>.</li>
|
||||
<li><a href="register/">Register router</a>: Provides <code>/register</code> routes to allow a user to create a new account.</li>
|
||||
<li><a href="reset/">Reset password router</a>: Provides <code>/forgot-password</code> and <code>/reset-password</code> routes to allow a user to reset its password.</li>
|
||||
<li><a href="verify/">Verify router</a>: Provides <code>/request-verify-token</code> and <code>/verify</code> routes to manage user e-mail verification.</li>
|
||||
<li><a href="users/">Users router</a>: Provides routes to manage users.</li>
|
||||
<li><a href="../oauth/">OAuth router</a>: Provides routes to perform an OAuth authentication against a service provider (like Google or Facebook).</li>
|
||||
<li><a href="auth.html">Auth router</a>: Provides <code>/login</code> and <code>/logout</code> routes for a given <a href="../authentication/index.html">authentication backend</a>.</li>
|
||||
<li><a href="register.html">Register router</a>: Provides <code>/register</code> routes to allow a user to create a new account.</li>
|
||||
<li><a href="reset.html">Reset password router</a>: Provides <code>/forgot-password</code> and <code>/reset-password</code> routes to allow a user to reset its password.</li>
|
||||
<li><a href="verify.html">Verify router</a>: Provides <code>/request-verify-token</code> and <code>/verify</code> routes to manage user e-mail verification.</li>
|
||||
<li><a href="users.html">Users router</a>: Provides routes to manage users.</li>
|
||||
<li><a href="../oauth.html">OAuth router</a>: Provides routes to perform an OAuth authentication against a service provider (like Google or Facebook).</li>
|
||||
</ul>
|
||||
<p>You should check out each of them to understand how to use them.</p>
|
||||
|
||||
@@ -883,7 +883,8 @@
|
||||
|
||||
<nav class="md-footer__inner md-grid" aria-label="Footer">
|
||||
|
||||
<a href="../authentication/cookie/" class="md-footer__link md-footer__link--prev" rel="prev">
|
||||
|
||||
<a href="../authentication/cookie.html" class="md-footer__link md-footer__link--prev" aria-label="Previous: Cookie" rel="prev">
|
||||
<div class="md-footer__button md-icon">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
|
||||
</div>
|
||||
@@ -898,7 +899,8 @@
|
||||
</a>
|
||||
|
||||
|
||||
<a href="auth/" class="md-footer__link md-footer__link--next" rel="next">
|
||||
|
||||
<a href="auth.html" class="md-footer__link md-footer__link--next" aria-label="Next: Auth router" rel="next">
|
||||
<div class="md-footer__title">
|
||||
<div class="md-ellipsis">
|
||||
<span class="md-footer__direction">
|
||||
@@ -933,10 +935,10 @@
|
||||
<div class="md-dialog" data-md-component="dialog">
|
||||
<div class="md-dialog__inner md-typeset"></div>
|
||||
</div>
|
||||
<script id="__config" type="application/json">{"base": "../..", "features": [], "translations": {"clipboard.copy": "Copy to clipboard", "clipboard.copied": "Copied to clipboard", "search.config.lang": "en", "search.config.pipeline": "trimmer, stopWordFilter", "search.config.separator": "[\\s\\-]+", "search.placeholder": "Search", "search.result.placeholder": "Type to start searching", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.term.missing": "Missing"}, "search": "../../assets/javascripts/workers/search.d351de03.min.js", "version": null}</script>
|
||||
<script id="__config" type="application/json">{"base": "../..", "features": [], "translations": {"clipboard.copy": "Copy to clipboard", "clipboard.copied": "Copied to clipboard", "search.config.lang": "en", "search.config.pipeline": "trimmer, stopWordFilter", "search.config.separator": "[\\s\\-]+", "search.placeholder": "Search", "search.result.placeholder": "Type to start searching", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.term.missing": "Missing", "select.version.title": "Select version"}, "search": "../../assets/javascripts/workers/search.b0710199.min.js", "version": null}</script>
|
||||
|
||||
|
||||
<script src="../../assets/javascripts/bundle.a1609d9a.min.js"></script>
|
||||
<script src="../../assets/javascripts/bundle.76f349be.min.js"></script>
|
||||
|
||||
|
||||
</body>
|
||||
|
||||
@@ -11,8 +11,8 @@
|
||||
|
||||
|
||||
|
||||
<link rel="icon" href="../../../favicon.png">
|
||||
<meta name="generator" content="mkdocs-1.1.2, mkdocs-material-7.1.5">
|
||||
<link rel="icon" href="../../favicon.png">
|
||||
<meta name="generator" content="mkdocs-1.2, mkdocs-material-7.1.7">
|
||||
|
||||
|
||||
|
||||
@@ -20,10 +20,10 @@
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../../../assets/stylesheets/main.bde7dde4.min.css">
|
||||
<link rel="stylesheet" href="../../assets/stylesheets/main.ca7ac06f.min.css">
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../../../assets/stylesheets/palette.ef6f36e2.min.css">
|
||||
<link rel="stylesheet" href="../../assets/stylesheets/palette.f1a3b89f.min.css">
|
||||
|
||||
|
||||
|
||||
@@ -55,7 +55,7 @@
|
||||
<body dir="ltr" data-md-color-scheme="default" data-md-color-primary="red" data-md-color-accent="red">
|
||||
|
||||
|
||||
<script>function __prefix(e){return new URL("../../..",location).pathname+"."+e}function __get(e,t=localStorage){return JSON.parse(t.getItem(__prefix(e)))}</script>
|
||||
<script>function __prefix(e){return new URL("../..",location).pathname+"."+e}function __get(e,t=localStorage){return JSON.parse(t.getItem(__prefix(e)))}</script>
|
||||
|
||||
<script>var palette=__get("__palette");if(null!==palette&&"object"==typeof palette.color)for(var key in palette.color)document.body.setAttribute("data-md-color-"+key,palette.color[key])</script>
|
||||
|
||||
@@ -76,7 +76,7 @@
|
||||
|
||||
<header class="md-header" data-md-component="header">
|
||||
<nav class="md-header__inner md-grid" aria-label="Header">
|
||||
<a href="../../.." title="FastAPI Users" class="md-header__button md-logo" aria-label="FastAPI Users" data-md-component="logo">
|
||||
<a href="../../index.html" title="FastAPI Users" class="md-header__button md-logo" aria-label="FastAPI Users" data-md-component="logo">
|
||||
|
||||
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M16.5 12A2.5 2.5 0 0 0 19 9.5 2.5 2.5 0 0 0 16.5 7 2.5 2.5 0 0 0 14 9.5a2.5 2.5 0 0 0 2.5 2.5M9 11a3 3 0 0 0 3-3 3 3 0 0 0-3-3 3 3 0 0 0-3 3 3 3 0 0 0 3 3m7.5 3c-1.83 0-5.5.92-5.5 2.75V19h11v-2.25c0-1.83-3.67-2.75-5.5-2.75M9 13c-2.33 0-7 1.17-7 3.5V19h7v-2.25c0-.85.33-2.34 2.37-3.47C10.5 13.1 9.66 13 9 13z"/></svg>
|
||||
@@ -106,7 +106,7 @@
|
||||
|
||||
|
||||
|
||||
<input class="md-option" data-md-color-media="" data-md-color-scheme="default" data-md-color-primary="red" data-md-color-accent="red" type="radio" name="__palette" id="__palette_1">
|
||||
<input class="md-option" data-md-color-media="" data-md-color-scheme="default" data-md-color-primary="red" data-md-color-accent="red" aria-label="Switch to dark mode" type="radio" name="__palette" id="__palette_1">
|
||||
|
||||
<label class="md-header__button md-icon" title="Switch to dark mode" for="__palette_2" hidden>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2a7 7 0 0 0-7 7c0 2.38 1.19 4.47 3 5.74V17a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1v-2.26c1.81-1.27 3-3.36 3-5.74a7 7 0 0 0-7-7M9 21a1 1 0 0 0 1 1h4a1 1 0 0 0 1-1v-1H9v1z"/></svg>
|
||||
@@ -115,7 +115,7 @@
|
||||
|
||||
|
||||
|
||||
<input class="md-option" data-md-color-media="" data-md-color-scheme="slate" data-md-color-primary="red" data-md-color-accent="red" type="radio" name="__palette" id="__palette_2">
|
||||
<input class="md-option" data-md-color-media="" data-md-color-scheme="slate" data-md-color-primary="red" data-md-color-accent="red" aria-label="Switch to light mode" type="radio" name="__palette" id="__palette_2">
|
||||
|
||||
<label class="md-header__button md-icon" title="Switch to light mode" for="__palette_1" hidden>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2a7 7 0 0 1 7 7c0 2.38-1.19 4.47-3 5.74V17a1 1 0 0 1-1 1H9a1 1 0 0 1-1-1v-2.26C6.19 13.47 5 11.38 5 9a7 7 0 0 1 7-7M9 21v-1h6v1a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-1m3-17a5 5 0 0 0-5 5c0 2.05 1.23 3.81 3 4.58V16h4v-2.42c1.77-.77 3-2.53 3-4.58a5 5 0 0 0-5-5z"/></svg>
|
||||
@@ -191,7 +191,7 @@
|
||||
|
||||
<nav class="md-nav md-nav--primary" aria-label="Navigation" data-md-level="0">
|
||||
<label class="md-nav__title" for="__drawer">
|
||||
<a href="../../.." title="FastAPI Users" class="md-nav__button md-logo" aria-label="FastAPI Users" data-md-component="logo">
|
||||
<a href="../../index.html" title="FastAPI Users" class="md-nav__button md-logo" aria-label="FastAPI Users" data-md-component="logo">
|
||||
|
||||
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M16.5 12A2.5 2.5 0 0 0 19 9.5 2.5 2.5 0 0 0 16.5 7 2.5 2.5 0 0 0 14 9.5a2.5 2.5 0 0 0 2.5 2.5M9 11a3 3 0 0 0 3-3 3 3 0 0 0-3-3 3 3 0 0 0-3 3 3 3 0 0 0 3 3m7.5 3c-1.83 0-5.5.92-5.5 2.75V19h11v-2.25c0-1.83-3.67-2.75-5.5-2.75M9 13c-2.33 0-7 1.17-7 3.5V19h7v-2.25c0-.85.33-2.34 2.37-3.47C10.5 13.1 9.66 13 9 13z"/></svg>
|
||||
@@ -223,7 +223,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../.." class="md-nav__link">
|
||||
<a href="../../index.html" class="md-nav__link">
|
||||
About
|
||||
</a>
|
||||
</li>
|
||||
@@ -238,7 +238,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../../installation/" class="md-nav__link">
|
||||
<a href="../../installation.html" class="md-nav__link">
|
||||
Installation
|
||||
</a>
|
||||
</li>
|
||||
@@ -276,7 +276,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../model/" class="md-nav__link">
|
||||
<a href="../model.html" class="md-nav__link">
|
||||
User model
|
||||
</a>
|
||||
</li>
|
||||
@@ -309,7 +309,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../databases/sqlalchemy/" class="md-nav__link">
|
||||
<a href="../databases/sqlalchemy.html" class="md-nav__link">
|
||||
SQLAlchemy
|
||||
</a>
|
||||
</li>
|
||||
@@ -321,7 +321,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../databases/mongodb/" class="md-nav__link">
|
||||
<a href="../databases/mongodb.html" class="md-nav__link">
|
||||
MongoDB
|
||||
</a>
|
||||
</li>
|
||||
@@ -333,7 +333,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../databases/tortoise/" class="md-nav__link">
|
||||
<a href="../databases/tortoise.html" class="md-nav__link">
|
||||
Tortoise ORM
|
||||
</a>
|
||||
</li>
|
||||
@@ -345,7 +345,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../databases/ormar/" class="md-nav__link">
|
||||
<a href="../databases/ormar.html" class="md-nav__link">
|
||||
Ormar
|
||||
</a>
|
||||
</li>
|
||||
@@ -384,7 +384,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../authentication/" class="md-nav__link">
|
||||
<a href="../authentication/index.html" class="md-nav__link">
|
||||
Introduction
|
||||
</a>
|
||||
</li>
|
||||
@@ -396,7 +396,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../authentication/jwt/" class="md-nav__link">
|
||||
<a href="../authentication/jwt.html" class="md-nav__link">
|
||||
JWT
|
||||
</a>
|
||||
</li>
|
||||
@@ -408,7 +408,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../authentication/cookie/" class="md-nav__link">
|
||||
<a href="../authentication/cookie.html" class="md-nav__link">
|
||||
Cookie
|
||||
</a>
|
||||
</li>
|
||||
@@ -449,7 +449,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../" class="md-nav__link">
|
||||
<a href="index.html" class="md-nav__link">
|
||||
Introduction
|
||||
</a>
|
||||
</li>
|
||||
@@ -461,7 +461,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../auth/" class="md-nav__link">
|
||||
<a href="auth.html" class="md-nav__link">
|
||||
Auth router
|
||||
</a>
|
||||
</li>
|
||||
@@ -487,7 +487,7 @@
|
||||
<span class="md-nav__icon md-icon"></span>
|
||||
</label>
|
||||
|
||||
<a href="./" class="md-nav__link md-nav__link--active">
|
||||
<a href="register.html" class="md-nav__link md-nav__link--active">
|
||||
Register routes
|
||||
</a>
|
||||
|
||||
@@ -532,7 +532,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../reset/" class="md-nav__link">
|
||||
<a href="reset.html" class="md-nav__link">
|
||||
Reset password router
|
||||
</a>
|
||||
</li>
|
||||
@@ -544,7 +544,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../users/" class="md-nav__link">
|
||||
<a href="users.html" class="md-nav__link">
|
||||
Users router
|
||||
</a>
|
||||
</li>
|
||||
@@ -556,7 +556,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../verify/" class="md-nav__link">
|
||||
<a href="verify.html" class="md-nav__link">
|
||||
Verify router
|
||||
</a>
|
||||
</li>
|
||||
@@ -574,7 +574,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../password-validation/" class="md-nav__link">
|
||||
<a href="../password-validation.html" class="md-nav__link">
|
||||
Password validation
|
||||
</a>
|
||||
</li>
|
||||
@@ -586,7 +586,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../full-example/" class="md-nav__link">
|
||||
<a href="../full-example.html" class="md-nav__link">
|
||||
Full example
|
||||
</a>
|
||||
</li>
|
||||
@@ -598,7 +598,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../oauth/" class="md-nav__link">
|
||||
<a href="../oauth.html" class="md-nav__link">
|
||||
OAuth2
|
||||
</a>
|
||||
</li>
|
||||
@@ -640,7 +640,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../../usage/flow/" class="md-nav__link">
|
||||
<a href="../../usage/flow.html" class="md-nav__link">
|
||||
Flow
|
||||
</a>
|
||||
</li>
|
||||
@@ -652,7 +652,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../../usage/routes/" class="md-nav__link">
|
||||
<a href="../../usage/routes.html" class="md-nav__link">
|
||||
Routes
|
||||
</a>
|
||||
</li>
|
||||
@@ -664,7 +664,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../../usage/dependency-callables/" class="md-nav__link">
|
||||
<a href="../../usage/dependency-callables.html" class="md-nav__link">
|
||||
Dependency callables
|
||||
</a>
|
||||
</li>
|
||||
@@ -676,7 +676,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../../usage/helpers/" class="md-nav__link">
|
||||
<a href="../../usage/helpers.html" class="md-nav__link">
|
||||
Helpers
|
||||
</a>
|
||||
</li>
|
||||
@@ -718,7 +718,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../../migration/08_to_1x/" class="md-nav__link">
|
||||
<a href="../../migration/08_to_1x.html" class="md-nav__link">
|
||||
0.8.x ➡️ 1.x.x
|
||||
</a>
|
||||
</li>
|
||||
@@ -730,7 +730,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../../migration/1x_to_2x/" class="md-nav__link">
|
||||
<a href="../../migration/1x_to_2x.html" class="md-nav__link">
|
||||
1.x.x ➡️ 2.x.x
|
||||
</a>
|
||||
</li>
|
||||
@@ -742,7 +742,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../../migration/2x_to_3x/" class="md-nav__link">
|
||||
<a href="../../migration/2x_to_3x.html" class="md-nav__link">
|
||||
2.x.x ➡️ 3.x.x
|
||||
</a>
|
||||
</li>
|
||||
@@ -754,7 +754,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../../migration/3x_to_4x/" class="md-nav__link">
|
||||
<a href="../../migration/3x_to_4x.html" class="md-nav__link">
|
||||
3.x.x ➡️ 4.x.x
|
||||
</a>
|
||||
</li>
|
||||
@@ -766,7 +766,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../../migration/4x_to_5x/" class="md-nav__link">
|
||||
<a href="../../migration/4x_to_5x.html" class="md-nav__link">
|
||||
4.x.x ➡️ 5.x.x
|
||||
</a>
|
||||
</li>
|
||||
@@ -833,7 +833,7 @@
|
||||
|
||||
<h1 id="register-routes">Register routes<a class="headerlink" href="#register-routes" title="Permanent link">¶</a></h1>
|
||||
<p>The register router will generate a <code>/register</code> route to allow a user to create a new account.</p>
|
||||
<p>Check the <a href="../../../usage/routes/">routes usage</a> to learn how to use them.</p>
|
||||
<p>Check the <a href="../../usage/routes.html">routes usage</a> to learn how to use them.</p>
|
||||
<h2 id="setup">Setup<a class="headerlink" href="#setup" title="Permanent link">¶</a></h2>
|
||||
<div class="highlight"><pre><span></span><code><span class="kn">from</span> <span class="nn">fastapi</span> <span class="kn">import</span> <span class="n">FastAPI</span>
|
||||
<span class="kn">from</span> <span class="nn">fastapi_users</span> <span class="kn">import</span> <span class="n">FastAPIUsers</span>
|
||||
@@ -841,7 +841,7 @@
|
||||
|
||||
<span class="n">SECRET</span> <span class="o">=</span> <span class="s2">"SECRET"</span>
|
||||
|
||||
<span class="n">jwt_authentication</span> <span class="o">=</span> <span class="n">JWTAuthentication</span><span class="p">(</span><span class="n">secret</span><span class="o">=</span><span class="n">SECRET</span><span class="p">,</span> <span class="n">lifetime_seconds</span><span class="o">=</span><span class="mi">3600</span><span class="p">))</span>
|
||||
<span class="n">jwt_authentication</span> <span class="o">=</span> <span class="n">JWTAuthentication</span><span class="p">(</span><span class="n">secret</span><span class="o">=</span><span class="n">SECRET</span><span class="p">,</span> <span class="n">lifetime_seconds</span><span class="o">=</span><span class="mi">3600</span><span class="p">)</span>
|
||||
|
||||
<span class="n">fastapi_users</span> <span class="o">=</span> <span class="n">FastAPIUsers</span><span class="p">(</span>
|
||||
<span class="n">user_db</span><span class="p">,</span>
|
||||
@@ -891,7 +891,8 @@
|
||||
|
||||
<nav class="md-footer__inner md-grid" aria-label="Footer">
|
||||
|
||||
<a href="../auth/" class="md-footer__link md-footer__link--prev" rel="prev">
|
||||
|
||||
<a href="auth.html" class="md-footer__link md-footer__link--prev" aria-label="Previous: Auth router" rel="prev">
|
||||
<div class="md-footer__button md-icon">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
|
||||
</div>
|
||||
@@ -906,7 +907,8 @@
|
||||
</a>
|
||||
|
||||
|
||||
<a href="../reset/" class="md-footer__link md-footer__link--next" rel="next">
|
||||
|
||||
<a href="reset.html" class="md-footer__link md-footer__link--next" aria-label="Next: Reset password router" rel="next">
|
||||
<div class="md-footer__title">
|
||||
<div class="md-ellipsis">
|
||||
<span class="md-footer__direction">
|
||||
@@ -941,10 +943,10 @@
|
||||
<div class="md-dialog" data-md-component="dialog">
|
||||
<div class="md-dialog__inner md-typeset"></div>
|
||||
</div>
|
||||
<script id="__config" type="application/json">{"base": "../../..", "features": [], "translations": {"clipboard.copy": "Copy to clipboard", "clipboard.copied": "Copied to clipboard", "search.config.lang": "en", "search.config.pipeline": "trimmer, stopWordFilter", "search.config.separator": "[\\s\\-]+", "search.placeholder": "Search", "search.result.placeholder": "Type to start searching", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.term.missing": "Missing"}, "search": "../../../assets/javascripts/workers/search.d351de03.min.js", "version": null}</script>
|
||||
<script id="__config" type="application/json">{"base": "../..", "features": [], "translations": {"clipboard.copy": "Copy to clipboard", "clipboard.copied": "Copied to clipboard", "search.config.lang": "en", "search.config.pipeline": "trimmer, stopWordFilter", "search.config.separator": "[\\s\\-]+", "search.placeholder": "Search", "search.result.placeholder": "Type to start searching", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.term.missing": "Missing", "select.version.title": "Select version"}, "search": "../../assets/javascripts/workers/search.b0710199.min.js", "version": null}</script>
|
||||
|
||||
|
||||
<script src="../../../assets/javascripts/bundle.a1609d9a.min.js"></script>
|
||||
<script src="../../assets/javascripts/bundle.76f349be.min.js"></script>
|
||||
|
||||
|
||||
</body>
|
||||
@@ -11,8 +11,8 @@
|
||||
|
||||
|
||||
|
||||
<link rel="icon" href="../../../favicon.png">
|
||||
<meta name="generator" content="mkdocs-1.1.2, mkdocs-material-7.1.5">
|
||||
<link rel="icon" href="../../favicon.png">
|
||||
<meta name="generator" content="mkdocs-1.2, mkdocs-material-7.1.7">
|
||||
|
||||
|
||||
|
||||
@@ -20,10 +20,10 @@
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../../../assets/stylesheets/main.bde7dde4.min.css">
|
||||
<link rel="stylesheet" href="../../assets/stylesheets/main.ca7ac06f.min.css">
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../../../assets/stylesheets/palette.ef6f36e2.min.css">
|
||||
<link rel="stylesheet" href="../../assets/stylesheets/palette.f1a3b89f.min.css">
|
||||
|
||||
|
||||
|
||||
@@ -55,7 +55,7 @@
|
||||
<body dir="ltr" data-md-color-scheme="default" data-md-color-primary="red" data-md-color-accent="red">
|
||||
|
||||
|
||||
<script>function __prefix(e){return new URL("../../..",location).pathname+"."+e}function __get(e,t=localStorage){return JSON.parse(t.getItem(__prefix(e)))}</script>
|
||||
<script>function __prefix(e){return new URL("../..",location).pathname+"."+e}function __get(e,t=localStorage){return JSON.parse(t.getItem(__prefix(e)))}</script>
|
||||
|
||||
<script>var palette=__get("__palette");if(null!==palette&&"object"==typeof palette.color)for(var key in palette.color)document.body.setAttribute("data-md-color-"+key,palette.color[key])</script>
|
||||
|
||||
@@ -76,7 +76,7 @@
|
||||
|
||||
<header class="md-header" data-md-component="header">
|
||||
<nav class="md-header__inner md-grid" aria-label="Header">
|
||||
<a href="../../.." title="FastAPI Users" class="md-header__button md-logo" aria-label="FastAPI Users" data-md-component="logo">
|
||||
<a href="../../index.html" title="FastAPI Users" class="md-header__button md-logo" aria-label="FastAPI Users" data-md-component="logo">
|
||||
|
||||
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M16.5 12A2.5 2.5 0 0 0 19 9.5 2.5 2.5 0 0 0 16.5 7 2.5 2.5 0 0 0 14 9.5a2.5 2.5 0 0 0 2.5 2.5M9 11a3 3 0 0 0 3-3 3 3 0 0 0-3-3 3 3 0 0 0-3 3 3 3 0 0 0 3 3m7.5 3c-1.83 0-5.5.92-5.5 2.75V19h11v-2.25c0-1.83-3.67-2.75-5.5-2.75M9 13c-2.33 0-7 1.17-7 3.5V19h7v-2.25c0-.85.33-2.34 2.37-3.47C10.5 13.1 9.66 13 9 13z"/></svg>
|
||||
@@ -106,7 +106,7 @@
|
||||
|
||||
|
||||
|
||||
<input class="md-option" data-md-color-media="" data-md-color-scheme="default" data-md-color-primary="red" data-md-color-accent="red" type="radio" name="__palette" id="__palette_1">
|
||||
<input class="md-option" data-md-color-media="" data-md-color-scheme="default" data-md-color-primary="red" data-md-color-accent="red" aria-label="Switch to dark mode" type="radio" name="__palette" id="__palette_1">
|
||||
|
||||
<label class="md-header__button md-icon" title="Switch to dark mode" for="__palette_2" hidden>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2a7 7 0 0 0-7 7c0 2.38 1.19 4.47 3 5.74V17a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1v-2.26c1.81-1.27 3-3.36 3-5.74a7 7 0 0 0-7-7M9 21a1 1 0 0 0 1 1h4a1 1 0 0 0 1-1v-1H9v1z"/></svg>
|
||||
@@ -115,7 +115,7 @@
|
||||
|
||||
|
||||
|
||||
<input class="md-option" data-md-color-media="" data-md-color-scheme="slate" data-md-color-primary="red" data-md-color-accent="red" type="radio" name="__palette" id="__palette_2">
|
||||
<input class="md-option" data-md-color-media="" data-md-color-scheme="slate" data-md-color-primary="red" data-md-color-accent="red" aria-label="Switch to light mode" type="radio" name="__palette" id="__palette_2">
|
||||
|
||||
<label class="md-header__button md-icon" title="Switch to light mode" for="__palette_1" hidden>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2a7 7 0 0 1 7 7c0 2.38-1.19 4.47-3 5.74V17a1 1 0 0 1-1 1H9a1 1 0 0 1-1-1v-2.26C6.19 13.47 5 11.38 5 9a7 7 0 0 1 7-7M9 21v-1h6v1a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-1m3-17a5 5 0 0 0-5 5c0 2.05 1.23 3.81 3 4.58V16h4v-2.42c1.77-.77 3-2.53 3-4.58a5 5 0 0 0-5-5z"/></svg>
|
||||
@@ -191,7 +191,7 @@
|
||||
|
||||
<nav class="md-nav md-nav--primary" aria-label="Navigation" data-md-level="0">
|
||||
<label class="md-nav__title" for="__drawer">
|
||||
<a href="../../.." title="FastAPI Users" class="md-nav__button md-logo" aria-label="FastAPI Users" data-md-component="logo">
|
||||
<a href="../../index.html" title="FastAPI Users" class="md-nav__button md-logo" aria-label="FastAPI Users" data-md-component="logo">
|
||||
|
||||
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M16.5 12A2.5 2.5 0 0 0 19 9.5 2.5 2.5 0 0 0 16.5 7 2.5 2.5 0 0 0 14 9.5a2.5 2.5 0 0 0 2.5 2.5M9 11a3 3 0 0 0 3-3 3 3 0 0 0-3-3 3 3 0 0 0-3 3 3 3 0 0 0 3 3m7.5 3c-1.83 0-5.5.92-5.5 2.75V19h11v-2.25c0-1.83-3.67-2.75-5.5-2.75M9 13c-2.33 0-7 1.17-7 3.5V19h7v-2.25c0-.85.33-2.34 2.37-3.47C10.5 13.1 9.66 13 9 13z"/></svg>
|
||||
@@ -223,7 +223,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../.." class="md-nav__link">
|
||||
<a href="../../index.html" class="md-nav__link">
|
||||
About
|
||||
</a>
|
||||
</li>
|
||||
@@ -238,7 +238,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../../installation/" class="md-nav__link">
|
||||
<a href="../../installation.html" class="md-nav__link">
|
||||
Installation
|
||||
</a>
|
||||
</li>
|
||||
@@ -276,7 +276,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../model/" class="md-nav__link">
|
||||
<a href="../model.html" class="md-nav__link">
|
||||
User model
|
||||
</a>
|
||||
</li>
|
||||
@@ -309,7 +309,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../databases/sqlalchemy/" class="md-nav__link">
|
||||
<a href="../databases/sqlalchemy.html" class="md-nav__link">
|
||||
SQLAlchemy
|
||||
</a>
|
||||
</li>
|
||||
@@ -321,7 +321,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../databases/mongodb/" class="md-nav__link">
|
||||
<a href="../databases/mongodb.html" class="md-nav__link">
|
||||
MongoDB
|
||||
</a>
|
||||
</li>
|
||||
@@ -333,7 +333,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../databases/tortoise/" class="md-nav__link">
|
||||
<a href="../databases/tortoise.html" class="md-nav__link">
|
||||
Tortoise ORM
|
||||
</a>
|
||||
</li>
|
||||
@@ -345,7 +345,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../databases/ormar/" class="md-nav__link">
|
||||
<a href="../databases/ormar.html" class="md-nav__link">
|
||||
Ormar
|
||||
</a>
|
||||
</li>
|
||||
@@ -384,7 +384,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../authentication/" class="md-nav__link">
|
||||
<a href="../authentication/index.html" class="md-nav__link">
|
||||
Introduction
|
||||
</a>
|
||||
</li>
|
||||
@@ -396,7 +396,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../authentication/jwt/" class="md-nav__link">
|
||||
<a href="../authentication/jwt.html" class="md-nav__link">
|
||||
JWT
|
||||
</a>
|
||||
</li>
|
||||
@@ -408,7 +408,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../authentication/cookie/" class="md-nav__link">
|
||||
<a href="../authentication/cookie.html" class="md-nav__link">
|
||||
Cookie
|
||||
</a>
|
||||
</li>
|
||||
@@ -449,7 +449,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../" class="md-nav__link">
|
||||
<a href="index.html" class="md-nav__link">
|
||||
Introduction
|
||||
</a>
|
||||
</li>
|
||||
@@ -461,7 +461,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../auth/" class="md-nav__link">
|
||||
<a href="auth.html" class="md-nav__link">
|
||||
Auth router
|
||||
</a>
|
||||
</li>
|
||||
@@ -473,7 +473,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../register/" class="md-nav__link">
|
||||
<a href="register.html" class="md-nav__link">
|
||||
Register routes
|
||||
</a>
|
||||
</li>
|
||||
@@ -499,7 +499,7 @@
|
||||
<span class="md-nav__icon md-icon"></span>
|
||||
</label>
|
||||
|
||||
<a href="./" class="md-nav__link md-nav__link--active">
|
||||
<a href="reset.html" class="md-nav__link md-nav__link--active">
|
||||
Reset password router
|
||||
</a>
|
||||
|
||||
@@ -551,7 +551,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../users/" class="md-nav__link">
|
||||
<a href="users.html" class="md-nav__link">
|
||||
Users router
|
||||
</a>
|
||||
</li>
|
||||
@@ -563,7 +563,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../verify/" class="md-nav__link">
|
||||
<a href="verify.html" class="md-nav__link">
|
||||
Verify router
|
||||
</a>
|
||||
</li>
|
||||
@@ -581,7 +581,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../password-validation/" class="md-nav__link">
|
||||
<a href="../password-validation.html" class="md-nav__link">
|
||||
Password validation
|
||||
</a>
|
||||
</li>
|
||||
@@ -593,7 +593,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../full-example/" class="md-nav__link">
|
||||
<a href="../full-example.html" class="md-nav__link">
|
||||
Full example
|
||||
</a>
|
||||
</li>
|
||||
@@ -605,7 +605,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../oauth/" class="md-nav__link">
|
||||
<a href="../oauth.html" class="md-nav__link">
|
||||
OAuth2
|
||||
</a>
|
||||
</li>
|
||||
@@ -647,7 +647,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../../usage/flow/" class="md-nav__link">
|
||||
<a href="../../usage/flow.html" class="md-nav__link">
|
||||
Flow
|
||||
</a>
|
||||
</li>
|
||||
@@ -659,7 +659,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../../usage/routes/" class="md-nav__link">
|
||||
<a href="../../usage/routes.html" class="md-nav__link">
|
||||
Routes
|
||||
</a>
|
||||
</li>
|
||||
@@ -671,7 +671,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../../usage/dependency-callables/" class="md-nav__link">
|
||||
<a href="../../usage/dependency-callables.html" class="md-nav__link">
|
||||
Dependency callables
|
||||
</a>
|
||||
</li>
|
||||
@@ -683,7 +683,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../../usage/helpers/" class="md-nav__link">
|
||||
<a href="../../usage/helpers.html" class="md-nav__link">
|
||||
Helpers
|
||||
</a>
|
||||
</li>
|
||||
@@ -725,7 +725,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../../migration/08_to_1x/" class="md-nav__link">
|
||||
<a href="../../migration/08_to_1x.html" class="md-nav__link">
|
||||
0.8.x ➡️ 1.x.x
|
||||
</a>
|
||||
</li>
|
||||
@@ -737,7 +737,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../../migration/1x_to_2x/" class="md-nav__link">
|
||||
<a href="../../migration/1x_to_2x.html" class="md-nav__link">
|
||||
1.x.x ➡️ 2.x.x
|
||||
</a>
|
||||
</li>
|
||||
@@ -749,7 +749,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../../migration/2x_to_3x/" class="md-nav__link">
|
||||
<a href="../../migration/2x_to_3x.html" class="md-nav__link">
|
||||
2.x.x ➡️ 3.x.x
|
||||
</a>
|
||||
</li>
|
||||
@@ -761,7 +761,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../../migration/3x_to_4x/" class="md-nav__link">
|
||||
<a href="../../migration/3x_to_4x.html" class="md-nav__link">
|
||||
3.x.x ➡️ 4.x.x
|
||||
</a>
|
||||
</li>
|
||||
@@ -773,7 +773,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../../migration/4x_to_5x/" class="md-nav__link">
|
||||
<a href="../../migration/4x_to_5x.html" class="md-nav__link">
|
||||
4.x.x ➡️ 5.x.x
|
||||
</a>
|
||||
</li>
|
||||
@@ -847,7 +847,7 @@
|
||||
|
||||
<h1 id="reset-password-router">Reset password router<a class="headerlink" href="#reset-password-router" title="Permanent link">¶</a></h1>
|
||||
<p>The reset password router will generate <code>/forgot-password</code> (the user asks for a token to reset its password) and <code>/reset-password</code> (the user changes its password given the token) routes.</p>
|
||||
<p>Check the <a href="../../../usage/routes/">routes usage</a> to learn how to use them.</p>
|
||||
<p>Check the <a href="../../usage/routes.html">routes usage</a> to learn how to use them.</p>
|
||||
<h2 id="setup">Setup<a class="headerlink" href="#setup" title="Permanent link">¶</a></h2>
|
||||
<div class="highlight"><pre><span></span><code><span class="kn">from</span> <span class="nn">fastapi</span> <span class="kn">import</span> <span class="n">FastAPI</span>
|
||||
<span class="kn">from</span> <span class="nn">fastapi_users</span> <span class="kn">import</span> <span class="n">FastAPIUsers</span>
|
||||
@@ -929,7 +929,8 @@
|
||||
|
||||
<nav class="md-footer__inner md-grid" aria-label="Footer">
|
||||
|
||||
<a href="../register/" class="md-footer__link md-footer__link--prev" rel="prev">
|
||||
|
||||
<a href="register.html" class="md-footer__link md-footer__link--prev" aria-label="Previous: Register routes" rel="prev">
|
||||
<div class="md-footer__button md-icon">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
|
||||
</div>
|
||||
@@ -944,7 +945,8 @@
|
||||
</a>
|
||||
|
||||
|
||||
<a href="../users/" class="md-footer__link md-footer__link--next" rel="next">
|
||||
|
||||
<a href="users.html" class="md-footer__link md-footer__link--next" aria-label="Next: Users router" rel="next">
|
||||
<div class="md-footer__title">
|
||||
<div class="md-ellipsis">
|
||||
<span class="md-footer__direction">
|
||||
@@ -979,10 +981,10 @@
|
||||
<div class="md-dialog" data-md-component="dialog">
|
||||
<div class="md-dialog__inner md-typeset"></div>
|
||||
</div>
|
||||
<script id="__config" type="application/json">{"base": "../../..", "features": [], "translations": {"clipboard.copy": "Copy to clipboard", "clipboard.copied": "Copied to clipboard", "search.config.lang": "en", "search.config.pipeline": "trimmer, stopWordFilter", "search.config.separator": "[\\s\\-]+", "search.placeholder": "Search", "search.result.placeholder": "Type to start searching", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.term.missing": "Missing"}, "search": "../../../assets/javascripts/workers/search.d351de03.min.js", "version": null}</script>
|
||||
<script id="__config" type="application/json">{"base": "../..", "features": [], "translations": {"clipboard.copy": "Copy to clipboard", "clipboard.copied": "Copied to clipboard", "search.config.lang": "en", "search.config.pipeline": "trimmer, stopWordFilter", "search.config.separator": "[\\s\\-]+", "search.placeholder": "Search", "search.result.placeholder": "Type to start searching", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.term.missing": "Missing", "select.version.title": "Select version"}, "search": "../../assets/javascripts/workers/search.b0710199.min.js", "version": null}</script>
|
||||
|
||||
|
||||
<script src="../../../assets/javascripts/bundle.a1609d9a.min.js"></script>
|
||||
<script src="../../assets/javascripts/bundle.76f349be.min.js"></script>
|
||||
|
||||
|
||||
</body>
|
||||
@@ -11,8 +11,8 @@
|
||||
|
||||
|
||||
|
||||
<link rel="icon" href="../../../favicon.png">
|
||||
<meta name="generator" content="mkdocs-1.1.2, mkdocs-material-7.1.5">
|
||||
<link rel="icon" href="../../favicon.png">
|
||||
<meta name="generator" content="mkdocs-1.2, mkdocs-material-7.1.7">
|
||||
|
||||
|
||||
|
||||
@@ -20,10 +20,10 @@
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../../../assets/stylesheets/main.bde7dde4.min.css">
|
||||
<link rel="stylesheet" href="../../assets/stylesheets/main.ca7ac06f.min.css">
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../../../assets/stylesheets/palette.ef6f36e2.min.css">
|
||||
<link rel="stylesheet" href="../../assets/stylesheets/palette.f1a3b89f.min.css">
|
||||
|
||||
|
||||
|
||||
@@ -55,7 +55,7 @@
|
||||
<body dir="ltr" data-md-color-scheme="default" data-md-color-primary="red" data-md-color-accent="red">
|
||||
|
||||
|
||||
<script>function __prefix(e){return new URL("../../..",location).pathname+"."+e}function __get(e,t=localStorage){return JSON.parse(t.getItem(__prefix(e)))}</script>
|
||||
<script>function __prefix(e){return new URL("../..",location).pathname+"."+e}function __get(e,t=localStorage){return JSON.parse(t.getItem(__prefix(e)))}</script>
|
||||
|
||||
<script>var palette=__get("__palette");if(null!==palette&&"object"==typeof palette.color)for(var key in palette.color)document.body.setAttribute("data-md-color-"+key,palette.color[key])</script>
|
||||
|
||||
@@ -76,7 +76,7 @@
|
||||
|
||||
<header class="md-header" data-md-component="header">
|
||||
<nav class="md-header__inner md-grid" aria-label="Header">
|
||||
<a href="../../.." title="FastAPI Users" class="md-header__button md-logo" aria-label="FastAPI Users" data-md-component="logo">
|
||||
<a href="../../index.html" title="FastAPI Users" class="md-header__button md-logo" aria-label="FastAPI Users" data-md-component="logo">
|
||||
|
||||
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M16.5 12A2.5 2.5 0 0 0 19 9.5 2.5 2.5 0 0 0 16.5 7 2.5 2.5 0 0 0 14 9.5a2.5 2.5 0 0 0 2.5 2.5M9 11a3 3 0 0 0 3-3 3 3 0 0 0-3-3 3 3 0 0 0-3 3 3 3 0 0 0 3 3m7.5 3c-1.83 0-5.5.92-5.5 2.75V19h11v-2.25c0-1.83-3.67-2.75-5.5-2.75M9 13c-2.33 0-7 1.17-7 3.5V19h7v-2.25c0-.85.33-2.34 2.37-3.47C10.5 13.1 9.66 13 9 13z"/></svg>
|
||||
@@ -106,7 +106,7 @@
|
||||
|
||||
|
||||
|
||||
<input class="md-option" data-md-color-media="" data-md-color-scheme="default" data-md-color-primary="red" data-md-color-accent="red" type="radio" name="__palette" id="__palette_1">
|
||||
<input class="md-option" data-md-color-media="" data-md-color-scheme="default" data-md-color-primary="red" data-md-color-accent="red" aria-label="Switch to dark mode" type="radio" name="__palette" id="__palette_1">
|
||||
|
||||
<label class="md-header__button md-icon" title="Switch to dark mode" for="__palette_2" hidden>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2a7 7 0 0 0-7 7c0 2.38 1.19 4.47 3 5.74V17a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1v-2.26c1.81-1.27 3-3.36 3-5.74a7 7 0 0 0-7-7M9 21a1 1 0 0 0 1 1h4a1 1 0 0 0 1-1v-1H9v1z"/></svg>
|
||||
@@ -115,7 +115,7 @@
|
||||
|
||||
|
||||
|
||||
<input class="md-option" data-md-color-media="" data-md-color-scheme="slate" data-md-color-primary="red" data-md-color-accent="red" type="radio" name="__palette" id="__palette_2">
|
||||
<input class="md-option" data-md-color-media="" data-md-color-scheme="slate" data-md-color-primary="red" data-md-color-accent="red" aria-label="Switch to light mode" type="radio" name="__palette" id="__palette_2">
|
||||
|
||||
<label class="md-header__button md-icon" title="Switch to light mode" for="__palette_1" hidden>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2a7 7 0 0 1 7 7c0 2.38-1.19 4.47-3 5.74V17a1 1 0 0 1-1 1H9a1 1 0 0 1-1-1v-2.26C6.19 13.47 5 11.38 5 9a7 7 0 0 1 7-7M9 21v-1h6v1a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-1m3-17a5 5 0 0 0-5 5c0 2.05 1.23 3.81 3 4.58V16h4v-2.42c1.77-.77 3-2.53 3-4.58a5 5 0 0 0-5-5z"/></svg>
|
||||
@@ -191,7 +191,7 @@
|
||||
|
||||
<nav class="md-nav md-nav--primary" aria-label="Navigation" data-md-level="0">
|
||||
<label class="md-nav__title" for="__drawer">
|
||||
<a href="../../.." title="FastAPI Users" class="md-nav__button md-logo" aria-label="FastAPI Users" data-md-component="logo">
|
||||
<a href="../../index.html" title="FastAPI Users" class="md-nav__button md-logo" aria-label="FastAPI Users" data-md-component="logo">
|
||||
|
||||
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M16.5 12A2.5 2.5 0 0 0 19 9.5 2.5 2.5 0 0 0 16.5 7 2.5 2.5 0 0 0 14 9.5a2.5 2.5 0 0 0 2.5 2.5M9 11a3 3 0 0 0 3-3 3 3 0 0 0-3-3 3 3 0 0 0-3 3 3 3 0 0 0 3 3m7.5 3c-1.83 0-5.5.92-5.5 2.75V19h11v-2.25c0-1.83-3.67-2.75-5.5-2.75M9 13c-2.33 0-7 1.17-7 3.5V19h7v-2.25c0-.85.33-2.34 2.37-3.47C10.5 13.1 9.66 13 9 13z"/></svg>
|
||||
@@ -223,7 +223,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../.." class="md-nav__link">
|
||||
<a href="../../index.html" class="md-nav__link">
|
||||
About
|
||||
</a>
|
||||
</li>
|
||||
@@ -238,7 +238,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../../installation/" class="md-nav__link">
|
||||
<a href="../../installation.html" class="md-nav__link">
|
||||
Installation
|
||||
</a>
|
||||
</li>
|
||||
@@ -276,7 +276,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../model/" class="md-nav__link">
|
||||
<a href="../model.html" class="md-nav__link">
|
||||
User model
|
||||
</a>
|
||||
</li>
|
||||
@@ -309,7 +309,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../databases/sqlalchemy/" class="md-nav__link">
|
||||
<a href="../databases/sqlalchemy.html" class="md-nav__link">
|
||||
SQLAlchemy
|
||||
</a>
|
||||
</li>
|
||||
@@ -321,7 +321,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../databases/mongodb/" class="md-nav__link">
|
||||
<a href="../databases/mongodb.html" class="md-nav__link">
|
||||
MongoDB
|
||||
</a>
|
||||
</li>
|
||||
@@ -333,7 +333,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../databases/tortoise/" class="md-nav__link">
|
||||
<a href="../databases/tortoise.html" class="md-nav__link">
|
||||
Tortoise ORM
|
||||
</a>
|
||||
</li>
|
||||
@@ -345,7 +345,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../databases/ormar/" class="md-nav__link">
|
||||
<a href="../databases/ormar.html" class="md-nav__link">
|
||||
Ormar
|
||||
</a>
|
||||
</li>
|
||||
@@ -384,7 +384,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../authentication/" class="md-nav__link">
|
||||
<a href="../authentication/index.html" class="md-nav__link">
|
||||
Introduction
|
||||
</a>
|
||||
</li>
|
||||
@@ -396,7 +396,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../authentication/jwt/" class="md-nav__link">
|
||||
<a href="../authentication/jwt.html" class="md-nav__link">
|
||||
JWT
|
||||
</a>
|
||||
</li>
|
||||
@@ -408,7 +408,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../authentication/cookie/" class="md-nav__link">
|
||||
<a href="../authentication/cookie.html" class="md-nav__link">
|
||||
Cookie
|
||||
</a>
|
||||
</li>
|
||||
@@ -449,7 +449,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../" class="md-nav__link">
|
||||
<a href="index.html" class="md-nav__link">
|
||||
Introduction
|
||||
</a>
|
||||
</li>
|
||||
@@ -461,7 +461,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../auth/" class="md-nav__link">
|
||||
<a href="auth.html" class="md-nav__link">
|
||||
Auth router
|
||||
</a>
|
||||
</li>
|
||||
@@ -473,7 +473,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../register/" class="md-nav__link">
|
||||
<a href="register.html" class="md-nav__link">
|
||||
Register routes
|
||||
</a>
|
||||
</li>
|
||||
@@ -485,7 +485,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../reset/" class="md-nav__link">
|
||||
<a href="reset.html" class="md-nav__link">
|
||||
Reset password router
|
||||
</a>
|
||||
</li>
|
||||
@@ -511,7 +511,7 @@
|
||||
<span class="md-nav__icon md-icon"></span>
|
||||
</label>
|
||||
|
||||
<a href="./" class="md-nav__link md-nav__link--active">
|
||||
<a href="users.html" class="md-nav__link md-nav__link--active">
|
||||
Users router
|
||||
</a>
|
||||
|
||||
@@ -569,7 +569,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../verify/" class="md-nav__link">
|
||||
<a href="verify.html" class="md-nav__link">
|
||||
Verify router
|
||||
</a>
|
||||
</li>
|
||||
@@ -587,7 +587,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../password-validation/" class="md-nav__link">
|
||||
<a href="../password-validation.html" class="md-nav__link">
|
||||
Password validation
|
||||
</a>
|
||||
</li>
|
||||
@@ -599,7 +599,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../full-example/" class="md-nav__link">
|
||||
<a href="../full-example.html" class="md-nav__link">
|
||||
Full example
|
||||
</a>
|
||||
</li>
|
||||
@@ -611,7 +611,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../oauth/" class="md-nav__link">
|
||||
<a href="../oauth.html" class="md-nav__link">
|
||||
OAuth2
|
||||
</a>
|
||||
</li>
|
||||
@@ -653,7 +653,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../../usage/flow/" class="md-nav__link">
|
||||
<a href="../../usage/flow.html" class="md-nav__link">
|
||||
Flow
|
||||
</a>
|
||||
</li>
|
||||
@@ -665,7 +665,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../../usage/routes/" class="md-nav__link">
|
||||
<a href="../../usage/routes.html" class="md-nav__link">
|
||||
Routes
|
||||
</a>
|
||||
</li>
|
||||
@@ -677,7 +677,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../../usage/dependency-callables/" class="md-nav__link">
|
||||
<a href="../../usage/dependency-callables.html" class="md-nav__link">
|
||||
Dependency callables
|
||||
</a>
|
||||
</li>
|
||||
@@ -689,7 +689,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../../usage/helpers/" class="md-nav__link">
|
||||
<a href="../../usage/helpers.html" class="md-nav__link">
|
||||
Helpers
|
||||
</a>
|
||||
</li>
|
||||
@@ -731,7 +731,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../../migration/08_to_1x/" class="md-nav__link">
|
||||
<a href="../../migration/08_to_1x.html" class="md-nav__link">
|
||||
0.8.x ➡️ 1.x.x
|
||||
</a>
|
||||
</li>
|
||||
@@ -743,7 +743,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../../migration/1x_to_2x/" class="md-nav__link">
|
||||
<a href="../../migration/1x_to_2x.html" class="md-nav__link">
|
||||
1.x.x ➡️ 2.x.x
|
||||
</a>
|
||||
</li>
|
||||
@@ -755,7 +755,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../../migration/2x_to_3x/" class="md-nav__link">
|
||||
<a href="../../migration/2x_to_3x.html" class="md-nav__link">
|
||||
2.x.x ➡️ 3.x.x
|
||||
</a>
|
||||
</li>
|
||||
@@ -767,7 +767,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../../migration/3x_to_4x/" class="md-nav__link">
|
||||
<a href="../../migration/3x_to_4x.html" class="md-nav__link">
|
||||
3.x.x ➡️ 4.x.x
|
||||
</a>
|
||||
</li>
|
||||
@@ -779,7 +779,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../../migration/4x_to_5x/" class="md-nav__link">
|
||||
<a href="../../migration/4x_to_5x.html" class="md-nav__link">
|
||||
4.x.x ➡️ 5.x.x
|
||||
</a>
|
||||
</li>
|
||||
@@ -858,7 +858,7 @@
|
||||
|
||||
|
||||
<h1 id="users-router">Users router<a class="headerlink" href="#users-router" title="Permanent link">¶</a></h1>
|
||||
<p>This router provides routes to manage users. Check the <a href="../../../usage/routes/">routes usage</a> to learn how to use them.</p>
|
||||
<p>This router provides routes to manage users. Check the <a href="../../usage/routes.html">routes usage</a> to learn how to use them.</p>
|
||||
<h2 id="setup">Setup<a class="headerlink" href="#setup" title="Permanent link">¶</a></h2>
|
||||
<div class="highlight"><pre><span></span><code><span class="kn">from</span> <span class="nn">fastapi</span> <span class="kn">import</span> <span class="n">FastAPI</span>
|
||||
<span class="kn">from</span> <span class="nn">fastapi_users</span> <span class="kn">import</span> <span class="n">FastAPIUsers</span>
|
||||
@@ -924,7 +924,8 @@
|
||||
|
||||
<nav class="md-footer__inner md-grid" aria-label="Footer">
|
||||
|
||||
<a href="../reset/" class="md-footer__link md-footer__link--prev" rel="prev">
|
||||
|
||||
<a href="reset.html" class="md-footer__link md-footer__link--prev" aria-label="Previous: Reset password router" rel="prev">
|
||||
<div class="md-footer__button md-icon">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
|
||||
</div>
|
||||
@@ -939,7 +940,8 @@
|
||||
</a>
|
||||
|
||||
|
||||
<a href="../verify/" class="md-footer__link md-footer__link--next" rel="next">
|
||||
|
||||
<a href="verify.html" class="md-footer__link md-footer__link--next" aria-label="Next: Verify router" rel="next">
|
||||
<div class="md-footer__title">
|
||||
<div class="md-ellipsis">
|
||||
<span class="md-footer__direction">
|
||||
@@ -974,10 +976,10 @@
|
||||
<div class="md-dialog" data-md-component="dialog">
|
||||
<div class="md-dialog__inner md-typeset"></div>
|
||||
</div>
|
||||
<script id="__config" type="application/json">{"base": "../../..", "features": [], "translations": {"clipboard.copy": "Copy to clipboard", "clipboard.copied": "Copied to clipboard", "search.config.lang": "en", "search.config.pipeline": "trimmer, stopWordFilter", "search.config.separator": "[\\s\\-]+", "search.placeholder": "Search", "search.result.placeholder": "Type to start searching", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.term.missing": "Missing"}, "search": "../../../assets/javascripts/workers/search.d351de03.min.js", "version": null}</script>
|
||||
<script id="__config" type="application/json">{"base": "../..", "features": [], "translations": {"clipboard.copy": "Copy to clipboard", "clipboard.copied": "Copied to clipboard", "search.config.lang": "en", "search.config.pipeline": "trimmer, stopWordFilter", "search.config.separator": "[\\s\\-]+", "search.placeholder": "Search", "search.result.placeholder": "Type to start searching", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.term.missing": "Missing", "select.version.title": "Select version"}, "search": "../../assets/javascripts/workers/search.b0710199.min.js", "version": null}</script>
|
||||
|
||||
|
||||
<script src="../../../assets/javascripts/bundle.a1609d9a.min.js"></script>
|
||||
<script src="../../assets/javascripts/bundle.76f349be.min.js"></script>
|
||||
|
||||
|
||||
</body>
|
||||
@@ -11,8 +11,8 @@
|
||||
|
||||
|
||||
|
||||
<link rel="icon" href="../../../favicon.png">
|
||||
<meta name="generator" content="mkdocs-1.1.2, mkdocs-material-7.1.5">
|
||||
<link rel="icon" href="../../favicon.png">
|
||||
<meta name="generator" content="mkdocs-1.2, mkdocs-material-7.1.7">
|
||||
|
||||
|
||||
|
||||
@@ -20,10 +20,10 @@
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../../../assets/stylesheets/main.bde7dde4.min.css">
|
||||
<link rel="stylesheet" href="../../assets/stylesheets/main.ca7ac06f.min.css">
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../../../assets/stylesheets/palette.ef6f36e2.min.css">
|
||||
<link rel="stylesheet" href="../../assets/stylesheets/palette.f1a3b89f.min.css">
|
||||
|
||||
|
||||
|
||||
@@ -55,7 +55,7 @@
|
||||
<body dir="ltr" data-md-color-scheme="default" data-md-color-primary="red" data-md-color-accent="red">
|
||||
|
||||
|
||||
<script>function __prefix(e){return new URL("../../..",location).pathname+"."+e}function __get(e,t=localStorage){return JSON.parse(t.getItem(__prefix(e)))}</script>
|
||||
<script>function __prefix(e){return new URL("../..",location).pathname+"."+e}function __get(e,t=localStorage){return JSON.parse(t.getItem(__prefix(e)))}</script>
|
||||
|
||||
<script>var palette=__get("__palette");if(null!==palette&&"object"==typeof palette.color)for(var key in palette.color)document.body.setAttribute("data-md-color-"+key,palette.color[key])</script>
|
||||
|
||||
@@ -76,7 +76,7 @@
|
||||
|
||||
<header class="md-header" data-md-component="header">
|
||||
<nav class="md-header__inner md-grid" aria-label="Header">
|
||||
<a href="../../.." title="FastAPI Users" class="md-header__button md-logo" aria-label="FastAPI Users" data-md-component="logo">
|
||||
<a href="../../index.html" title="FastAPI Users" class="md-header__button md-logo" aria-label="FastAPI Users" data-md-component="logo">
|
||||
|
||||
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M16.5 12A2.5 2.5 0 0 0 19 9.5 2.5 2.5 0 0 0 16.5 7 2.5 2.5 0 0 0 14 9.5a2.5 2.5 0 0 0 2.5 2.5M9 11a3 3 0 0 0 3-3 3 3 0 0 0-3-3 3 3 0 0 0-3 3 3 3 0 0 0 3 3m7.5 3c-1.83 0-5.5.92-5.5 2.75V19h11v-2.25c0-1.83-3.67-2.75-5.5-2.75M9 13c-2.33 0-7 1.17-7 3.5V19h7v-2.25c0-.85.33-2.34 2.37-3.47C10.5 13.1 9.66 13 9 13z"/></svg>
|
||||
@@ -106,7 +106,7 @@
|
||||
|
||||
|
||||
|
||||
<input class="md-option" data-md-color-media="" data-md-color-scheme="default" data-md-color-primary="red" data-md-color-accent="red" type="radio" name="__palette" id="__palette_1">
|
||||
<input class="md-option" data-md-color-media="" data-md-color-scheme="default" data-md-color-primary="red" data-md-color-accent="red" aria-label="Switch to dark mode" type="radio" name="__palette" id="__palette_1">
|
||||
|
||||
<label class="md-header__button md-icon" title="Switch to dark mode" for="__palette_2" hidden>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2a7 7 0 0 0-7 7c0 2.38 1.19 4.47 3 5.74V17a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1v-2.26c1.81-1.27 3-3.36 3-5.74a7 7 0 0 0-7-7M9 21a1 1 0 0 0 1 1h4a1 1 0 0 0 1-1v-1H9v1z"/></svg>
|
||||
@@ -115,7 +115,7 @@
|
||||
|
||||
|
||||
|
||||
<input class="md-option" data-md-color-media="" data-md-color-scheme="slate" data-md-color-primary="red" data-md-color-accent="red" type="radio" name="__palette" id="__palette_2">
|
||||
<input class="md-option" data-md-color-media="" data-md-color-scheme="slate" data-md-color-primary="red" data-md-color-accent="red" aria-label="Switch to light mode" type="radio" name="__palette" id="__palette_2">
|
||||
|
||||
<label class="md-header__button md-icon" title="Switch to light mode" for="__palette_1" hidden>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2a7 7 0 0 1 7 7c0 2.38-1.19 4.47-3 5.74V17a1 1 0 0 1-1 1H9a1 1 0 0 1-1-1v-2.26C6.19 13.47 5 11.38 5 9a7 7 0 0 1 7-7M9 21v-1h6v1a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-1m3-17a5 5 0 0 0-5 5c0 2.05 1.23 3.81 3 4.58V16h4v-2.42c1.77-.77 3-2.53 3-4.58a5 5 0 0 0-5-5z"/></svg>
|
||||
@@ -191,7 +191,7 @@
|
||||
|
||||
<nav class="md-nav md-nav--primary" aria-label="Navigation" data-md-level="0">
|
||||
<label class="md-nav__title" for="__drawer">
|
||||
<a href="../../.." title="FastAPI Users" class="md-nav__button md-logo" aria-label="FastAPI Users" data-md-component="logo">
|
||||
<a href="../../index.html" title="FastAPI Users" class="md-nav__button md-logo" aria-label="FastAPI Users" data-md-component="logo">
|
||||
|
||||
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M16.5 12A2.5 2.5 0 0 0 19 9.5 2.5 2.5 0 0 0 16.5 7 2.5 2.5 0 0 0 14 9.5a2.5 2.5 0 0 0 2.5 2.5M9 11a3 3 0 0 0 3-3 3 3 0 0 0-3-3 3 3 0 0 0-3 3 3 3 0 0 0 3 3m7.5 3c-1.83 0-5.5.92-5.5 2.75V19h11v-2.25c0-1.83-3.67-2.75-5.5-2.75M9 13c-2.33 0-7 1.17-7 3.5V19h7v-2.25c0-.85.33-2.34 2.37-3.47C10.5 13.1 9.66 13 9 13z"/></svg>
|
||||
@@ -223,7 +223,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../.." class="md-nav__link">
|
||||
<a href="../../index.html" class="md-nav__link">
|
||||
About
|
||||
</a>
|
||||
</li>
|
||||
@@ -238,7 +238,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../../installation/" class="md-nav__link">
|
||||
<a href="../../installation.html" class="md-nav__link">
|
||||
Installation
|
||||
</a>
|
||||
</li>
|
||||
@@ -276,7 +276,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../model/" class="md-nav__link">
|
||||
<a href="../model.html" class="md-nav__link">
|
||||
User model
|
||||
</a>
|
||||
</li>
|
||||
@@ -309,7 +309,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../databases/sqlalchemy/" class="md-nav__link">
|
||||
<a href="../databases/sqlalchemy.html" class="md-nav__link">
|
||||
SQLAlchemy
|
||||
</a>
|
||||
</li>
|
||||
@@ -321,7 +321,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../databases/mongodb/" class="md-nav__link">
|
||||
<a href="../databases/mongodb.html" class="md-nav__link">
|
||||
MongoDB
|
||||
</a>
|
||||
</li>
|
||||
@@ -333,7 +333,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../databases/tortoise/" class="md-nav__link">
|
||||
<a href="../databases/tortoise.html" class="md-nav__link">
|
||||
Tortoise ORM
|
||||
</a>
|
||||
</li>
|
||||
@@ -345,7 +345,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../databases/ormar/" class="md-nav__link">
|
||||
<a href="../databases/ormar.html" class="md-nav__link">
|
||||
Ormar
|
||||
</a>
|
||||
</li>
|
||||
@@ -384,7 +384,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../authentication/" class="md-nav__link">
|
||||
<a href="../authentication/index.html" class="md-nav__link">
|
||||
Introduction
|
||||
</a>
|
||||
</li>
|
||||
@@ -396,7 +396,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../authentication/jwt/" class="md-nav__link">
|
||||
<a href="../authentication/jwt.html" class="md-nav__link">
|
||||
JWT
|
||||
</a>
|
||||
</li>
|
||||
@@ -408,7 +408,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../authentication/cookie/" class="md-nav__link">
|
||||
<a href="../authentication/cookie.html" class="md-nav__link">
|
||||
Cookie
|
||||
</a>
|
||||
</li>
|
||||
@@ -449,7 +449,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../" class="md-nav__link">
|
||||
<a href="index.html" class="md-nav__link">
|
||||
Introduction
|
||||
</a>
|
||||
</li>
|
||||
@@ -461,7 +461,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../auth/" class="md-nav__link">
|
||||
<a href="auth.html" class="md-nav__link">
|
||||
Auth router
|
||||
</a>
|
||||
</li>
|
||||
@@ -473,7 +473,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../register/" class="md-nav__link">
|
||||
<a href="register.html" class="md-nav__link">
|
||||
Register routes
|
||||
</a>
|
||||
</li>
|
||||
@@ -485,7 +485,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../reset/" class="md-nav__link">
|
||||
<a href="reset.html" class="md-nav__link">
|
||||
Reset password router
|
||||
</a>
|
||||
</li>
|
||||
@@ -497,7 +497,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../users/" class="md-nav__link">
|
||||
<a href="users.html" class="md-nav__link">
|
||||
Users router
|
||||
</a>
|
||||
</li>
|
||||
@@ -523,7 +523,7 @@
|
||||
<span class="md-nav__icon md-icon"></span>
|
||||
</label>
|
||||
|
||||
<a href="./" class="md-nav__link md-nav__link--active">
|
||||
<a href="verify.html" class="md-nav__link md-nav__link--active">
|
||||
Verify router
|
||||
</a>
|
||||
|
||||
@@ -581,7 +581,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../password-validation/" class="md-nav__link">
|
||||
<a href="../password-validation.html" class="md-nav__link">
|
||||
Password validation
|
||||
</a>
|
||||
</li>
|
||||
@@ -593,7 +593,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../full-example/" class="md-nav__link">
|
||||
<a href="../full-example.html" class="md-nav__link">
|
||||
Full example
|
||||
</a>
|
||||
</li>
|
||||
@@ -605,7 +605,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../oauth/" class="md-nav__link">
|
||||
<a href="../oauth.html" class="md-nav__link">
|
||||
OAuth2
|
||||
</a>
|
||||
</li>
|
||||
@@ -647,7 +647,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../../usage/flow/" class="md-nav__link">
|
||||
<a href="../../usage/flow.html" class="md-nav__link">
|
||||
Flow
|
||||
</a>
|
||||
</li>
|
||||
@@ -659,7 +659,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../../usage/routes/" class="md-nav__link">
|
||||
<a href="../../usage/routes.html" class="md-nav__link">
|
||||
Routes
|
||||
</a>
|
||||
</li>
|
||||
@@ -671,7 +671,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../../usage/dependency-callables/" class="md-nav__link">
|
||||
<a href="../../usage/dependency-callables.html" class="md-nav__link">
|
||||
Dependency callables
|
||||
</a>
|
||||
</li>
|
||||
@@ -683,7 +683,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../../usage/helpers/" class="md-nav__link">
|
||||
<a href="../../usage/helpers.html" class="md-nav__link">
|
||||
Helpers
|
||||
</a>
|
||||
</li>
|
||||
@@ -725,7 +725,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../../migration/08_to_1x/" class="md-nav__link">
|
||||
<a href="../../migration/08_to_1x.html" class="md-nav__link">
|
||||
0.8.x ➡️ 1.x.x
|
||||
</a>
|
||||
</li>
|
||||
@@ -737,7 +737,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../../migration/1x_to_2x/" class="md-nav__link">
|
||||
<a href="../../migration/1x_to_2x.html" class="md-nav__link">
|
||||
1.x.x ➡️ 2.x.x
|
||||
</a>
|
||||
</li>
|
||||
@@ -749,7 +749,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../../migration/2x_to_3x/" class="md-nav__link">
|
||||
<a href="../../migration/2x_to_3x.html" class="md-nav__link">
|
||||
2.x.x ➡️ 3.x.x
|
||||
</a>
|
||||
</li>
|
||||
@@ -761,7 +761,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../../migration/3x_to_4x/" class="md-nav__link">
|
||||
<a href="../../migration/3x_to_4x.html" class="md-nav__link">
|
||||
3.x.x ➡️ 4.x.x
|
||||
</a>
|
||||
</li>
|
||||
@@ -773,7 +773,7 @@
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../../migration/4x_to_5x/" class="md-nav__link">
|
||||
<a href="../../migration/4x_to_5x.html" class="md-nav__link">
|
||||
4.x.x ➡️ 5.x.x
|
||||
</a>
|
||||
</li>
|
||||
@@ -846,7 +846,7 @@
|
||||
|
||||
|
||||
<h1 id="verify-router">Verify router<a class="headerlink" href="#verify-router" title="Permanent link">¶</a></h1>
|
||||
<p>This router provides routes to manage user email verification. Check the <a href="../../../usage/routes/">routes usage</a> to learn how to use them.</p>
|
||||
<p>This router provides routes to manage user email verification. Check the <a href="../../usage/routes.html">routes usage</a> to learn how to use them.</p>
|
||||
<div class="admonition success">
|
||||
<p class="admonition-title">👏👏👏</p>
|
||||
<p>A big thank you to <a href="https://github.com/eddsalkield">Edd Salkield</a> and <a href="https://github.com/mark-todd">Mark Todd</a> who worked hard on this feature!</p>
|
||||
@@ -933,7 +933,8 @@
|
||||
|
||||
<nav class="md-footer__inner md-grid" aria-label="Footer">
|
||||
|
||||
<a href="../users/" class="md-footer__link md-footer__link--prev" rel="prev">
|
||||
|
||||
<a href="users.html" class="md-footer__link md-footer__link--prev" aria-label="Previous: Users router" rel="prev">
|
||||
<div class="md-footer__button md-icon">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
|
||||
</div>
|
||||
@@ -948,7 +949,8 @@
|
||||
</a>
|
||||
|
||||
|
||||
<a href="../../password-validation/" class="md-footer__link md-footer__link--next" rel="next">
|
||||
|
||||
<a href="../password-validation.html" class="md-footer__link md-footer__link--next" aria-label="Next: Password validation" rel="next">
|
||||
<div class="md-footer__title">
|
||||
<div class="md-ellipsis">
|
||||
<span class="md-footer__direction">
|
||||
@@ -983,10 +985,10 @@
|
||||
<div class="md-dialog" data-md-component="dialog">
|
||||
<div class="md-dialog__inner md-typeset"></div>
|
||||
</div>
|
||||
<script id="__config" type="application/json">{"base": "../../..", "features": [], "translations": {"clipboard.copy": "Copy to clipboard", "clipboard.copied": "Copied to clipboard", "search.config.lang": "en", "search.config.pipeline": "trimmer, stopWordFilter", "search.config.separator": "[\\s\\-]+", "search.placeholder": "Search", "search.result.placeholder": "Type to start searching", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.term.missing": "Missing"}, "search": "../../../assets/javascripts/workers/search.d351de03.min.js", "version": null}</script>
|
||||
<script id="__config" type="application/json">{"base": "../..", "features": [], "translations": {"clipboard.copy": "Copy to clipboard", "clipboard.copied": "Copied to clipboard", "search.config.lang": "en", "search.config.pipeline": "trimmer, stopWordFilter", "search.config.separator": "[\\s\\-]+", "search.placeholder": "Search", "search.result.placeholder": "Type to start searching", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.term.missing": "Missing", "select.version.title": "Select version"}, "search": "../../assets/javascripts/workers/search.b0710199.min.js", "version": null}</script>
|
||||
|
||||
|
||||
<script src="../../../assets/javascripts/bundle.a1609d9a.min.js"></script>
|
||||
<script src="../../assets/javascripts/bundle.76f349be.min.js"></script>
|
||||
|
||||
|
||||
</body>
|
||||
Reference in New Issue
Block a user