v3.44.0
Added
- Added a reference to the new Flows all scope under
globus_sdk.scopes.FlowsScopes.all
. (#1016)
Experimental
- Added support for
ScopeCollectionType
to GlobusApp's__init__
and
add_scope_requirements
methods. (#1020)
Changed
-
Updated
ScopeCollectionType
to be defined recursively. (#1020) -
TransferClient.add_app_data_access_scope
now raises an error if it is
given an invalid collection ID. (#1022)
Experimental
-
Changed the experimental
GlobusApp
class in the following way (#1017):-
app_name
is no longer required (defaults to "Unnamed Globus App") -
Token storage now defaults to including the client id in the path.
-
Old (unix) :
~/.globus/app/{app_name}/tokens.json
-
New (unix):
~/.globus/app/{client_id}/{app_name}/tokens.json
-
Old (win):
~\AppData\Local\globus\app\{app_name}\tokens.json
-
New (win):
~\AppData\Local\globus\app\{client_id}\{app_name}\tokens.json
-
-
GlobusAppConfig.token_storage
now accepts shorthand string references:
"json"
to use aJSONTokenStorage
,"sqlite"
to use a
SQLiteTokenStorage
and"memory"
to use aMemoryTokenStorage
. -
GlobusAppConfig.token_storage
also now accepts aTokenStorageProvider
,
a class with afor_globus_app(...) -> TokenStorage
class method. -
Renamed the experimental
FileTokenStorage
attribute.filename
to
.filepath
.
-
-
Changed the experimental
GlobusApp
class in the following ways (#1018):-
LoginFlowManagers
now insertGlobusApp.app_name
into any native
client login flows as theprefill_named_grant
. -
GlobusAppConfig
now accepts alogin_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 aLocalServerLoginFlowManager
or a configuredlogin_redirect_uri
. -
GlobusAppConfig.login_flow_manager
now accepts shorthand string references
"command-line"
to use aCommandLineLoginFlowManager
and
"local-server"
to use aLocalServerLoginFlowManager
. -
GlobusAppConfig.login_flow_manager
also now accepts a
LoginFlowManagerProvider
, a class with a
for_globus_app(...) -> LoginFlowManager
class method.
-
Development
- Added a scope normalization function
globus_sdk.scopes.scopes_to_scope_list
to
translate fromScopeCollectionType
to a list ofScope
objects.
(#1020)