The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Login and Logout webhook events are not firing for confluence cloud

Lava Kumar Dukanam _Appfire_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
April 27, 2020

Hello, 

Login and Logout webhook events are not firing in confluence cloud via a ngrok listening at port 3000.

I've defined webhook module in descriptor and added 3 events

"webhooks": [
{
"event": "page_created",
"url": "/pages/created"
},
{
"event": "logout",
"url": "/rest/logout",
"excludeBody": false
},
{
"event": "login",
"url": "/rest/login",
"excludeBody": false
}
]

and the corresponding routes

app.post('/rest/logout', function(req,res){
console.log(req.body);
console.log("***********Logout called!! **************");
})

app.post('/rest/login', function(req,res){
console.log(req.body);
console.log("***********Login called!! **************");
})

app.post('/pages/created', function(req,res){
console.log(req.body);
console.log("***********page created!! **************");
})

Am i missing anything here?

page_created event works fine but not login and logout. 
Appreciate any pointers.

Thanks! 

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Diego
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 29, 2020

Hello @Lava Kumar Dukanam _Appfire_ !

What I understand that an event is not being fired upon its specific call. However, I believe that you will have better results asking for directions from more specialized people from our Developer Community.

You can check all things development here:

 

Let us hear from you!

Lava Kumar Dukanam _Appfire_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
April 29, 2020

Thank you @Diego - I've posted it in the dev community

Like Diego likes this
Diego
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 30, 2020

Thank you for letting me know!

DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events