diff --git a/auth.capnp b/auth.capnp index f0e7062..25fd49d 100644 --- a/auth.capnp +++ b/auth.capnp @@ -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 {