proxystore.globus.scopes¶
Build Globus Auth scopes.
ProxyStoreRelayScopes
module-attribute
¶
ProxyStoreRelayScopes = ScopeBuilder(
"ebd5bbed-95e2-47cf-9c80-39e2064274bd",
known_url_scopes=["relay_all"],
)
ProxyStore Relay Server scopes.
Supported Scopes:
relay_all
get_all_scopes_by_resource_server
¶
Get all scopes needed by the ProxyStore library by resource server.
This returns scopes for three resource servers: Globus Auth, Globus Transfer, and the ProxyStore Relay Server.
Parameters:
-
collections
(Iterable[str]
, default:()
) –Iterable of collection UUIDs to request consent for. Passed to
get_transfer_scopes_by_resource_server
.
Source code in proxystore/globus/scopes.py
get_auth_scopes_by_resource_server
¶
Get basic scopes for the auth API resource server.
Source code in proxystore/globus/scopes.py
get_relay_scopes_by_resource_server
¶
Get all scopes for the relay server by resource server.
get_transfer_scopes_by_resource_server
¶
Get scopes for the transfer API resource server.
Parameters:
Source code in proxystore/globus/scopes.py
uses_data_access
¶
uses_data_access(
client: TransferClient, collection: str
) -> bool
Check if a collection uses data access scopes.
Parameters:
-
client
(TransferClient
) –Transfer client to use for lookup.
-
collection
(str
) –Collection ID to query.
Returns:
-
bool
–True
if the collection uses adata_access
scope andFalse
otherwise.