kovetskiy / mark

Sync your markdown files with Confluence pages.
https://samizdat.dev
Apache License 2.0
993 stars 149 forks source link

Current User not permitted to use confluence #493

Open KeithETruesdell opened 3 weeks ago

KeithETruesdell commented 3 weeks ago

What happened?

A clear and concise description of what the bug is. I am running the command

mark -u <my username> -p <my password or key> -b <my hosted server>/wiki -f test.md --trace

And i am getting an error.

Report-To: {"endpoints": [{"url": "https://dz8aopenkvv6s.cloudfront.net/"}], "group": "endpoint-1", "include_subdomains": true, "max_age": 600}
                              Server: AtlassianEdge
                              Strict-Transport-Security: max-age=630[72](xxxxxxxx)000; includeSubDomains; preload
                              Vary: Accept-Encoding
                              Warning: 299 - "Deprecated API, will be removed on Mon, 2 Dec 2024 00:00:00 GMT"
                              X-Content-Type-Options: nosniff
                              X-Xss-Protection: 1; mode=block

                              {"message":"Current user not permitted to use Confluence","statusCode":403}
2024-08-23 16:50:50.182 FATAL unable to resolve page
                              └─ error while finding page "Test"
                                 ├─ Confluence API returned unexpected status: 403 Forbidden, output: "{\"message\":\"Current user not permitted to use Confluence\",\"statusCode\":403}"
                                 └─ title: Qos-Test

I am able to log into my companies Jira and Confluence, and I am able make posts and update them, manually. The username and password are the same, via cli or when i manually login.

What did you expect to happen?

I expect that to be updated or created.

How can we reproduce the behavior you experienced?

Steps to reproduce the behavior:

  1. Step 1 run the mark command stated above...

In case this is related to specific markdown, please provide a minimal markdown example here.

Further Information (please complete the following information)

Logs or other output

Please provide logs, other kind of output here.

Additional context

Add any other context about the problem here.

KeithETruesdell commented 3 weeks ago

is there an issue with being behind a firewall, or different methods of authentication / logins?

mrueg commented 1 week ago

Instead of using the password, you might need to create an API Token https://confluence.atlassian.com/enterprise/using-personal-access-tokens-1026032365.html can you try with this and see if it's working?