Compare commits
No commits in common. "d2a6bfd2a5486ae9d31b5fb820c452caa9092c43" and "407994548ad4418a575e2cf4d23b5b35804fbcf6" have entirely different histories.
d2a6bfd2a5
...
407994548a
@ -19,8 +19,7 @@ from .util import passphrase, tokens
|
|||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
# Shared log message template for admin reset links
|
# Shared log message template for admin reset links
|
||||||
ADMIN_RESET_MESSAGE = """\
|
ADMIN_RESET_MESSAGE = """%s
|
||||||
%s
|
|
||||||
|
|
||||||
👤 Admin %s
|
👤 Admin %s
|
||||||
- Use this link to register a Passkey for the admin user!
|
- Use this link to register a Passkey for the admin user!
|
||||||
|
@ -12,8 +12,8 @@ from uuid import UUID
|
|||||||
|
|
||||||
|
|
||||||
@dataclass
|
@dataclass
|
||||||
class Permission:
|
class Org:
|
||||||
id: str # String primary key (max 128 chars)
|
uuid: UUID
|
||||||
display_name: str
|
display_name: str
|
||||||
|
|
||||||
|
|
||||||
@ -22,15 +22,6 @@ class Role:
|
|||||||
uuid: UUID
|
uuid: UUID
|
||||||
org_uuid: UUID
|
org_uuid: UUID
|
||||||
display_name: str
|
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
|
@dataclass
|
||||||
@ -65,6 +56,12 @@ class Session:
|
|||||||
credential_uuid: UUID | None = None
|
credential_uuid: UUID | None = None
|
||||||
|
|
||||||
|
|
||||||
|
@dataclass
|
||||||
|
class Permission:
|
||||||
|
id: str # String primary key (max 128 chars)
|
||||||
|
display_name: str
|
||||||
|
|
||||||
|
|
||||||
@dataclass
|
@dataclass
|
||||||
class SessionContext:
|
class SessionContext:
|
||||||
session: Session
|
session: Session
|
||||||
|
Loading…
x
Reference in New Issue
Block a user