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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root


1 badge earned


Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!


Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.


Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!


How to authenticate against atlassian-connect-express endpoints using cURL

So I generated a new atlassian-connect-express addon for Jira and defined the following routes.

app.get('/hello-world-authenticate', addon.authenticate(), function (req, res) {
res.json({"title": "protected using authenticate"});

app.get('/hello-world-check-valid-token', addon.checkValidToken(), function (req, res) {
res.json({"title": "protected using checkValidToken"});

app.get('/hello-world-public', function (req, res) {
res.json({"title": "public"});

After registering the ACE add-on I get the following output, and I am able to cURL the public endpoint succesfully.

Local tunnel established at 
% curl


cURL commands towards the authenticated endpoints fail, which makes sense since no authentication information is provided.

% curl

Could not find authentication data on request

% curl

Could not find authentication data on request

I've been made aware that a JWT token can be requested issuing a POST command using basic authentication towards https://<your-id>

curl -H "Content-Type: application/json" -X POST -d '{"username":"<your-username>","password":"<your-password>"}' https://<your-id> 


Providing the JWT token to the above endpoints results in following output.

% curl "<received-jwt-token>"

JWT claim did not contain the query string hash (qsh) claim

% curl "<received-jwt-token>"

Could not find stored client data for atlassian. Is this client registered?

It seems I am unable to authenticate towards my ACE endpoints. What should be the correct procedure for authenticating ACE endpoints? What tokens should be set, and how should they be acquired? 

I want my custom endpoints to be called based on a cron job so for simplicity I prefer autentication data being passed using the HTTP headers.


Source can be found at



Log in or Sign up to comment