activitypub: implement the ReqSignature middleware

Signed-off-by: Loïc Dachary <loic@dachary.org>
This commit is contained in:
Loïc Dachary
2022-03-18 17:34:09 -05:00
committed by Anthony Wang
parent 15c1f6218c
commit 97fedf2616
8 changed files with 293 additions and 62 deletions
+30 -1
View File
@@ -28,8 +28,11 @@
"produces": [
"application/json"
],
"tags": [
"activitypub"
],
"summary": "Returns the person",
"operationId": "information",
"operationId": "activitypubPerson",
"parameters": [
{
"type": "string",
@@ -46,6 +49,32 @@
}
}
},
"/activitypub/user/{username}/inbox": {
"post": {
"produces": [
"application/json"
],
"tags": [
"activitypub"
],
"summary": "Send to the inbox",
"operationId": "activitypubPersonInbox",
"parameters": [
{
"type": "string",
"description": "username of the user",
"name": "username",
"in": "path",
"required": true
}
],
"responses": {
"204": {
"$ref": "#/responses/empty"
}
}
}
},
"/admin/cron": {
"get": {
"produces": [