Taiga REST API auth

443 views
Skip to first unread message

Alexander Shaduro

unread,
May 5, 2016, 10:49:20 AM5/5/16
to taigaio
Hello!

I try to use taiga REST API for convert issues from JIRA to TAIGA, but I get BadRequest status always when I try to auth.
Could you please help me?

I tried to send:


content-type: application/json
type: normal
username: my_login
password: my_password

Best regards!

Jesús Espino

unread,
May 5, 2016, 10:52:28 AM5/5/16
to Alexander Shaduro, taigaio
Hi Alexander,

Can you send use the body of the response?

Regards.

--
Please help us keep the Taiga.io Community open and inclusive, follow our Code of Conduct:
https://github.com/taigaio/code-of-conduct/blob/master/CODE_OF_CONDUCT.md
---
You received this message because you are subscribed to the Google Groups "taigaio" group.
To unsubscribe from this group and stop receiving emails from it, send an email to taigaio+u...@googlegroups.com.
To post to this group, send email to tai...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/taigaio/891404ba-3708-4ace-8493-7538b767b0e6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Alexander Shaduro

unread,
May 5, 2016, 11:03:02 AM5/5/16
to taigaio, bel...@gmail.com
{
"_error_message": "неправильный тип логина",
"_error_type": "taiga.base.exceptions.BadRequest"
}
 

Jesús Espino

unread,
May 5, 2016, 11:07:48 AM5/5/16
to Alexander Shaduro, taigaio
Can you paste the code used to send the request?

Alexander Shaduro

unread,
May 5, 2016, 11:15:49 AM5/5/16
to taigaio, bel...@gmail.com
I use DHC extension for Chrome.

Please, see attached files
bad1.png
bad2.png

Jesús Espino

unread,
May 5, 2016, 11:25:05 AM5/5/16
to Alexander Shaduro, taigaio
Hi again,

You are building the request using headers. You have to send a request with the header Content-Type: application/json and the body of the request with the json. I send you an example:


Regards.


Alexander Shaduro

unread,
May 5, 2016, 11:28:44 AM5/5/16
to taigaio, bel...@gmail.com
Thanks a lot! You're my Hero!

My be make sense to update API manual for more better understanding? As I can see all examples use curl ))

Jesús Espino

unread,
May 5, 2016, 11:37:08 AM5/5/16
to Alexander Shaduro, taigaio
You are welcome.

The API documentation use curl as example because is relatively universal and is practical to have copy & paste examples thats simply work, have you any alternative proposal?

Regards.

David Barragán

unread,
May 5, 2016, 11:41:49 AM5/5/16
to Alexander Shaduro, taigaio
Yes, in curl -H is headers and -d is the data of the request


-d, --data DATA     HTTP POST data (H)
-H, --header LINE   Pass custom header LINE to server (H)


For more options, visit https://groups.google.com/d/optout.



--

---

 
David Barragán Merino  
Engineer

www.kaleidos.net/FFF8E7

Alexander Shaduro

unread,
May 5, 2016, 5:17:57 PM5/5/16
to taigaio, bel...@gmail.com
Yes. I understand. But, as developer I like to see actual API (for example: for auth post request with body "blablabla" etc.(

Best regards!
Reply all
Reply to author
Forward
0 new messages