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

Only the full access role can use WP-REST API calls with authentication properly #258

Open
dukaan opened this issue Sep 19, 2018 · 1 comment

Comments

@dukaan
Copy link

dukaan commented Sep 19, 2018

I want to use the /posts API call of Wordpress and it works properly for users with the admin role. When I am calling that endpoint with a user not having full access I am expecting to get all posts that user is allowed to see, but an empty array is returned in the response.

Is this intended? And if yes, how can I get all posts via the dedicated REST call with the plugin activated and not giving everyone the full access role?

@dukaan
Copy link
Author

dukaan commented Oct 18, 2018

The problem wasn't really the plugin itself but with Apache server settings. You have to explicitly allow Authorization Headers otherwise REST calls won't use set authorization information. See Tmeister/wp-api-jwt-auth#1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant