Commit Graph

546 Commits

Author SHA1 Message Date
François Voron
92ef295cde Add typecheck to build steps 2022-02-18 11:10:10 +01:00
François Voron
e79b34ed35 Fix #922: allow DependencyCallable type to be generators 2022-02-18 11:04:56 +01:00
François Voron
ac0b16f8d7 Bump dependencies 2022-02-18 11:01:43 +01:00
allcontributors[bot]
e6911cd55f docs: add gaganpreet as a contributor for code (#919)
* 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-02-11 08:08:17 +01:00
Gaganpreet
04e432acad Unique names for routes (#916) 2022-02-11 08:07:45 +01:00
François Voron
29cfe8ae5e Bump version: 9.2.3 → 9.2.4 v9.2.4 2022-02-07 08:57:19 +01:00
François Voron
63b96a42c3 Use new Flit style metadata 2022-02-07 08:54:40 +01:00
François Voron
396324b5ac Move config to pyproject.toml 2022-02-07 08:49:31 +01:00
François Voron
020cb041d3 Fix #904: Wrong model config in MongoDB OAuth example 2022-02-07 08:39:20 +01:00
allcontributors[bot]
ef6a23407d docs: add mekanix as a contributor for platform (#907)
* 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-02-07 08:36:07 +01:00
Goran Mekić
5ed4538e32 Generate setup.py file (#896) 2022-02-07 08:34:50 +01:00
allcontributors[bot]
09300fd691 docs: add lthurner as a contributor for doc (#902)
* 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-02-02 14:50:39 +01:00
Leon Thurner
913af971fe Fix wrong import in MongoDB strategy example (#901) 2022-02-02 14:50:27 +01:00
François Voron
e3923d14b9 Bump version: 9.2.2 → 9.2.3 v9.2.3 2022-02-01 09:29:58 +01:00
François Voron
9b1f9bbd0f Fix SQLAlchemy examples 2022-02-01 09:25:44 +01:00
François Voron
5f3d4fa044 Update unit tests running instructions 2022-02-01 08:56:38 +01:00
François Voron
d9c76500f2 Bump dependencies 2022-02-01 08:56:03 +01:00
François Voron
0583d7c88e Bump version: 9.2.1 → 9.2.2 v9.2.2 2022-01-15 11:22:59 +01:00
François Voron
533504634f Improve dependencies typing 2022-01-15 11:08:49 +01:00
allcontributors[bot]
c43303c386 docs: add Ae-Mc as a contributor for code, bug (#867)
* 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-15 10:51:20 +01:00
Alexandr Makurin
e6125905e0 Fix #865 (#866)
* Fix #865

* Add # pragma: no cover to all try blocks

* Fix same issue with root module
2022-01-15 10:50:06 +01:00
François Voron
0a8661b762 Bump version: 9.2.0 → 9.2.1 v9.2.1 2022-01-10 12:58:48 +01:00
Hazedd
7138143923 Patch 2 (#855)
* logout response sets proper response headers

logout response is using starlette delete cookie. In starlette the samesite and secure attributes are not in the header but are needed to set the removed cookie client side. Implementing set_cookie with an empty cookie-value and a max_age of 0 will set a new expired cookie by the client.

related issue #846

* fixed linting

Co-authored-by: Pentem <martijn.pentenga@movares.nl>
2022-01-10 09:05:36 +01:00
François Voron
e9112ed707 Bump dependencies 2022-01-09 10:16:32 +01:00
Hazedd
de97d6597a UserTable relation table name correction (#849)
OAuthAccount should be correct table name SQLAlchemyBaseOAuthAccountTable
2022-01-09 10:08:54 +01:00
allcontributors[bot]
a55ed2581e docs: add luisroel91 as a contributor for financial (#852)
* 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-09 10:04:27 +01:00
allcontributors[bot]
ef8d9c2cc0 docs: add Hazedd as a contributor for bug, doc (#850)
* 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-09 10:02:17 +01:00
François Voron
8b865f7609 Fix create user programmatically cookbook 2022-01-07 10:31:52 +01:00
François Voron
89daead99b Fix #843: remove connect_args on examples 2022-01-06 10:19:05 +01:00
François Voron
99f081532c Fix #842: remove Database reference from SQLAlchemy app.py 2022-01-05 13:30:36 +01:00
François Voron
896813d278 Bump version: 9.1.1 → 9.2.0 v9.2.0 2022-01-04 16:03:47 +01:00
François Voron
b3639b8a84 Update README 2022-01-04 16:03:32 +01:00
François Voron
d937c4e05b Update doc for SQLALchemy2 adapter 2022-01-04 16:01:14 +01:00
allcontributors[bot]
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
David Brochart
79557eead4 Allow lifetime_seconds=None (#835) 2022-01-03 12:05:55 +01:00
François Voron
d469bace6e Bump version: 9.1.0 → 9.1.1 v9.1.1 2022-01-03 11:29:05 +01:00
François Voron
c1083f77b5 Update documentation for DB strategy and fix DB dependencies versions 2022-01-03 11:26:14 +01:00
François Voron
1ede89933a Revert "Enable Argon2 for password hashing"
This reverts commit 123328c559.
2022-01-03 10:37:15 +01:00
François Voron
123328c559 Enable Argon2 for password hashing 2021-12-31 16:05:00 +01:00
François Voron
96a086c60f Bump version: 9.0.1 → 9.1.0 v9.1.0 2021-12-31 14:44:07 +01:00
François Voron
53271a32c5 Implement database strategy (#833)
* Implement database strategy

* Export generic AccessToken type

* Apply formatting
2021-12-31 14:43:39 +01:00
François Voron
223253d86c Bump version: 9.0.0 → 9.0.1 v9.0.1 2021-12-30 15:47:37 +01:00
François Voron
dc15309b09 Fix ImportError when redis optional dependency not installed 2021-12-30 15:47:31 +01:00
François Voron
925dad5207 Bump version: 8.1.4 → 9.0.0 v9.0.0 2021-12-30 15:25:51 +01:00
François Voron
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
François Voron
72ab480aba Bump version: 8.1.3 → 8.1.4 v8.1.4 2021-12-29 13:25:42 +01:00
Matyáš Richter
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
François Voron
e0ae193848 Bump version: 8.1.2 → 8.1.3 v8.1.3 2021-12-07 15:04:27 +01:00
Matyáš Richter
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
Yasser Tahiri
1f5ce51df2 chore: Add FastAPI to Classifiers (#804) 2021-11-23 08:25:29 +01:00