server: add a readme
This commit is contained in:
committed by
Michael Muré
parent
1178e51b18
commit
83f3e4c3b0
6
toolkit/server/Readme.md
Normal file
6
toolkit/server/Readme.md
Normal 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
|
||||||
Reference in New Issue
Block a user