mirror of
https://gitlab.com/fabinfra/fabaccess/pyfabapi.git
synced 2025-03-12 06:41:42 +01:00
API updates
This commit is contained in:
parent
f996d09971
commit
e6c6b530c8
@ -44,7 +44,7 @@ async def connect(host, port, user, pw):
|
|||||||
asyncio.gather(*coroutines, return_exceptions=True)
|
asyncio.gather(*coroutines, return_exceptions=True)
|
||||||
|
|
||||||
boot = client.bootstrap().cast_as(connection_capnp.Bootstrap)
|
boot = client.bootstrap().cast_as(connection_capnp.Bootstrap)
|
||||||
auth = await boot.createSession("PLAIN").a_wait()
|
auth = boot.createSession("PLAIN")
|
||||||
p = "\0" + user + "\0" + pw
|
p = "\0" + user + "\0" + pw
|
||||||
response = await auth.authentication.step(p).a_wait()
|
response = await auth.authentication.step(p).a_wait()
|
||||||
if response.which() == 'successful':
|
if response.which() == 'successful':
|
||||||
|
2
schema
2
schema
@ -1 +1 @@
|
|||||||
Subproject commit c9283ebd696ed6dd428a7c3d24820889f7ab4bf3
|
Subproject commit aea03aabe3d1322892c1896ba757ceeedb92ed73
|
Loading…
x
Reference in New Issue
Block a user