Adds whoami call

This commit is contained in:
Gregor Reitzenstein 2020-10-29 14:57:10 +01:00
parent 2b242d4f5c
commit a4667b94f3

View File

@ -28,6 +28,8 @@ $Rust.parentModule("schema");
using CSharp = import "csharp.capnp";
$CSharp.namespace("FabAccessAPI.Schema");
using Api = import "api.capnp";
interface Authentication {
mechanisms @0 () -> ( mechs :List(Text) );
# Get the list of mechanisms supported by the server
@ -50,6 +52,9 @@ interface Authentication {
# after sending an outcome or by a client after receiving an outcome.
# A server receiving an abort after sending an outcome but before
# receiving any other message MUST respect the abort.
whoami @4 () -> ( you :Api.User );
# Returns NULL if not authenticated and an User object if authenticated.
}
struct Request {