Debian Codegraph @

src/globus_sdk/token_storage/validating_token_storage/context.py

raw
1 from __future__ import annotations
2
3 import dataclasses
4
5
6 @dataclasses.dataclass
7 class TokenValidationContext:
8 """
9 A data object of information available to
10 :class:`TokenDataValidators <TokenDataValidator>` during validation.
11
12 :ivar str | None prior_identity_id: The identity ID associated with the
13 :class:`ValidatingTokenStorage` before the operation began, if there was one.
14 :ivar str | None token_data_identity_id: The identity ID extracted from the token
15 data being validated.
16 """
17
18 prior_identity_id: str | None
19 token_data_identity_id: str | None