• Resolved Justin Greer

    (@justingreerbbi)


    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://www.ads-software.com/plugins/json-rest-api/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Ryan McCue

    (@rmccue)

    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

    (@justingreerbbi)

    Thanks for the info ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Authentication question’ is closed to new replies.