-
Notifications
You must be signed in to change notification settings - Fork 53
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
User tokens #200
base: user-tokens
Are you sure you want to change the base?
User tokens #200
Conversation
…ntaining references to public entries.
Have update to support mixed queries! |
Added the required Headers in order to update the token on each request. However I seem to have found a limitation with the user-tokens branch, there is now no anonymous querying functionality even with a predefined token that I set via the user settings. Any ideas? |
Him, I'll take a peek but ideally anyone could query |
Seems best workaround is just generating a "Public" token under /admin/settings/plugins/craftql since even though it is unique for the admin user it does not seem to assume the user when checking it as a JWT. Just be sure to limit the scope of the token eg. Only allowing it to view certain entity types. On the frontend if the user is not logged in use the "Public" token and then once the user logs in switch to the new token. Example as an option within VueApollo
|
Added permissions for individual entry types. Such that some can be public and others private per user.
Limitation: One cannot mix private and public types in the same query since it will fallback to then only showing entries that the user is the author of.