Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,295,560
Community Members
 
Community Events
165
Community Groups

Oauth2 Something went wrong while authorizing

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. 

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Confluence

Confluence: Where work and wellness meet

Feeling overwhelmed by the demands of work and life? With a 25% increase in the prevalence of anxiety and depression worldwide during the pandemic, for most of us, it’s a resounding yes . 🙋‍♀️ ...

915 views 12 27
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you