Hi,
I have followed the following documentation to the letter:
https://confluence.atlassian.com/cloud/api-tokens-938839638.html
I cannot get the token to work for viewing a request (e.g. a GET to "https://mybusiness.atlassian.net/rest/api/2/issue/ticketid"). I have completed the following steps to attempt to resolve:
I have exhausted troubleshooting options and the only thing I can think of is that perhaps the fact that we have SAML active on our account is causing problems with the API tokens? (SAML has caused weird issues for us in other areas before.)
Screenshot of a successful query from a browser plugin while logged into the associated Jira account in a different tab in Chrome. This fails with a 404 if I make the same query after logging out in the other tab (i.e. without the associated login cookie active in the browser).
Hi Brandon,
Thanks for using Atlassian Community.
Apitokens shouldn't be affected by your team's implementation of SAML. With or without SAML, apitokens are used to authorized API calls into Jira cloud via Basic Authentication.
To use that, you will need to add an authorization to your rest call.
The username will be your email address and the password is the apitoken string. Talented will convert that for you into the proper Authorization header which will be sent out with the rest call.
I hope this helps.
Regards,
Ramon
Looks like this was entirely a mistake on my part. For both the browser plugin and for the product I'm trying to integrate to Jira with, I was not properly generating credentials. This resolved my problem. Thank you!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.