Added authentication for the posts controller in the form of a private authenticate() method. #3

Open
wants to merge 30 commits into
from

Projects

None yet

9 participants

@Achillefs

The authentication method utilizes the 'author' and 'user_password' query vars if they exist to try and authenticate the user. If authentication fails you get an error, and if the variables do not both exist the method fall back to the previously implemented functionality.

crgwbr and others added some commits Apr 25, 2011
@crgwbr crgwbr added support for post_status query param. Example: get_category_post…
…s/?slug=faq&post_status=future
c3a90a5
@crgwbr crgwbr Added support for category_id, category_slug, tag_id, and tag_slug as…
… query params from any list method (get_tag_posts, get_category_posts, etc.). This allows more fine contorl over posts queries.
2097ca8
@supercleanse supercleanse Added multisite and users controllers... 021f05b
Achilles Charmpilas posts controller now supports simple authentication via the 'author' …
…and 'user_password' query values
7d1f8b4
schpet and others added some commits Feb 9, 2012
@schpet schpet make JSON_API_CONTROLLERS really set default controllers 66befb4
@edavis10 edavis10 Support setting 'date' when saving a Post ac0743e
@jbergen jbergen updated readme to markdown 849072c
@jbergen jbergen added language types to code blocks for git markdown 1211d69
@fabienric fabienric Date can be set at post creation
Added the parameter 'date' to the 'create_post' function.
The parameter is mapped to 'post_date' in Wordpress.
514e3ba
@fabienric fabienric Post metadata can be set at post creation
Added the parameter 'meta' which contains an array of 'key' => 'value'.
The Wordpress function 'update_post_meta' is called for each pair.
051fd84
@Achillefs Achillefs Merge pull request #1 from Caseproof/master
Added multisite and users controllers
6b6dbe1
@Achillefs Achillefs Merge pull request #2 from crgwbr/master
Expanded allowed parameters
0e922b4
@Achillefs Achillefs Merge pull request #5 from jbergen/master
better readme file
d1c8224
@Achillefs Achillefs Merge pull request #4 from edavis10/master
Support setting 'date' when saving a Post
8cea24d
@Achillefs Achillefs Merge pull request #3 from peterschilling/master
make JSON_API_CONTROLLERS really set default controllers
50742df
@Achillefs Achillefs Merge pull request #6 from fabienric/master
Post metadata can be set at post creation
96f7ab6
Achilles Charmpilas added slug update capability to the API 2343e03
Achilles Charmpilas implemented a post exists method. Currently only works for post meta …
…queries
3f17953
Achilles Charmpilas meta post_exists looks in future and trashed posts as well dce1500
@parse parse Fixed undefined index notice in API listing ffa7092
@Achillefs Achillefs Merge pull request #7 from parse/master
Fixed undefined index notice
5010bd5
Achilles Charmpilas whitespace a228bde
Achilles Charmpilas Merge branch 'master' of github.com:Achillefs/wp-json-api eeb4259
Achilles Charmpilas started with doc update 1035fb4
@aMoniker aMoniker add get_posts passthrough api method 06b9bc5
@aMoniker aMoniker add image alt_text to attachment if present 6bcecc0
@aMoniker aMoniker add support for get_posts category param 0d0c723
@Achillefs Achillefs Merge pull request #9 from aMoniker/add_image_alt_text
Add alt_text to image attachments
aded get_posts API method
99befc8
@Achillefs Achillefs Merge pull request #8 from aMoniker/get_posts
add get_posts passthrough api method
ecfb171
@Achillefs Achillefs Update readme.md
removed changelog as version do not apply an more
ca85a75
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment