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

Authentication happening if no auth header is sent. #10

Merged
merged 1 commit into from Sep 8, 2014

Conversation

tlovett1
Copy link
Member

@tlovett1 tlovett1 commented Sep 8, 2014

If basic auth is used, we need to return null for json_basic_auth_error. Right now, if basic auth isn't used, we just assume the user is authenticated even if no authentication method has been used.

To confirm this bug, view /posts/?context=edit (without sending a nonce) while the Basic Auth plugin is enabled. You will see posts when you shouldn't.

…null for json_basic_auth_error; right now if basic auth isnt used we just assume the user is authenticated even if no authentication method has been used.
@rmccue
Copy link
Member

rmccue commented Sep 8, 2014

Good catch, thanks!

rmccue added a commit that referenced this pull request Sep 8, 2014
Authentication happening if no auth header is sent.
@rmccue rmccue merged commit d5be076 into WP-API:master Sep 8, 2014
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

Successfully merging this pull request may close these issues.

None yet

2 participants