How can I create S to S authentication to Jira in Python?

Sree Divya Bonagiri September 12, 2017

I am using atlassian_jwt_auth. FOllowing is my code snippet.

import requests
import json
import os
import atlassian_jwt_auth
from atlassian_jwt_auth.contrib.requests import JWTAuth

class my_class(object):
pass

signer = atlassian_jwt_auth.create_signer_from_file_private_key_repository('', 'C:/python/jwtprivatekeys')
a_jwt = signer.generate_jwt('audience')
public_key_retriever = atlassian_jwt_auth.HTTPSPublicKeyRetriever('https://test.atlassian.net')
verifier = atlassian_jwt_auth.JWTAuthVerifier(public_key_retriever)
verified_claims = verifier.verify_jwt(a_jwt, 'audience')
print (verified_claims)

 

How to fix this?

1 answer

0 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.
April 12, 2019

Hi! 

Is it actual? 

Suggest an answer

Log in or Sign up to answer