mirror of
https://gitlab.com/fabinfra/fabaccess/fabaccess-api.git
synced 2025-03-12 14:51:42 +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";
|
using CSharp = import "csharp.capnp";
|
||||||
$CSharp.namespace("FabAccessAPI.Schema");
|
$CSharp.namespace("FabAccessAPI.Schema");
|
||||||
|
|
||||||
|
using Api = import "api.capnp";
|
||||||
|
|
||||||
interface Authentication {
|
interface Authentication {
|
||||||
mechanisms @0 () -> ( mechs :List(Text) );
|
mechanisms @0 () -> ( mechs :List(Text) );
|
||||||
# Get the list of mechanisms supported by the server
|
# 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.
|
# after sending an outcome or by a client after receiving an outcome.
|
||||||
# A server receiving an abort after sending an outcome but before
|
# A server receiving an abort after sending an outcome but before
|
||||||
# receiving any other message MUST respect the abort.
|
# 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 {
|
struct Request {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user