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
scopes
"webhooks": [
{
"event": "page_created",
"url": "/pages/created"
},
{
"event": "logout",
"url": "/rest/logout",
"excludeBody": false
},
{
"event": "login",
"url": "/rest/login",
"excludeBody": false
}
],
"scopes": ["READ"]
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!