Title: Setup and test client
Last modified: November 30, 2020

---

# Setup and test client

 *  Resolved [gomatrix](https://wordpress.org/support/users/gomatrix/)
 * (@gomatrix)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/setup-and-test-client/)
 * I’ve installed wp-oauth-provider (on dreamhost.com shared hosting) and I’m trying
   to test if I’ve set it up correctly. What’s a good client to test with?
 * I’m following:
    [https://wp-oauth.com/docs/how-to/setup-wp-oauth-server-for-single-sign-on-with-wordpress/](https://wp-oauth.com/docs/how-to/setup-wp-oauth-server-for-single-sign-on-with-wordpress/)
   and testing with: [https://github.com/justingreerbbi/wordpress-oauth-server-clients/tree/master/Generic%20PHP%20Client](https://github.com/justingreerbbi/wordpress-oauth-server-clients/tree/master/Generic%20PHP%20Client)
 * That client seems to be working and showing a form with a “Post” button, but 
   when I click the “Post” form button, it correctly sends me to the WordPress/WP-
   Oauth server, which then returns:
    [https://example.com/oauth/authorize/response_type=code&client_id=0mXXX&redirect_uri=http://client.example.org/callback.php](https://example.com/oauth/authorize/response_type=code&client_id=0mXXX&redirect_uri=http://client.example.org/callback.php){“
   error”:”invalid_request”,”error_description”:”unknown request”}
 * Is there some other simple client I should test with? A custom curl command?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fsetup-and-test-client%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Justin Greer](https://wordpress.org/support/users/justingreerbbi/)
 * (@justingreerbbi)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/setup-and-test-client/#post-13723592)
 * Hi,
 * Thanks for reaching out about this. After looking at the documentation you cite
   and repository, I am going to refactor the entire client as it is 6 years old
   and overly complicated.
 * I am refactoring the example clients now and will have a very simple example 
   up soon. The current examples are very complicated considering how easy it really
   is.
 * I will update this thread when I have something in place.
 *  Plugin Author [Justin Greer](https://wordpress.org/support/users/justingreerbbi/)
 * (@justingreerbbi)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/setup-and-test-client/#post-13723691)
 * I just updated the GitHub repo to reflect a very simple Authentication Code request.
   It also demonstrates how to request the user information.
 * If you have any questions about the new setup, we can walk through the process
   now that things are simpler to follow.
 * See the new repo example at [https://github.com/justingreerbbi/wordpress-oauth-server-clients/tree/master/generic](https://github.com/justingreerbbi/wordpress-oauth-server-clients/tree/master/generic)
 * Thanks
    -  This reply was modified 5 years, 6 months ago by [Justin Greer](https://wordpress.org/support/users/justingreerbbi/).

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

The topic ‘Setup and test client’ is closed to new replies.

 * ![](https://ps.w.org/oauth2-provider/assets/icon-256x256.gif?rev=2603051)
 * [WP OAuth Server (OAuth Authentication)](https://wordpress.org/plugins/oauth2-provider/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/oauth2-provider/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/oauth2-provider/)
 * [Active Topics](https://wordpress.org/support/plugin/oauth2-provider/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/oauth2-provider/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/oauth2-provider/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Justin Greer](https://wordpress.org/support/users/justingreerbbi/)
 * Last activity: [5 years, 6 months ago](https://wordpress.org/support/topic/setup-and-test-client/#post-13723691)
 * Status: resolved