From 83f3e4c3b0f8726fd36e438ba045ec350619271d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Mur=C3=A9?= Date: Tue, 8 Oct 2024 12:05:49 +0200 Subject: [PATCH] server: add a readme --- toolkit/server/Readme.md | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 toolkit/server/Readme.md diff --git a/toolkit/server/Readme.md b/toolkit/server/Readme.md new file mode 100644 index 0000000..34f8d59 --- /dev/null +++ b/toolkit/server/Readme.md @@ -0,0 +1,6 @@ +# HTTP Server middleware example + +This package shows an example of an HTTP middleware with the following features: +- decoding a UCAN delegation token from the `Authorization: Bearer` HTTP Header, according to the PriorityConnect Step0 way (which is not the fully correct UCAN way) +- minimal verifications, no policies or args +- retrieval of values passed as token metadata, and insertion in the go context \ No newline at end of file