Compare commits

..

No commits in common. "d2a6bfd2a5486ae9d31b5fb820c452caa9092c43" and "407994548ad4418a575e2cf4d23b5b35804fbcf6" have entirely different histories.

2 changed files with 9 additions and 13 deletions

View File

@ -19,8 +19,7 @@ from .util import passphrase, tokens
logger = logging.getLogger(__name__)
# Shared log message template for admin reset links
ADMIN_RESET_MESSAGE = """\
%s
ADMIN_RESET_MESSAGE = """%s
👤 Admin %s
- Use this link to register a Passkey for the admin user!

View File

@ -12,8 +12,8 @@ from uuid import UUID
@dataclass
class Permission:
id: str # String primary key (max 128 chars)
class Org:
uuid: UUID
display_name: str
@ -22,15 +22,6 @@ class Role:
uuid: UUID
org_uuid: UUID
display_name: str
permissions: list[Permission]
@dataclass
class Org:
uuid: UUID
display_name: str
permissions: list[Permission] # All that the Org can grant
roles: list[Role]
@dataclass
@ -65,6 +56,12 @@ class Session:
credential_uuid: UUID | None = None
@dataclass
class Permission:
id: str # String primary key (max 128 chars)
display_name: str
@dataclass
class SessionContext:
session: Session