claims.py 256 B

12345678910111213141516
  1. from typing import FrozenSet
  2. from typing import Optional
  3. from clean_python import ValueObject
  4. __all__ = ["Claims"]
  5. class Tenant(ValueObject):
  6. id: int
  7. name: str
  8. class Claims(ValueObject):
  9. scope: FrozenSet[str]
  10. tenant: Optional[Tenant]