Skip to content

Python helper script for generating Jira and Confluence OAuth tokens, for use with their REST APIs

Notifications You must be signed in to change notification settings

cyriptix/atlassian-oauth-helper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

atlassian-oauth-helper

Python helper script for generating Jira and Confluence OAuth tokens, for use with their REST APIs

Requirements

  • Python 3
  • A reasonably recent version of Jira/Confluence

Instructions

Create and source a new virtualenv:

virtualenv --python=python3 venv
source venv/bin/activate

Install required Python modules:

pip install -r requirements.txt

Generate a private RSA key to sign your requests, and extract the public key:

openssl genrsa -out privkey.pem 2048
openssl rsa -pubout -in privkey.pem -out pubkey.pem

Configure an Application Link in Jira/Confluence as detailed here (see the section titled 'Configure the client app as a consumer in Jira, using application links').

Run the script:

./atlassian-oauth-helper.py BASEURL CONSUMER KEYFILE

Where:

  • BASEURL: The base URL (including any context, if applicable) to your Jira/Confluence instance. For example, https://www.example.com/confluence
  • CONSUMER: The consumer key you chose when setting up your Application Link
  • KEYFILE: The path to the RSA private key you created at the beginning of this guide

About

Python helper script for generating Jira and Confluence OAuth tokens, for use with their REST APIs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages