Forums

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

Where is the python code in Atlassian Labs atlassian-oauth-examples?

David Dietrich
Contributor
July 13, 2020

I'm working on an integration from ServiceNow to Jira Server, and after much wailing and gnashing of teeth, I decided that OAuth 1.0a was the only option because cookie auth and API Token auth are both disabled on Jira Server. ServiceNow doesn't have the necessary API's to perform the OAuth dance (https://developer.atlassian.com/server/jira/platform/oauth/), so I decided I would have to write a middleware API to perform all the heavy lifting on behalf of ServiceNow. I'd like to use Python because it's what my team and I are most familiar with, but the example Python code for Atlassian OAuth 1.0a is not loading for me: https://bitbucket.org/atlassianlabs/atlassian-oauth-examples/src/master/python/app.py. Does anyone have examples of a Jira OAuth client written in Python?

2 answers

1 accepted

1 vote
Answer accepted
David Dietrich
Contributor
July 17, 2020

I checked the Dev Tools in Chrome and the error messages there imply the problem is with the ZScaler gateway (gateway.zscloud.net) which is filtering traffic on my network. Apparently, ZScaler does not like the Python code on the page I'm trying to load. I've opened a ticket with my corporate IT admins.

0 votes
Italo Qualisoni [e-Core]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 13, 2020

Hey @David Dietrich ,

I was able to load it here, give it another try, maybe you will can try in another browser?

https://bitbucket.org/atlassianlabs/atlassian-oauth-examples/src/master/python/app.py

 

David Dietrich
Contributor
July 16, 2020

I've tried Edge, Chrome, and Firefox. All of them return the same error. I will try contacting my IT department to see if their security systems are causing trouble.

bitbucket atlassian labs app.py having trouble.PNG

firefox bitbucket atlassian labs app.py having trouble.PNGedge bitbucket atlassian labs app.py having trouble.PNG

Italo Qualisoni [e-Core]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 16, 2020

That's strange, maybe you can try using another machine? The repository is public , i have downloaded the repository and uploaded as .zip on this link https://gofile.io/d/Omfdwu so at least you can have access to the content

Suggest an answer

Log in or Sign up to answer