Hi everyone!
We are developing some JIRA Cloud addons and we are having problems when we try to do REST calls to JIRA acting act on behalf of users.
We have followed the instructions from the documentation, implementing OAuth 2.0 and looking at the example codes.
The problem is that we are getting a 400 error when we request to the authorization server for OAuth 2.0 authentication. We get something like this:
Requesting access token
ERROR [400]: Couldn't get access token from response
{ error: 'invalid_grant',
error_description: 'The token is expired' }
For this, we cannot do any REST call on behalf of any user. This is an important thing with us, we need to solve some bugs and include some new features that require this to be working.
I have developed an example addon for OAuth 2.0 authentication, please, if you can, have a look at the code. It will be great if you can test it on your instances or review the code to put some light on this. You can find it here. We are using the atlassian-connect-express 2.0.3.
@dmeyer, perhaps you can also help us. Moreover, @david.gonzalez write a topic about it before.
Cheers.