sphinx-contrib / confluencebuilder

Confluence Markup Builder Plugin for Sphinx
BSD 2-Clause "Simplified" License
315 stars 99 forks source link

Unable to authenticate to Confluence #971

Closed Shaansarkar closed 3 months ago

Shaansarkar commented 4 months ago

Hi Team,

I am facing an issue, below is the problem statement & possible approach which i tried.

We are currently migrating from one ASCENT WIKI to another Confluence Data center. We are able to create pages in the old ASCENT Wiki page using the config available but when we are trying to use the same config with the updated URL & SPACE key for new Confluence data center we are facing an authentication issue.

What we have done: Passed username and Password Created PAT token and had passed in confluence config argument Created API token and passed We are admins in space and are really unable to take a step forward and are stuck for long. Sharing the snippet of the config for reference.

I tried to use REST APIs and was able to successfully create page just by passing the PAT which i tried to give input in the config. REST APIs approach works but while using it through confluence builder i have facing error.

Can you help me in this as it has become a show stopper for me now? Thanks.

Config
jdknight commented 4 months ago

For a Confluence Data Center variant, the recommended configuration is to:

Have you tried using the connection troubleshooting mode to see if it provided any hints?

Connection troubleshooting https://sphinxcontrib-confluencebuilder.readthedocs.io/en/stable/tips/#connection-troubleshooting

The image shown above also has an odd confluence_server_url value -- specifically, the trailing /display/ value. However, if the instance you are trying to connect to hosts Confluence under that path, it may be fine.

jdknight commented 3 months ago

Any updates?

Shaansarkar commented 3 months ago

Hi James,

Sorry for the delayed reply. I was able to build the code and push data on the confluence using the PAT. There was some tool version issue i guess at my end and also as you guided had helped me to resolve the issue.

Thanks a lot for your prompt help and solution.