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.