Hello, I'm trying to publish a sphinx project on a test page on confluence cloud, with the sphinxcontrib.confluencebuilder plugin for sphinx. I can authenticate with my credentials as an admin in the browser, but not via using the "make confluence" command with the same credentials. My account is not currently locked.
I'm getting this error:
> .\make confluence
Running Sphinx v3.5.2
(request to accept password from interactive session)
Instance: https://xxxx.atlassian.net/wiki/
User: xxx@yyy.com
Password:
sphinxcontrib.confluencebuilder error:
---
Unable to authenticate with the Confluence server.
Ensure your username and password are correct. If your username and password is correct, you may need to unlock your Confluence account be re-logging in with your browser or asking your Confluence administrator for help.
The relevant part of the conf.py file:
extensions = ['sphinxcontrib.confluencebuilder',
]
confluence_publish = True
confluence_space_name = 'TEST'
confluence_server_url = 'https://xxxx.atlassian.net/wiki/'
confluence_server_user = 'xxx@yyy.com'
confluence_ask_password = True
I tried again by adding the line
confluence_server_pass = 'zzz'
and disabling the ask_password but same issue.
Hello all,
If you encounter this issue with Confluence Cloud and receive an "unable to authenticate" error, please ensure you authenticate with a token following Manage API tokens for your Atlassian Account. If you continue having problems authenticating, contact Cloud Support.
You have a different issue if you receive any other error or are on Confluence on-Prem (Server/DC). Please raise a new question or contact Support.
Take care,
Shannon | Atlassian Community Support
Community moderators have prevented the ability to post new answers.
Hi A,
Welcome to Atlassian Community! It's nice to have you join us.
I'm not familiar with the sphinxcontrib.confluencebuilder script you are using, but Cloud authenticates using an API token when using a script or other process:
Can you confirm if you are using an API token? Refer to our Atlassian Cloud developer documentation for authentication information.
Let me know if this helps!
Take care,
Shannon
Hi Shannon, thank you for your reply. I understand that the API token is mandatory for my usecase. As I was trying to authenticate with my raw password, it was hopeless. I can publish now. Best regards, "A B"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi A B,
I'm happy to hear you were able to authenticate with the token!
Glad I could help. :)
Take care, and have a pleasant weekend.
Shannon
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
i have the same issue
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
my url is correct too - getting below error
---
Unsupported Confluence API call
DATA: <not-or-invalid-json>
---
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Any further update on this issue ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello all,
If you encounter this issue with Confluence Cloud and receive an "unable to authenticate" error, please ensure you authenticate with a token following Manage API tokens for your Atlassian Account. If you continue having problems authenticating, contact Cloud Support.
You have a different issue if you receive any other error or are on Confluence on-Prem (Server/DC). Please raise a new question or contact Support.
Take care,
Shannon | Atlassian Community Support
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.