How to make a REST request from own plugin to the same server?

Hello,
I need to make a REST call in Confluence to another plugin. I need to do it in context as an admin, but the code shouldn’t contain the clear password. Is there any way to do this?

My workaround is to save the password in pluginSettings from a console and read it in my plugin. But for maintenance this is terrible.

Best regards,
Benjamin

1 Like