Good day fellow Taiga users,
my company uses a self-hosted Taiga instance for project management. We have an internal tool that combines some Taiga endpoints for analysis purposes.
I am currently trying to rebuild that tool with Laravel (currently it is built with Slim Framework) but the API responses I receive differ from the responses the current tool receives.
Two major differences I have discovered by now:
- The user detail objects returned by the
/users
endpoint do not contain the e-mail keys. If I request a specific user however (/users/1
), that entry contains the e-mail key. According to the documentation,/users
and/users/{id}
both return user detail objects. The current tool (apparently) receives the e-mail keys with its response. Mine does not (as outlined above). - The filtering per project on the
/users
endpoint does not work, for example/users?project=1
does just return all users inconsiderate of what members are actually part of the project with id 1. This is not implemented in the currently deployed tool, thus I do not know if it would work there, but it’s still weird?
Both tools use the exact same user (and thus password) for authenticating against the API.
Is there some trusted hosts setting or something along those lines that I am missing? Or do I do authentication wrong (this is the first project in which I set up the HTTP Networking myself, in other projects it was already done by someone else).
Right now my authentication flow looks as follows:
- Laravel application authenticates against
/auth
and receives user auth detail in response. - I store the
auth_token
andrefresh
keys for future use. - For all future requests, I configure the auth token as Authorization Bearer Token header with the Laravel in-built function
->withToken('my_auth_token')
. This attaches a headerAuthorization: Bearer my_auth_token
.
Note that right now I do not use the ‘refresh’ token for anything. Is that intended? Right now, every PHP requests logs in again to the API, that probably could be optimized (but should not be cause of the issues I am facing, right?)
Thanks a lot for reading, I will happily add further detail if I missed anything significant.