Forums

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

Accessing Cookie in Confluence Event Listener

Swathi Sainadh July 29, 2019

Hi,

I have an Event Listener that triggers a PUT REST API to one of the installed plugins. Here, I need to access the 'JSESSIONID' cookie from the request and pass it on as part of Headers for Authorisation. 

First thing I don't get is, if the event is being triggered from Confluence Application and calling an internal REST API, why would we need an Authorisation at all.

Well, as we need it, I am not able to get hold of the request in the Event Listener as it accepts only one parameter (Actual Event) and ServletActionContext.getRequest() returns null.

 

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events