mirror of
https://gitlab.com/fabinfra/fabaccess/fabaccess-api.git
synced 2025-03-12 06:41:51 +01:00
Adds whoami call
This commit is contained in:
parent
2b242d4f5c
commit
a4667b94f3
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user