Debian Codegraph @

docs/user_guide/usage_patterns/sessions_and_consents/index.rst

raw
1 .. _userguide_sessions_and_consents:
2
3 Sessions & Consents
4 ===================
5
6 Globus resources can be protected with fine-grained policies which require
7 authentication with specific accounts or which require periodic
8 reauthentication.
9 These policies are enforced via the authentication system, Globus Auth.
10
11 To satisfy a policy requirement, users need to be prompted to update their
12 **session** in Globus Auth.
13 In some cases, applications can be written to preemptively provide the right
14 authentication information, but especially with session expirations and
15 time-based policies, it is not always possible to prevent session related
16 errors from occurring.
17
18 Correctly handling a session error requires that you generally follow a
19 workflow of:
20
21 - define the operation to attempt (e.g., a function)
22 - run the operation
23 - catch any session errors
24 - redrive a login flow based on those errors
25 - run the operation again
26
27 Relatedly, missing consent for an operation is sometimes only detectable after
28 the operation has been attempted.
29 In these cases, trying an operation, prompting for consent, and retrying the
30 operation closely resembles the session handling workflow.
31
32 .. toctree::
33 :caption: How to Manage Sessions & Consents with the SDK
34 :maxdepth: 1
35
36 handling_transfer_auth_params/index
37 coalescing_requirements_errors/index