swish icon indicating copy to clipboard operation
swish copied to clipboard

Apparently outdated config identifier for basic auth

Open TimothyGillespie opened this issue 2 years ago • 0 comments

Environment: SWISH Docker Container (swish/swish) in the latest version.

When trying to switch the basic auth by uncommenting the last line in

https://github.com/SWI-Prolog/swish/blob/fd7e65872d0078405943687b43f18abb1d1c87a5/config-available/auth_http_always.pl#L36

or

https://github.com/SWI-Prolog/swish/blob/fd7e65872d0078405943687b43f18abb1d1c87a5/config-available/auth_http.pl#L33

It does not seem to work. The Authorization header in SWISH is still digest, and the following warning is given:

swipl-swish | ERROR: /data/config-enabled/auth_http_always.pl:33:
swipl-swish | ERROR:    setting `swish_authenticate:method' does not exist
swipl-swish | Warning: /data/config-enabled/auth_http_always.pl:33:
swipl-swish | Warning:    Goal (directive) failed: config_auth_http_always:set_setting_default(swish_authenticate:method,basic)
swipl-swish | % Started server at http://localhost:3050/

I tried different ways to set this config without any success, but I don't understand the project well enough to find the correct one. Using HTTP basic auth would be very practical, as it is much easier for using the API.

TimothyGillespie avatar Jul 12 '22 07:07 TimothyGillespie