-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor LoginFlowManager interactions with GlobusApp (#1018)
- Loading branch information
1 parent
def3f0f
commit 79f6b84
Showing
13 changed files
with
344 additions
and
118 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
include src/globus_sdk/experimental/html_files/* | ||
include src/globus_sdk/experimental/login_flow_manager/local_server_login_flow_manager/html_files/* |
29 changes: 29 additions & 0 deletions
29
changelog.d/20240730_020618_derek_refactor_login_flow_manager_interactions.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,29 @@ | ||
|
||
Changed | ||
~~~~~~~ | ||
|
||
- Changed the experimental ``GlobusApp`` class in the following ways (:pr:`NUMBER`): | ||
|
||
- ``LoginFlowManagers`` now insert ``GlobusApp.app_name`` into any native | ||
client login flows as the ``prefill_named_grant``. | ||
|
||
- ``GlobusAppConfig`` now accepts a ``login_redirect_uri`` parameter to specify | ||
the redirect URI for a login flow. | ||
|
||
- Invalid when used with a ``LocalServerLoginFlowManager``. | ||
|
||
- Defaults to ``"https://auth.globus.org/v2/web/auth-code"`` for native | ||
client flows. Raises an error if not set for confidential ones. | ||
|
||
- ``UserApp`` now allows for the use of confidential client flows with the use of | ||
either a ``LocalServerLoginFlowManager`` or a configured ``login_redirect_uri``. | ||
|
||
- ``GlobusAppConfig.login_flow_manager`` now accepts shorthand string references | ||
``"command-line"`` to use a ``CommandLineLoginFlowManager`` and | ||
``"local-server"`` to use a ``LocalServerLoginFlowManager``. | ||
|
||
- ``GlobusAppConfig.login_flow_manager`` also now accepts a | ||
``LoginFlowManagerProvider``, a class with a | ||
``for_globus_app(...) -> LoginFlowManager`` class method. | ||
|
||
|
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
5 changes: 5 additions & 0 deletions
5
src/globus_sdk/experimental/login_flow_manager/local_server_login_flow_manager/__init__.py
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 @@ | ||
from .local_server_login_flow_manager import LocalServerLoginFlowManager | ||
|
||
__all__ = [ | ||
"LocalServerLoginFlowManager", | ||
] |
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
File renamed without changes.
File renamed without changes.
Oops, something went wrong.