Auth/application user into a servlet


I’m building a plugin that have a servlet to display a list of issues and some stats on a tv. We can’t do a normal login and to redirect to the servlet url after, we must send the browser directly to the servlet.

Sadly, since we are fetching issues with the search service class, it fails if an active session is not present.

Beside reworking the code to fetch issues by REST, what are the options to authenticate in the servlet’s code?