I have a strange issue. I have two apps set up, one for production, one for staging (OAuth 2.0 integrations). They are both set up with the same credentials and settings.
My app needs access to:
View Jira issue data and
View user profiles
For the staging application, I am able to get the access token, send the credentials as a bearer token, and successfully call:
It returns the information with the instance url.
When I view the JWT, it has the correct client id for the staging application.
It also has the scopes:
read:jira-work read:jira-user offline_access
When I try to use the same JWT as a bearer to get any other information, I get a
401 error (searching tickets, get users, get fields etc).
On production, the exact same code works as expected (against the production app).
I’m at a loss