server: add a readme

This commit is contained in:
Michael Muré
2024-10-08 12:05:49 +02:00
committed by Michael Muré
parent 1178e51b18
commit 83f3e4c3b0

6
toolkit/server/Readme.md Normal file
View File

@@ -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