Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to call the Jira API from server without login redirect.

Matthew Wallace
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 16, 2018

We have an external application using Ruby where users login with a custom authentication.

We would like access to the Jira REST API without having to redirect the user to Jira to input credentials. Essentially, our backend would have admin rights to access all of our board data.

The docs here show a login redirect, this is not what we want: https://developer.atlassian.com/cloud/jira/platform/jira-rest-api-oauth-authentication/

Thanks, Matt

1 answer

1 vote
Brant Schroeder
Community Champion
October 16, 2018

Since you are accessing your JIRA instance via your application you can do either of the following:

  • Create a service account and utilize the service account to do all of your REST API calls via the application.  The credentials can be passed with the calls and not require user authentication.
  • Setup OAUTH between your application and JIRA - Then you just send the proper tokens with your request.  - https://developer.atlassian.com/cloud/jira/platform/jira-rest-api-oauth-authentication/  (Once you setup OAUTH trust then a redirect will not occur)
Matt Wallace October 30, 2018

Thank you! Do the OAuth access tokens expire?

Brant Schroeder
Community Champion
October 30, 2018

The tokens expire as specified in the "oauth_expires_in" parameter when you get the access token. I believe that the default configured JIRA instance on Atlassian's server is 157680000 (which is 5 years)

Suggest an answer

Log in or Sign up to answer