I'm trying to fetch page data from Confluence, however I need to authenticate myself first. I've tried searching around the web for solutions to this problem, but the posts that I've found are several years old. Here's my code:
ConfluenceAuthenticator auth = new ConfluenceAuthenticator();
HttpServletRequest servletRequest = ServletActionContext.getRequest();
HttpServletResponse servletResponse = ServletActionContext.getResponse();
I don't know if this is the right approach, but it's what I've found so far. However, it doesn't work! Ultimately, Java is throwing a "class not found" error for "DefaultAuthenticator", and I believe that's because "DefaultHTTPClient" has been deprecated. At least, that's what the error log leads me to belive.
Upon revisiting the site I pulled this information from, it occurs to me that the post was originally made in 2013, so this is probably out of date.
I've been searching around for an answer that I can sort of wrap my head around and such, but I don't have a lot of experience with this sort of thing in the least, so any and every bit of help is much appreciated.
Hey there, folks! For most of us, the past six months- yes, you read that right- have been a journey. More people than ever before have pivoted to working remotely, and navigating being on-scre...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events