Basic auth not worknig as expected

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?

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.

Yes, comma-separated as user1:pass1,user2:pass2.

1 Like