Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENHANCEMENT: Support of personal access tokens for authorization? #23

Closed
andreas-hempel opened this issue Apr 18, 2024 · 1 comment
Closed
Assignees
Labels
enhancement New feature or request

Comments

@andreas-hempel
Copy link

In confluence I have the option of creating a personal access token for authorization. Is it possible to support access via PAT in addition to authentication via user/password?

Here is an example curl call to create a page via PAT.

curl --location 'https://{{server}}:{{port}}/rest/api/content' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {{personalAccessToken}}' \
--data '{
    "type": "page",
    "title": "new page",
    "ancestors": [
        {
            "id": {{ancestorId}}
        }
    ],
    "space": {
        "key": "{{spaceKey}}"
    },
    "body": {
        "storage": {
            "value": "<h1>This is a new page</h1>",
            "representation": "storage"
        }
    }
}'

Kind Regards,
Andreas

@andreas-hempel andreas-hempel changed the title Support of personal access tokens for authorization? ENHANCEMENT: Support of personal access tokens for authorization? Apr 18, 2024
@PacoVK PacoVK added the enhancement New feature or request label Apr 18, 2024
@PacoVK
Copy link
Owner

PacoVK commented Apr 18, 2024

Thats a good idea! Thanks for bringing this up :) Released with 0.3.0

@PacoVK PacoVK self-assigned this Apr 18, 2024
@PacoVK PacoVK closed this as completed Apr 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants