Join 34,000+ subscribers and receive articles from our blog about software quality, testing, QA and security.
 

TestRail API basic authentication plus form based authentication


#1

Hi all. I’m new in this community and I hope this is the correct category for my question. :slight_smile:

I’m trying to access the TestRail API on our own TestRail server (version v5.1.0.3413). The sample in the documentation uses “curl -u …” to handle the basic authentication. But this just gives me:

{“error”:“Authentication failed: invalid or missing user/password or session cookie.”}

I guess this is because I somehow have to provide the form-based login credentials. Has anybody here handled this scenario of API access with basic plus form-based authentication before?

Thanks in advance!