Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

OAuth2 Error: Invalid aud

Hi,

I am developing a connect-app for Confluence cloud using the atlassian-connect-express framework. Since yesterday I am facing the issue that my local add-on server is giving me following error when trying to use the 

 httpClient.asUserByAccountId() 

function:

{ error: 'invalid_grant',
error_description:
'Invalid aud: [https://oauth-2-authorization-server.services.atlassian.com], expected: https://auth.atlassian.io or https://auth.prod.public.atl-paas.net' }

I figured out, that the problem is in the atlassian-oauth2-js library (https://bitbucket.org/atlassian/atlassian-oauth2-js/src/master/) which released an update 5 days ago with the new 

AUTHORIZATION_SERVER_URL = "https://oauth-2-authorization-server.services.atlassian.com" 

instead of 

AUTHORIZATION_SERVER_URL = "https://auth.atlassian.io"

as it was when it was still working for me.

Unfortunately, atlassian-connect-express library always imports the latest released version of atlassian-oauth2.

 

Does somebody know why my add-on is not able to request an access token from the new server URL? Do I have to define the authentication server somewhere else in my code?

 

Many thanks,

Belinda

1 answer

0 votes

Hello Belinda,

Thank you for contacting us about this.

I'm not really familiar with this issue, but I would recommend that you raise the same question on our Atlassian Developer Community.

There, you will find users who develop add-ons, similarly to yourself, and they should be able to help you with this.

Let me know if you have any trouble.

Regards,

Shannon

Suggest an answer

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

What do you think is the most *delightful* Confluence feature? Comment for a prize!

- Create your own custom emoji 🔥 - "Shake for Feedback" on mobile 📱 - An endless supply of GIFs via GIPHY 🤩 Is there anything quite as nice as a pleasant surprise? Comment below with what...

415 views 23 8
Join discussion

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