Forums

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

How to use OAuth in REST API request, in Python, in an automated manner?

Ivy Zmuda
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!
June 4, 2019

Hi there,

I have a question regarding using OAuth to authenticate against the REST API's. I've followed the tutorial here (https://developer.atlassian.com/cloud/jira/platform/jira-rest-api-oauth-authentication/) to the point of getting an access code and generating an access token.

The integration I am developing is a python script that will be called in an automated manner, essentially a bot, and using the REST API documented here (https://developer.atlassian.com/cloud/jira/service-desk/rest). I have it functioning with basic authentication, but would prefer to use something more secure like OAuth in production. The examples given for oauth seem to all be the 'full' request chain and require manual intervention on the part of the user to authorize the request.

Assuming I already have an access token, how would I add OAuth authentication to a Python REST request, such as the 'Get' example outlined here? https://developer.atlassian.com/cloud/jira/service-desk/rest/#api-rest-servicedeskapi-request-get

1 answer

2 votes
Gonchik Tsymzhitov
Community Champion
January 28, 2021

Here, we tried to propose all way for you

https://github.com/atlassian-api/atlassian-python-api

Suggest an answer

Log in or Sign up to answer