-
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.
GlobusApp login, logout, and login_required (#1041)
- Loading branch information
1 parent
028e502
commit ca3bb36
Showing
9 changed files
with
199 additions
and
39 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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
|
||
Added | ||
~~~~~ | ||
|
||
- Added ``login(...)``, ``logout(...)``, and ``login_required(...)`` to the | ||
experimental ``GlobusApp`` construct. (:pr:`NUMBER`) | ||
|
||
- ``login(...)`` initiates a login flow if: | ||
|
||
- the current entity requires a login to satisfy local scope requirements or | ||
- ``auth_params``/``force=True`` is passed to the method. | ||
|
||
- ``logout(...)`` remove and revokes the current entity's app-associated tokens. | ||
|
||
- ``login_required(...)`` returns a boolean indicating whether the app believes | ||
a login is required to satisfy local scope requirements. | ||
|
||
Removed | ||
~~~~~~~ | ||
|
||
- Made ``run_login_flow`` private in the experimental ``GlobusApp`` construct. | ||
Usage sites should be replaced with either ``app.login()`` or | ||
``app.login(force=True)``. (:pr:`NUMBER`) | ||
|
||
- **Old Usage** | ||
|
||
.. code-block:: python | ||
app = UserApp("my-app", client_id="<my-client-id>") | ||
app.run_login_flow() | ||
- **New Usage** | ||
|
||
.. code-block:: python | ||
app = UserApp("my-app", client_id="<my-client-id>") | ||
app.login(force=True) |
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
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