Oauth2 Something went wrong while authorizing

Nikola Milev
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!
March 28, 2022

Hello! I am trying to set up an Oauth2 app to connect with a web app (Django backend with a Next.js frontend). We already have an app running in production, so I doubt I made an error in the code; I believe there's a mistake somewhere in the setup.

 

I allowed the entire set of permissions (since I didn't know what exactly we needed).

Once I get past allowing the app for the current user, I get an error screen that says just "Something went wrong".  After clicking the Allow button, the browser navigates to:

https://api.atlassian.com/oauth2/authorize/consent/grant?state=hKFo2SBoWncwQ3RFV2M3WWdfVGVEdnlDWG9iREpPWHBHQllPYaFup2NvbnNlbnSjdGlk2SBWUHRmMFVna1VzSHlYTmhIUndxRGR6eWd3anJtR0pPUKNjaWTZIG5Fa3FESUk0NHVhRHBTVkEzbnpKRm5PZVE2bGFzQ1FX&auth0Url=https://auth.atlassian.com

and the response is {"error":{"category":"generic"}}

 

On the frontend, I'm following this URL:

https://auth.atlassian.com/authorize?audience=api.atlassian.com&client_id=REDACTED_CLIENT_ID&scope=read%3Ame%20read%3Aaccount&redirect_uri=https%3A%2F%2Fa467-109-93-4-110.ngrok.io%2Fapi%2Fintegrations%2Fconfluence%2Fauthorize%2F&state=${YOUR_USER_BOUND_VALUE}&response_type=code&prompt=consent

 

Where I filled in the YOUR_USER_BOUND_VALUE beforehand.

 

I've taken a look and client id and secret seem to be properly filled in at the backend. The API calls seem to run without errors.

 

I even tried setting up ngrok in order to have https urls, but no change.

I've shared the app, and I'm using the same email address from the app I'm trying to authorize as the one that owns the Confluence app. 

1 answer

0 votes
Simone Zennaro
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!
July 2, 2023

Same issue trying to configure AWS Appflow with Jira Connector, although I gave all the permissions (and granulars too) to the Jira App.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events