On Fri, May 31, 2019 at 07:55:08PM +0530, Manas Mangaonkar wrote:
Hey,
Gsoc Intern here,want to fetch auth token for the user from
team.fedoraproject.taiga via the api to do stuff but it seems there is
no integration on the api end. Would love some more information about
it.
So taiga's support gave us two ways for you to fetch an auth token:
* Login to taiga using the UI, then using the browser inspector, look for the
taiga cookie and retrieve the "token" specified in it.
* Login to taiga using openid-connect in UI. Then go to your user's settings and set
a password there.
Once you have set a password there, you can follow the usual instructions for
fetch an auth token via the API:
https://taigaio.github.io/taiga-doc/dist/api.html#auth-normal-login and
https://taigaio.github.io/taiga-doc/dist/api.html#_authentication
Just beware that the API is available at:
https://teams-api.fedoraproject.org/api/v1/
As you can see, you must login via the UI at least once, so the account is
created in taiga's database.
Hoping this helps,
Pierre