-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #32 from djpugh/feature/refactor
- Loading branch information
Showing
66 changed files
with
1,598 additions
and
1,068 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
API Deprecations | ||
**************** | ||
|
||
``0.2.0``: | ||
|
||
Refactoring towards a more extensible structure for the Authentication Backend | ||
* :class:`fastapi_aad_auth.oauth.state.AuthenticationState` - replaced by :class:`fastapi_aad_auth._base.state.AuthenticationState` | ||
* :class:`fastapi_aad_auth.oauth.aad.AADOAuthBackend` - replaced by :class:`fastapi_aad_auth.providers.aad.AADProvider` | ||
* :py:attr:`fastapi_aad_auth.config.RoutingConfig.login_path` - replaced by provider based usage of :py:attr:`fastapi_aad_auth.config.RoutingConfig.oauth_base_route`, see :ref:`config-aad-appreg` for how to configure the app registration | ||
* :py:attr:`fastapi_aad_auth.config.RoutingConfig.login_redirect_path` - replaced by provider based usage of :py:attr:`fastapi_aad_auth.config.RoutingConfig.oauth_base_route`, see :ref:`config-aad-appreg` for how to configure the app registration | ||
* :py:attr:`fastapi_aad_auth.config.Config.aad` - replaced by providers in :py:attr:`fastapi_aad_auth.config.Config.providers` | ||
* :class:`fastapi_aad_auth.auth.AADAuth` - replaced by :class:`fastapi_aad_auth.auth.Authenticator` | ||
* :py:meth:`fastapi_aad_auth.auth.AADAuth.api_auth_scheme` - replaced by :py:meth:`fastapi_aad_auth._base.backend.BaseOAuthBackend.requires_auth` (includes ``allow_session`` boolean flag) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
docs/source/module/fastapi_aad_auth._base.authenticators.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
fastapi_aad_auth._base.authenticators | ||
************************************* | ||
|
||
.. automodule:: fastapi_aad_auth._base.authenticators | ||
|
||
.. toctree:: | ||
:caption: Sub-modules: | ||
:maxdepth: 1 | ||
|
||
fastapi_aad_auth._base.authenticators.session |
5 changes: 5 additions & 0 deletions
5
docs/source/module/fastapi_aad_auth._base.authenticators.session.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
fastapi_aad_auth._base.authenticators.session | ||
********************************************* | ||
|
||
.. automodule:: fastapi_aad_auth._base.authenticators.session | ||
:members: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
fastapi_aad_auth._base.backend | ||
****************************** | ||
|
||
.. automodule:: fastapi_aad_auth._base.backend | ||
:members: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
fastapi_aad_auth._base.provider | ||
******************************* | ||
|
||
.. automodule:: fastapi_aad_auth._base.provider | ||
:members: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
fastapi_aad_auth._base | ||
********************** | ||
|
||
.. automodule:: fastapi_aad_auth._base | ||
|
||
.. toctree:: | ||
:caption: Sub-modules: | ||
:maxdepth: 1 | ||
|
||
fastapi_aad_auth._base.backend | ||
fastapi_aad_auth._base.provider | ||
fastapi_aad_auth._base.authenticators | ||
fastapi_aad_auth._base.state | ||
fastapi_aad_auth._base.validators |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
fastapi_aad_auth._base.state | ||
**************************** | ||
|
||
.. automodule:: fastapi_aad_auth._base.state | ||
:members: |
5 changes: 5 additions & 0 deletions
5
docs/source/module/fastapi_aad_auth._base.validators.base.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
fastapi_aad_auth._base.validators.base | ||
************************************** | ||
|
||
.. automodule:: fastapi_aad_auth._base.validators.base | ||
:members: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
fastapi_aad_auth._base.validators | ||
********************************* | ||
|
||
.. automodule:: fastapi_aad_auth._base.validators | ||
|
||
.. toctree:: | ||
:caption: Sub-modules: | ||
:maxdepth: 1 | ||
|
||
fastapi_aad_auth._base.validators.base | ||
fastapi_aad_auth._base.validators.session | ||
fastapi_aad_auth._base.validators.token |
5 changes: 5 additions & 0 deletions
5
docs/source/module/fastapi_aad_auth._base.validators.session.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
fastapi_aad_auth._base.validators.session | ||
***************************************** | ||
|
||
.. automodule:: fastapi_aad_auth._base.validators.session | ||
:members: |
5 changes: 5 additions & 0 deletions
5
docs/source/module/fastapi_aad_auth._base.validators.token.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
fastapi_aad_auth._base.validators.token | ||
*************************************** | ||
|
||
.. automodule:: fastapi_aad_auth._base.validators.token | ||
:members: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
fastapi_aad_auth.mixins.logging | ||
******************************* | ||
|
||
.. automodule:: fastapi_aad_auth.mixins.logging | ||
:members: |
5 changes: 5 additions & 0 deletions
5
docs/source/module/fastapi_aad_auth.mixins.not_authenticated.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
fastapi_aad_auth.mixins.not_authenticated | ||
***************************************** | ||
|
||
.. automodule:: fastapi_aad_auth.mixins.not_authenticated | ||
:members: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
fastapi_aad_auth.mixins | ||
*********************** | ||
|
||
.. automodule:: fastapi_aad_auth.mixins | ||
:members: | ||
|
||
.. toctree:: | ||
:caption: Sub-modules: | ||
:maxdepth: 1 | ||
|
||
fastapi_aad_auth.mixins.logging | ||
fastapi_aad_auth.mixins.not_authenticated |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
fastapi_aad_auth.oauth.aad | ||
************************** | ||
|
||
.. automodule:: fastapi_aad_auth.oauth.aad | ||
:members: | ||
:members: |
10 changes: 0 additions & 10 deletions
10
docs/source/module/fastapi_aad_auth.oauth.authenticators.rst
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
docs/source/module/fastapi_aad_auth.oauth.authenticators.session.rst
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
fastapi_aad_auth.oauth.state | ||
**************************** | ||
|
||
.. automodule:: fastapi_aad_auth.oauth.state | ||
:members: | ||
:members: |
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
docs/source/module/fastapi_aad_auth.oauth.validators.session.rst
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
docs/source/module/fastapi_aad_auth.oauth.validators.token.rst
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
fastapi_aad_auth.providers.aad | ||
****************************** | ||
|
||
.. automodule:: fastapi_aad_auth.providers.aad | ||
:members: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
fastapi_aad_auth.providers | ||
************************** | ||
|
||
.. automodule:: fastapi_aad_auth.providers | ||
:members: | ||
|
||
.. toctree:: | ||
:caption: Sub-modules: | ||
:maxdepth: 1 | ||
|
||
fastapi_aad_auth.providers.aad |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
fastapi_aad_auth.utilities.logging | ||
********************************** | ||
|
||
.. automodule:: fastapi_aad_auth.utilities.logging | ||
:members: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
fastapi_aad_auth.utilities | ||
************************** | ||
|
||
.. automodule:: fastapi_aad_auth.utilities | ||
:members: | ||
|
||
.. toctree:: | ||
:caption: Sub-modules: | ||
:maxdepth: 1 | ||
|
||
fastapi_aad_auth.utilities.logging | ||
fastapi_aad_auth.utilities.urls |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
fastapi_aad_auth.utilities.urls | ||
******************************* | ||
|
||
.. automodule:: fastapi_aad_auth.utilities.urls | ||
:members: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
from fastapi_aad_auth.auth import AADAuth # noqa F401 | ||
from fastapi_aad_auth.auth import Authenticator # noqa F401 | ||
from fastapi_aad_auth.config import Config # noqa F401 | ||
from fastapi_aad_auth.oauth import AuthenticationState # noqa F401 | ||
from ._version import get_versions | ||
from fastapi_aad_auth._base.state import AuthenticationState # noqa F401 | ||
from fastapi_aad_auth._version import get_versions | ||
|
||
__version__ = get_versions()['version'] | ||
del get_versions |
Empty file.
Oops, something went wrong.