Support » Developing with WordPress » oAuth2 Server + Custom Endpoints

  • Hello,

    I use the oAUth2 Server Plugin.
    So I want to create a custom endpoint that is protected with oAuth2.

    When i try to POST data to the following route i get a 403 error even when I send the request with a valid token.

    register_rest_route("foo/v1", "/foo", array(
    		"methods" => "POST",
    		"callback" => "foo",
    		"permission_callback" => function() {
    			return current_user_can("edit_other_posts");
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘oAuth2 Server + Custom Endpoints’ is closed to new replies.