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

Ivy Zmuda 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 Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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