From df8b74b01d1377800f4f2d3408c7bc1093014d7f Mon Sep 17 00:00:00 2001 From: ninsbl Date: Tue, 24 Jan 2023 21:49:54 +0100 Subject: [PATCH 1/2] document auth property in webhooks --- src/actinia_core/models/process_chain.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/actinia_core/models/process_chain.py b/src/actinia_core/models/process_chain.py index f6585d313..192fc9050 100644 --- a/src/actinia_core/models/process_chain.py +++ b/src/actinia_core/models/process_chain.py @@ -466,6 +466,11 @@ class Webhooks(Schema): """ type = 'object' properties = { + 'auth': {'type': 'string', + 'description': 'Authentication information (username and password) ' + 'to authenticate to the webhook url.Given as ' + '"username:password" string. The username and ' + 'password should not contain a ":".'}, 'update': {'type': 'string', 'description': 'Specify a HTTP(S) GET/POST endpoint that should be ' 'called when a status update is available while the ' @@ -496,6 +501,7 @@ class Webhooks(Schema): 'will be used to check if the webhooks endpoints are available.' 'The finished endpoint is mandatory, the update endpoint is optional.') example = { + 'auth': 'username:password', 'update': f'http://business-logic.company.com{URL_PREFIX}/' 'actinia-update-webhook', 'finished': f'http://business-logic.company.com{URL_PREFIX}/' @@ -617,6 +623,7 @@ class ProcessChainModel(Schema): } ], 'webhooks': { + 'auth': 'username:password', 'update': f'http://business-logic.company.com{URL_PREFIX}/' 'actinia-update-webhook', 'finished': f'http://business-logic.company.com{URL_PREFIX}/' From bb4f4499f3fa1e8c9238c74f618b9fb340a75eeb Mon Sep 17 00:00:00 2001 From: Stefan Blumentrath Date: Wed, 1 Feb 2023 21:20:12 +0100 Subject: [PATCH 2/2] Update src/actinia_core/models/process_chain.py Co-authored-by: Carmen Tawalika --- src/actinia_core/models/process_chain.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/actinia_core/models/process_chain.py b/src/actinia_core/models/process_chain.py index 192fc9050..fbf774c15 100644 --- a/src/actinia_core/models/process_chain.py +++ b/src/actinia_core/models/process_chain.py @@ -468,7 +468,7 @@ class Webhooks(Schema): properties = { 'auth': {'type': 'string', 'description': 'Authentication information (username and password) ' - 'to authenticate to the webhook url.Given as ' + 'to authenticate to the webhook url. Given as ' '"username:password" string. The username and ' 'password should not contain a ":".'}, 'update': {'type': 'string',