Skip to content

is the API-Bearer-Token-Authorization really working? #1536

@RowhamD

Description

@RowhamD

I'm trying to use the API from the just released V2.0 from the bash-command-line.

I'm able to get a access-token:
curl --location 'https://planka.mydomain.de/api/access-tokens' --header 'Content-Type: application/json' --header 'Accept: application/json' --header 'Authorization: Bearer <token>' --data-raw '{ "emailOrUsername": "demo", "password": "demo", "withHttpOnlyToken": true}'
which responds:
{"item":"longTokenStringfOXeAOUfw"}

Trying to use this token as described here:
https://documenter.getpostman.com/view/48263477/2sB3HqJebc#b9994d3d-496b-479f-af8a-ed47d6e60d49
curl --location 'https://planka.mydomain.de/api/projects' --header 'Accept: application/json' --header 'Authorization: Bearer longTokenStringfOXeAOUfw'
always returns:
{"code":"E_UNAUTHORIZED","message":"Access token is missing, invalid or expired"}

Am I doing something wrong?!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions