Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Globus app #986

Merged
merged 6 commits into from
Jun 26, 2024
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions changelog.d/20240528_140823_aaschaer_globus_app.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Added
~~~~~

- Added ``GlobusApp`` to experimental along with ``UserApp`` and ``ClientApp`` that
implement it and ``GlobusAppConfig`` that allows configuring behavior (:pr:`NUMBER`)
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,20 @@
"access_token": _token,
"scope": _scope,
},
)
),
openid=RegisteredResponse(
service="auth",
path="/v2/oauth2/token",
method="POST",
status=200,
json={
"access_token": "auth_access_token",
"scope": "openid",
"expires_in": 172800,
"token_type": "Bearer",
"resource_server": "auth.globus.org",
"id_token": "openid_token",
"other_tokens": [],
},
),
)
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,19 @@
status=401,
json={"error": "invalid_grant"},
),
openid=RegisteredResponse(
service="auth",
path="/v2/oauth2/token",
method="POST",
status=200,
json={
"access_token": "auth_access_token",
"scope": "openid",
"expires_in": 172800,
"token_type": "Bearer",
"resource_server": "auth.globus.org",
"id_token": "openid_token",
"other_tokens": [],
},
),
)
5 changes: 5 additions & 0 deletions src/globus_sdk/experimental/globus_app/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,16 @@
ClientCredentialsAuthorizerFactory,
RefreshTokenAuthorizerFactory,
)
from .globus_app import ClientApp, GlobusApp, GlobusAppConfig, UserApp

__all__ = [
"ValidatingTokenStorage",
"AuthorizerFactory",
"AccessTokenAuthorizerFactory",
"RefreshTokenAuthorizerFactory",
"ClientCredentialsAuthorizerFactory",
"GlobusApp",
"UserApp",
"ClientApp",
"GlobusAppConfig",
]
Loading