commit bd80dfcaebc13a34907da688ff7b0b7601ec738b
parent 20c47ad25092e2d05d66ebb128a0299e668ac42d
Author: Christian Grothoff <christian@grothoff.org>
Date: Sun, 7 May 2023 00:31:35 +0200
-update challenger docs
Diffstat:
1 file changed, 4 insertions(+), 7 deletions(-)
diff --git a/core/api-challenger.rst b/core/api-challenger.rst
@@ -91,10 +91,6 @@ Setup
challenger service. This token must match the ``client_secret`` in the
later ``/auth`` request.
- **Request:**
-
- :query client_id: Identifier of the client.
-
**Response:**
:http:statuscode:`200 OK`:
@@ -149,14 +145,15 @@ Login
Challenge
---------
-.. http:post:: /challenge
+.. http:post:: /challenge/$NONCE
Submits the address to which a challenge should be
sent by the challenger service.
**Request:**
- Depends on the form from ``/login``. TBD.
+ Body should use the mime-type "application/x-www-form-urlencoded".
+ The posted form data must contain an "address".
**Response:**
@@ -173,7 +170,7 @@ Challenge
Solve
-----
-.. http:post:: /solve
+.. http:post:: /solve/$NONCE
Used by the user-agent to submit an answer to the
challenge. If the answer is correct, the user