strapi-community/strapi-plugin-io

[FR]: Add API Tokens support

tomstorms opened this issue · 5 comments

What issue are you experiencing?

Looking for a working example using the 'API Tokens' (https://docs.strapi.io/user-docs/latest/settings/managing-global-settings.html#managing-api-tokens) rather than user JWT tokens (or whether anyone has a workaround?).

When I dig further, can see it fails in the jsonwebtoken module (verify.js, line 63) flagging that the token provided is "jwt malformed" and missing the 3 dot (.) parts of the JWT token.

Steps To Reproduce

No response

What version of the plugin are you using?

1.1.2

What strapi version are you using?

4.5.1

Thanks for the report I will need to look into this. At the moment no, it will not work with API tokens.

This should be available in v2, feel free to check it out early using the v2.0.0 branch.

NOTE: As its a major version their are breaking changes.

Something news when it would be released ?

I have not received much feedback on the newer version.

I will do some final testing and try and get at least an alpha of it released soon. Since their was not much feedback hopefully everything is resolved and works as expected in the newer version.

This is now possible in the lastest v2 release. See the docs for an API token connection.