Basic Auth JIRA's Rest API ( with SSO enabled)

David Frager May 7, 2018

We recently moved to JIRA Cloud, with SSO enabled via OneLogin.

Any attempt to authenticate, using an SSO account, via the REST API fails.  Our only work-around is to create an Internal JIRA account. 

I have seen several posts on this, but I have not seen a clear solution.  We want to avoid having to maintain these "special" accounts, just for running scripts.

1 answer

0 votes
Claudiu Lionte
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 18, 2018

Hi David,

Did you try generating an API token? You can create as many as you want and revoke them at any time. Please see:

https://confluence.atlassian.com/cloud/api-tokens-938839638.html

Claudiu

David Frager June 23, 2018

the API Tokens do work, however, the physical device being used to connect is not constant, and having everyone remember their own token is not workable

Veda Sri April 28, 2019

Hi David,

Have you find a solution for this? How to authenticate jira API with SSO enabled?

Daniel Serodio June 10, 2022

Veda, you need to generate the API token like Claidiu instructed, and use your SSO login (eg. firstname.lastname@example.com) as the username and the API token as the password.

Suggest an answer

Log in or Sign up to answer