confluence-api-client icon indicating copy to clipboard operation
confluence-api-client copied to clipboard

Allow usage with an API key instead of a password

Open ghost opened this issue 6 years ago • 2 comments

Allow usage with an API key instead of a password. If you can already do that, that's great but an example in your README.md would be helpful.

ghost avatar Jan 16 '19 20:01 ghost

You can use personal access token in place of a password. It also looks like API tokens can be used in place of passwords too.

IE: Atlassian shows in a screenshot that you can use API tokens in

@leewsb would you be willing to summarize some of this in a PR on the README?

cpb avatar Jun 11 '21 17:06 cpb

I don't believe this is strictly true. It depends on Confluence Atuthentication settings. If Basic authentication is not enabled (Bearer only), then you cannot use the method suggested.

My suggestions is to add a second constructor to allow token based authentication. @amishyn I am happy to extend to do so. I will create a pull request. Is that acceptable?

ChrisAllen1982 avatar Feb 04 '22 11:02 ChrisAllen1982