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

OAuth2 Error: Invalid aud

Belinda Felpel December 18, 2019

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
Shannon S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 30, 2019

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
AUG Leaders

Atlassian Community Events