Forums

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

2 steps Oauth with website

quentin
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 26, 2019

Hi everyone,

 

I'm trying to make a website that connects to jira to create issues. The website needs to request authorization from the user with OAuth, and then connect to Jira.

When the user connects to it, the website fetches a request token, then redirects the user to the JIRA authentication page in a new tab.

Once the user is connected, he can close the new tab (JIRA does not callback my website) The problem is here: once the user is back to the website, I have no way to get the access token.

I try to fetch it but to no avail - I get a

TokenRequestDenied: Token request failed with code 401, response was 'oauth_problem=permission_unknown'.

 

I'm using flask if it's any help.

I guess I need to store something somewhere, like the oauth session ? I have no way of storing an oauth session object though.

 

Would someone have insight on how to fetch this access token ?

I can also post the code if it's any help.

 

Thanks!

0 answers

Suggest an answer

Log in or Sign up to answer