Title: Authentication question
Last modified: August 24, 2016

---

# Authentication question

 *  Resolved [Justin Greer](https://wordpress.org/support/users/justingreerbbi/)
 * (@justingreerbbi)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/authentication-question/)
 * I am the developer for the WP OAuth Server plugin and recently have been approached
   a few times in the past month about my plugin being used to authorize users to
   access your API. I have taken a glance at the plugin but have not look to deep
   into the matter. I however think it would be a great addition to add support 
   for your plugin since the resource server portion of my plugin is no where near
   a robust as what you offer.
 * Before I go digging around to much, would you be able to direct me to the right
   resource to ensure proper authorization before redirecting to your plugin? Possibly
   an action of sorts?
 * Thanks
 * [https://wordpress.org/plugins/json-rest-api/](https://wordpress.org/plugins/json-rest-api/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Ryan McCue](https://wordpress.org/support/users/rmccue/)
 * (@rmccue)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/authentication-question/#post-6011684)
 * The REST API uses WP’s built-in authentication system, however requires a nonce
   to be passed unless specific handling is added for it.
 * Your best bet for custom authentication is to hook into the `determine_current_user`
   filter in core to do authentication, and then filter `json_authentication_errors`
   to integrate with the API. `WP_JSON_Server::check_authentication()` has documentation
   on how to use the latter. 🙂
 *  Thread Starter [Justin Greer](https://wordpress.org/support/users/justingreerbbi/)
 * (@justingreerbbi)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/authentication-question/#post-6011748)
 * Thanks for the info 🙂

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Authentication question’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/json-rest-api_2e3641.svg)
 * [WP REST API (WP API)](https://wordpress.org/plugins/json-rest-api/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/json-rest-api/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/json-rest-api/)
 * [Active Topics](https://wordpress.org/support/plugin/json-rest-api/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/json-rest-api/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/json-rest-api/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Justin Greer](https://wordpress.org/support/users/justingreerbbi/)
 * Last activity: [11 years, 1 month ago](https://wordpress.org/support/topic/authentication-question/#post-6011748)
 * Status: resolved