We have configured Jira serve with Okta and now need to access its rest api.please let me know the step to follow if we need to call below request http://{host}/rest/api/2/project.
We have tried with Okta Access token as below and not working
curl -X GET -H "Authorization: Bearer token" http://{host}/rest/api/2/project
Hey @Accello RPA !
On Jira Server, you'll be using a plugin to provide SAML capabilities for Okta. Different plugins provided on the Marketplace handle API calls in varying ways.
In the case of the SAML Single Sign On (SSO) Jira, SAML/SSO by resolution Reichert Network Solutions GmbH plugin you've evaluated, the plugin doesn't do anything special to prevent API calls using Basic Auth. They've got a great page in their documentation explaining how this works here.
I noticed in your curl example that you're trying to use a Bearer token however. The SSO plugin doesn't support API calls (so no Okta passthrough), and Jira Server doesn't support token authorization. That's probably what's tripping things up! I think you've got a few options forward:
Cheers,
Daniel | Atlassian Support
Hi @Accello RPA
If I may throw in our hat as well - we are the Developer of the SAML Plugin you tested/use.
We just released a Jira API Token App for exactly the use case you are having: https://marketplace.atlassian.com/apps/1221586/api-token-authentication-for-jira?hosting=server&tab=overview
As both products come from us, they are well tested on their interoperability - so is the DC SAML for example.
Cheers,
Chris
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Accello RPA ,
Jira server doesn't support API Authentication using access tokens of third party OAuth providers such as Okta.
I work with miniOrange and We have released a Jira REST API Access using OAuth app which supports this exact use case: https://marketplace.atlassian.com/apps/1221054/jira-rest-api-access-using-oauth-oidc
You can set it up within minutes and use Okta's access tokens to call the REST APIs. There is also an option to disable the basic authentication in favour of Okta authentication. If you need any assistance in setting this up, you can reach out to us at atlassiansupport@xecurify.com and we will schedule a screen sharing session to assist you with end to end setup.
Thanks,
Ankit
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.