documentation icon indicating copy to clipboard operation
documentation copied to clipboard

[Request]: Extend users permissions plugin to use token passed as query parameter

Open jimsheen opened this issue 3 years ago • 1 comments

Summary

In the previous version's documentation. There was an example of how to extend the users-permissions plugin to look for a token query parameter and validate a user against that. https://strapi.gitee.io/documentation/v3.x/guides/api-token.html#setup-the-file-to-override

I would like to know how to achieve the same thing in V4 please.

Why is it needed?

I am aware there is a new API Token type that can be used but I would still like to be able to extend/customise the functionality myself

Suggested solution(s)

No response

Related issue(s)/PR(s)

No response

jimsheen avatar Feb 15 '22 16:02 jimsheen

Hello @jimsheen I am sorry for the very late reply. We are just about to release a new version of the API token. I will check with the devs if this is possible or not.

stb13579 avatar Sep 23 '22 15:09 stb13579

Hi and apologies again that it took so long to get another answer. I'm not sure that what you try to achieve is possible anymore in Strapi v4, as Users & Permissions and API tokens are 2 different strategies and you need to choose one or another. You might find additional information in the contributors documentation (for instance at https://contributor.strapi.io/docs/core/admin/permissions/frontend/fetching-permissions). I'll transfer this request to our internal backlog and we'll take this into consideration for the Strapi v5 documentation that we've just started writing. I'll close this issue now, thanks for your precious feedback!

pwizla avatar Oct 25 '23 09:10 pwizla