Atlassian-connect-express to use ACT_AS_USER scope

Hello.

Im trying to create a Connect App with the Atlassian connect express to be able to generate a token with a ACT_AS_USER permissions on the servicedesk api.

My problem is that im getting errors when i install dependencies on the project related, i think, with the node-gyp.
Even installing the pre-requesits first i get problems.

Any help with this?
Tryed to use different python versions, different npm versions and i cant figure what to do next …

Thanks in advance :slight_smile:

I have not tried to build an ACE app with an ARM based architecture - it could be a missing node-gyp python dependency.
Perhaps Node Gyp - Python Repo can help.

Well, just tested on Windows and made it run.
Now i already have the app running on Jira.

Now, just got 2 doubts …
I was trying to use this example to make what i want …

First problem is the addon.authenticate()
What authorization he is waiting on the call? My base64 email:token as a Authorization header? ( already tryed this one ).

Anyway, i could simply take this auth out from the endpoint…
But then i get a:
TypeError: Cannot read properties of null (reading ‘asUserByAccountId’)

Anyway, i get that even if i do not use the asUserByAccountId.
TypeError: Cannot read properties of null (reading ‘post’)

Any idea from where can i explore?

Thank you :slight_smile:

if you are familiar with typescript you can explore the typings of the latest ACE build by converting your routes.js to routes.ts and configuring typescript to build the file or if you prefer to stick with js you can just explore the type definition of the Bitbucket repository