(It is really a continuation of #1 issue, but that one was closed so long ago that no one might have seen my comment and so I'm creating a new one)
As in the title, currently package does not support authentication by password.
The package supports two authentication modes: basic and oauth. However, basic accepts only username/api token pair and append '/token' to username before creation Authorization header.
I propose allowing as the second parameter to setAuth arrays containing also password instead of token so the following two would work:
(It is really a continuation of #1 issue, but that one was closed so long ago that no one might have seen my comment and so I'm creating a new one)
As in the title, currently package does not support authentication by password.
The package supports two authentication modes:
basic
andoauth
. However,basic
accepts only username/api token pair and append '/token' to username before creation Authorization header.I propose allowing as the second parameter to setAuth arrays containing also password instead of token so the following two would work: