Since Version 7.9 of confluence (Server or DC) it is possible to use personal access tokens to login into the system. Currently this works only for Jira. In the moment the token parameter isn't accepted for confluence. It would be nice to use this feature for confluence too.