|
From: | Christian Grothoff |
Subject: | Re: [Taler] POS Terminal App "too old" |
Date: | Mon, 9 Jan 2023 15:30:22 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.0 |
On 1/7/23 15:11, Torsten Grote wrote:
On Friday, 6 January 2023 12:56:31 -03 Florian Jung via Taler wrote:"Error: did not receive a payment".I am getting: Client request(POST https://pay.tschunk.shop/instances/bar/private/orders) invalid: 401 Unauthorized. Text: "{ "code": 26, "hint": "A parameter in the request was malformed.", "detail": "'secret-token:' prefix or 'Bearer' missing in 'Authorization' header" }" You mentioned your endpoint doesn't require auth. Not sure how this should be handled. Christian, is this supported?
Eh, looks to me like the endpoint *does* require auth. However, the App must send an HTTP header of the form
"Authorization: Bearer secret-token:$TOKEN"and somehow it is not. IMO The JSON file should include the "secret-token:$TOKEN" as a configuration option, and then the POS app should construct the full header by constructing
"Authoriation: Bearer $CONFIGOPTION".Not sure which of these is not happening, or if maybe your configuration fails to include "secret-token:"?
My 2 cents Christian
[Prev in Thread] | Current Thread | [Next in Thread] |