Skip to content

Commit ef0b1d1

Browse files
committed
Add server implementation of async_enrollment_(submit|info|list|reject|accept) commands
1 parent 13ea6cd commit ef0b1d1

File tree

15 files changed

+3029
-0
lines changed

15 files changed

+3029
-0
lines changed

server/parsec/backend.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
)
2727
from parsec.api import collect_apis
2828
from parsec.components.account import BaseAccountComponent
29+
from parsec.components.async_enrollment import BaseAsyncEnrollmentComponent
2930
from parsec.components.auth import BaseAuthComponent
3031
from parsec.components.block import BaseBlockComponent
3132
from parsec.components.blockstore import BaseBlockStoreComponent
@@ -88,6 +89,7 @@ async def backend_factory(config: BackendConfig) -> AsyncGenerator[Backend, None
8889
events=components["events"],
8990
shamir=components["shamir"],
9091
account=components["account"],
92+
async_enrollment=components["async_enrollment"],
9193
)
9294

9395

@@ -113,6 +115,7 @@ class Backend:
113115
events: BaseEventsComponent
114116
shamir: BaseShamirComponent
115117
account: BaseAccountComponent
118+
async_enrollment: BaseAsyncEnrollmentComponent
116119

117120
# Only available if `config.db_config.type == "MOCKED"`
118121
mocked_data: MemoryDatamodel | None = None
@@ -133,6 +136,7 @@ def __post_init__(self) -> None:
133136
self.events,
134137
self.shamir,
135138
self.account,
139+
self.async_enrollment,
136140
# Ping command is only used in tests
137141
include_ping=self.config.debug,
138142
)

0 commit comments

Comments
 (0)