]> git.ipfire.org Git - thirdparty/dehydrated.git/commit
Move from account ID to account URL 727/head
authorRogdham <contact@rogdham.net>
Mon, 30 Mar 2020 20:14:07 +0000 (22:14 +0200)
committerRogdham <contact@rogdham.net>
Fri, 3 Apr 2020 07:16:30 +0000 (09:16 +0200)
commitdbb0ef1ce1a93a20fe1cc532adbdf676cb14c3d3
tree9f7b16c8f0632e8f1a77f2ebb84e20df06ea4319
parentfcfb077a95826d378b25a2bb9903b3c27874128e
Move from account ID to account URL

We store the account URL on account creation in the account_id.json file.

When reading the file, if the attribute is missing, we retrieve the account URL
from the CA ( https://tools.ietf.org/html/rfc8555#section-7.3.1 ) and edit the
file.

Per https://tools.ietf.org/html/rfc8555#section-7.3
> The server returns this account object in a 201 (Created) response, with the
> account URL in a Location header field.  The account URL is used as the "kid"
> value in the JWS authenticating subsequent requests by this account (see
> Section 6.2).  The account URL is also used for requests for management
> actions on this account, as described below.
dehydrated