Hi,
After updating to “atlassian-connect-express”: “^7.4.6”, the following route shows the error
Unauthorized: permissions could not be determined
Route
app.post(’/update_something’, [
addon.authenticate(true /* accept context JWTs */),
// only allow product admins that are also project admins
addon.authorizeJira({global: [“ADMINISTER”]})
], async function (req, res, next) {}
This worked on “atlassian-connect-express”: “^7.4.5”
Thanks,
Jerry
1 Like
Hi @jerry.laster ,
I wonder if the change in this PR could be the issue.
Just to confirm, does the issue go away if you revert to atlassian-connect-express version 7.4.5?
Regards,
Dugald
Check authorization.js file - the error you’re getting comes from there.
Check your logs for Authorization failed
or Authorization check failed
- this would indicate which case has triggered for the error.
Bases on the route code it might be that Jira project permissions are misconfigured for the user (and it might just be a coincidence which correlates with ACE version update).
Hi @jerry.laster ,
Version 7.4.7 of atlassian-connect-express has been released and contains a patch for this bug.
Regards,
Dugald
3 Likes