View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0006778 | Taler | mechant backend | public | 2021-03-02 20:53 | 2021-03-02 23:40 |
Reporter | Florian Dold | Assigned To | Florian Dold | ||
Priority | normal | Severity | minor | Reproducibility | have not tried |
Status | assigned | Resolution | open | ||
Product Version | git (master) | ||||
Summary | 0006778: merchant-lib and testing support for authentication unclear | ||||
Description | Currently the merchant lib does not have any explicit support for setting and changing authentication headers. There is GNUNET_CURL_append_header, but that does not seem to allow *removing* a header. Do we want to manage authentication through this, or should the merchant lib functions take some extra context parameter for authentication? The same concern applies the the merchant's testing lib, which currently can't easily set/remove the authentication header. | ||||
Tags | No tags attached. | ||||
|
The preferred method is: /* initialize HTTP client */ ctx = GNUNET_CURL_init (&GNUNET_CURL_gnunet_scheduler_reschedule, &rc); rc = GNUNET_CURL_gnunet_rc_create (ctx); /* setup authorization */ GNUNET_assert (GNUNET_OK == GNUNET_CURL_append_header (ctx, authorization)); Note that if you must change the headers (i.e. different Authorization), you should create a fresh ctx/rc each time. |
Date Modified | Username | Field | Change |
---|---|---|---|
2021-03-02 20:53 | Florian Dold | New Issue | |
2021-03-02 20:53 | Florian Dold | Status | new => assigned |
2021-03-02 20:53 | Florian Dold | Assigned To | => Christian Grothoff |
2021-03-02 23:40 | Christian Grothoff | Note Added: 0017582 | |
2021-03-02 23:40 | Christian Grothoff | Assigned To | Christian Grothoff => Florian Dold |