-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add BaseAuthClient to separate methods
Introduce a new base class for the Auth client hierarchy in order to split the developer API methods from the previously existing "base" methods. The important exception is `get_identities`, which supports client credentials authorization and therefore needs to stay on the base. The changelog explains this change without drawing undue attention to the ways in which it could, in theory, be compatibility breaking for users relying on the inheritance relationship (e.g. via `isinstance` or type annotations). No new tests are added and no tests are broken by this change.
- Loading branch information
Showing
11 changed files
with
681 additions
and
617 deletions.
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
changelog.d/20230718_140424_sirosen_separate_auth_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,14 @@ | ||
Changed | ||
~~~~~~~ | ||
|
||
- The inheritance hierarchy for Globus Auth client classes has changed. (:pr:`NUMBER`) | ||
|
||
- A new class, ``BaseAuthClient`` is used as the base for the other three | ||
existing Globus Auth clients | ||
|
||
- ``NativeAppAuthClient`` and ``ConfidentialAppAuthClient`` inherit from | ||
``BaseAuthClient``, not ``AuthClient`` | ||
|
||
- ``NativeAppAuthClient`` and ``ConfidentialAppAuthClient`` have lost methods | ||
which would never work in practice for these client types, e.g. | ||
``create_project`` |
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
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,10 @@ | ||
from .base import AuthClient | ||
from .base import AuthClient, BaseAuthClient | ||
from .confidential_client import ConfidentialAppAuthClient | ||
from .native_client import NativeAppAuthClient | ||
|
||
__all__ = ["AuthClient", "NativeAppAuthClient", "ConfidentialAppAuthClient"] | ||
__all__ = [ | ||
"BaseAuthClient", | ||
"AuthClient", | ||
"NativeAppAuthClient", | ||
"ConfidentialAppAuthClient", | ||
] |
Oops, something went wrong.