rvalle
July 23, 2021, 2:37pm
1
Hi!
I don’t know what is going on, but basic auth is not working for me as explained in the documentation, discussed in github issues or as in the unit tests that I have reviewed.
Something is off, and I cannot figure out what.
I have created an issue here: basic auth not working as expected · Issue #1416 · ipfs/ipfs-cluster · GitHub
What am I missing?
rvalle
July 23, 2021, 3:09pm
2
It was actually a conflict with
CLUSTER_RESTAPI_BASICAUTHCREDENTIALS
not knowing what the format for this variable is, and also misunderstanding how it is used.
it works by setting it to “user:pass” although the documentation mentions a json-object.
Also I am not sure if it can take several username:pass pairs.
hector
July 23, 2021, 3:11pm
3
Yes, comma-separated as user1:pass1,user2:pass2
.
1 Like