515 Commits

Author SHA1 Message Date
b3639b8a84 Update README 2022-01-04 16:03:32 +01:00
d937c4e05b Update doc for SQLALchemy2 adapter 2022-01-04 16:01:14 +01:00
c96453df93 docs: add davidbrochart as a contributor for code (#836)
* docs: update README.md [skip ci]

* docs: update .all-contributorsrc [skip ci]

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2022-01-03 14:45:10 +01:00
79557eead4 Allow lifetime_seconds=None (#835) 2022-01-03 12:05:55 +01:00
d469bace6e Bump version: 9.1.0 → 9.1.1 v9.1.1 2022-01-03 11:29:05 +01:00
c1083f77b5 Update documentation for DB strategy and fix DB dependencies versions 2022-01-03 11:26:14 +01:00
1ede89933a Revert "Enable Argon2 for password hashing"
This reverts commit 123328c559184e308774e241b3944c1a06e429ba.
2022-01-03 10:37:15 +01:00
123328c559 Enable Argon2 for password hashing 2021-12-31 16:05:00 +01:00
96a086c60f Bump version: 9.0.1 → 9.1.0 v9.1.0 2021-12-31 14:44:07 +01:00
53271a32c5 Implement database strategy (#833)
* Implement database strategy

* Export generic AccessToken type

* Apply formatting
2021-12-31 14:43:39 +01:00
223253d86c Bump version: 9.0.0 → 9.0.1 v9.0.1 2021-12-30 15:47:37 +01:00
dc15309b09 Fix ImportError when redis optional dependency not installed 2021-12-30 15:47:31 +01:00
925dad5207 Bump version: 8.1.4 → 9.0.0 v9.0.0 2021-12-30 15:25:51 +01:00
c4de66b81c Revamp authentication (#831)
* Implement Transport classes

* Implement authentication strategy classes

* Revamp authentication with Transport and Strategy

* Revamp strategy and OAuth so that they can use a callable dependency

* Update docstring

* Make ErrorCode a proper Enum and cleanup unused OpenAPI utils

* Remove useless check

* Tweak typing in authenticator

* Update docs

* Improve logout/destroy token logic

* Update docs

* Update docs

* Update docs and full examples

* Apply formatting to examples

* Update OAuth doc and examples

* Add migration doc

* Implement Redis session token

* Add Redis Session documentation

* RedisSession -> Redis

* Fix links in docs
2021-12-30 15:22:07 +01:00
72ab480aba Bump version: 8.1.3 → 8.1.4 v8.1.4 2021-12-29 13:25:42 +01:00
2e8f1f2eb2 Fixed #823 (#824)
* Added a failing test for the multi-oauth-router issue

* Fixed the #823 regression.

Using a regex for the backend name validation instead of an enum.

* Fixed formatting errors

* Moved the `AuthenticationBackendName` enum to `Authenticator`

This prevents an issue with OpenAPI schema generation caused by two
endpoints accepting a parameter with a duplicate name.
2021-12-29 13:25:15 +01:00
e0ae193848 Bump version: 8.1.2 → 8.1.3 v8.1.3 2021-12-07 15:04:27 +01:00
c759bb6915 Extending generated OpenAPI docs (#799)
* Added login endpoint docs

* make format

* Changed login route into multiple examples.

* Added reset password router docs

* Updated /{id} routes for user

* Updated /me routes

* Fixed user already exists response description

* Updated the /register route

* Updated verify routes

* Updated oauth2 endpoints.

* Applied `make format`

* Renamed Authentication methods for getting their openapi schemas

- `get_login_responses_success` -> `get_openapi_login_responses_success`
- `get_logout_responses_success` -> `get_openapi_logout_responses_success`

* Fixed flake8 errors

* Not using `Final` to keep python37 compatibility

Co-authored-by: François Voron <fvoron@gmail.com>
2021-11-23 13:13:51 +01:00
1f5ce51df2 chore: Add FastAPI to Classifiers (#804) 2021-11-23 08:25:29 +01:00
48d1be87a4 Added codestyle check and lint to the build action (#798)
* Applied `make format`

* Added format-check to makefile

* Added a "Check codestyle" step to the build action.

* Rerun `make format`

* Added a "lint" target to makefile

* Added lint step to the build action

* Added W503 to the list of ignored flake8 errors.

See https://www.flake8rules.com/rules/W503.html
2021-11-23 08:13:11 +01:00
0f68923b8b docs: add matyasrichter as a contributor for code (#797)
* docs: update README.md [skip ci]

* docs: update .all-contributorsrc [skip ci]

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2021-11-10 07:56:51 +01:00
f578a01a8b Updated OAuth2 router generator for better OpenAPI docs (#793)
* Added OAuth2 authorize route response_model

* Changed OAuth2 "authorize" route backend param type.

On OAuth2 router creation, an enum is created for the `authentication_backend` parameter. This allows us to generate OpenAPI docs correctly.

* Reformatted with "make format"

* Updated OAuth2 authorize url docs

- /authorize now returns 422 instead of 400 for an invalid authentication backend
2021-11-10 07:55:40 +01:00
4aef8f8a17 docs: add eltociear as a contributor for code (#792)
* docs: update README.md [skip ci]

* docs: update .all-contributorsrc [skip ci]

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2021-11-07 13:25:47 +01:00
4d28d7d6ba Fix typo in manager.py (#791)
successfull -> successful
2021-11-07 13:24:51 +01:00
9d064a5325 Bump version: 8.1.1 → 8.1.2 v8.1.2 2021-11-07 11:33:39 +01:00
b80061bbc4 Fix #788: add cookbook to create user programmatically 2021-11-07 11:32:22 +01:00
6ed1a5ccdb Change examples so every dependencies are async 2021-11-07 11:21:24 +01:00
c1a0dd5476 Fix broken links in documentation 2021-11-07 10:47:40 +01:00
91be9747f0 Add Python 3.10 to build matrix 2021-11-07 10:32:06 +01:00
8ce7855e50 Bump dependencies 2021-11-07 10:31:34 +01:00
bef4cf0442 docs: add jakemanger as a contributor for bug, code (#790)
* docs: update README.md [skip ci]

* docs: update .all-contributorsrc [skip ci]

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2021-11-07 10:05:06 +01:00
9eb49482c7 Users now become unverified when email is changed (#783)
* Users now become unverified when email is changed

Occurs when updating user.email to a new value

* changed wording
2021-11-07 10:04:06 +01:00
981e02b738 Update Buy Me A Coffee button 2021-11-02 08:29:30 +01:00
c5fd4578a6 docs: add justb4 as a contributor for financial (#782)
* docs: update README.md [skip ci]

* docs: update .all-contributorsrc [skip ci]

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2021-11-02 08:26:26 +01:00
f4818ee18a docs: add PovilasKud as a contributor for code (#780)
* docs: update README.md [skip ci]

* docs: update .all-contributorsrc [skip ci]

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2021-11-02 08:13:48 +01:00
1e40104ed5 Remove duplicate (#777)
Remove duplicate `user_db_model`
2021-11-02 08:13:24 +01:00
ce2345f2b0 docs: add BrandonGoding as a contributor for code (#779)
* docs: update README.md [skip ci]

* docs: update .all-contributorsrc [skip ci]

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2021-11-02 08:13:07 +01:00
0c45cbc179 Add a name on every route #762 (#774)
* Names for urls added

* Tests for Login/Logout Names

* Register Name Test

* tests/test_router_reset.py

* Tests to verify url names in users router

* Test Verify Router Names

* oauth routes updated with prefix

* Test for authorize.  Didn't right test for callback as covered under other tests
2021-11-02 08:12:43 +01:00
e0e8dfbc3b docs: add yezz123 as a contributor for code (#772)
* docs: update README.md [skip ci]

* docs: update .all-contributorsrc [skip ci]

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2021-10-16 09:36:52 +02:00
2068215b4b docs: add jdukewich as a contributor for doc (#770)
* docs: update README.md [skip ci]

* docs: update .all-contributorsrc [skip ci]

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2021-10-16 09:30:09 +02:00
872b85de03 Code Expression (#1) (#767)
* Replace unused `for` index with underscore

* Use `items()` to directly unpack dictionary values

* Merge duplicate blocks in conditional

* Use `any()` instead of for loop

* Format __init__.py
2021-10-16 09:29:34 +02:00
843b197875 Reflect correct UserManager handlers in docs (#768) 2021-10-16 09:25:53 +02:00
057cf48fe1 Bump version: 8.1.0 → 8.1.1 v8.1.1 2021-10-11 08:16:48 +02:00
702ad6be59 Bump dependencies 2021-10-11 08:14:16 +02:00
fbb934f21b docs: add scottdavort as a contributor for financial (#759)
* docs: update README.md [skip ci]

* docs: update .all-contributorsrc [skip ci]

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2021-10-08 08:33:38 +02:00
349e801ff8 docs: add maximka1221 as a contributor for doc, bug (#744)
* docs: update README.md [skip ci]

* docs: update .all-contributorsrc [skip ci]

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2021-09-23 14:30:50 +02:00
31bbb3902b Merge pull request #741 from maximka1221/custom-jwt-token-audience-and-docs
Fix UserManager docs and custom token audience in password reset
2021-09-23 14:30:06 +02:00
d0c295e411 Fixed user manager function docs. 2021-09-23 13:00:20 +03:00
b33371542f Fixed bug with custom reset token audience.
When adding a custom reset token audience, we still use the default one in the creation of the JWT token instead of the custom one.
2021-09-23 12:54:13 +03:00
0826ec5299 Bump version: 8.0.0 → 8.1.0 v8.1.0 2021-09-21 08:35:06 +02:00