Pavlo
Forum Replies Created
-
Forum: Plugins
In reply to: [WP OAuth Server (OAuth Authentication)] Support for REST API v2Looks like createFromGlobals() function ( app/plugins/oauth2-provider/library/OAuth2/Request.php:192 ) is doing that but it does’t fire on GET request.
Forum: Plugins
In reply to: [WP OAuth Server (OAuth Authentication)] Support for REST API v2Here’s some more info from Server Status tab in admin area:
Apache/2.2.29 (Unix) mod_wsgi/3.5 Python/2.7.10 PHP/5.6.10 mod_ssl/2.2.29 OpenSSL/0.9.8zg DAV/2 mod_fastcgi/2.4.6 mod_perl/2.0.9 Perl/v5.22.0Forum: Plugins
In reply to: [WP OAuth Server (OAuth Authentication)] Support for REST API v2Clearing cookies didn’t help.
System Specs: MAMP v3.5 PHP 5.6.10, WP 4.2.2
Actually the WP installation I have is quite complicated and heavily customized. Not sure if you can recreate it.
Maybe you could give me and entry point (file/path:string_number) where the access_token parameter is grabbed from the url? Debugging might help and I will tell you what I found.
Looks like no action is fired at all whenaccess_tokenis added to the url.Forum: Plugins
In reply to: [WP OAuth Server (OAuth Authentication)] Support for REST API v2Yes, I already logged out. Was trying different user.
Maybe clearing cookies could help?Forum: Plugins
In reply to: [WP OAuth Server (OAuth Authentication)] Support for REST API v2Than maybe I’m doing something wrong. Maybe you could recognize where the mistake is.
My Steps:
– successfully obtain a an access_token with following request
POST /?oauth=token HTTP/1.1
Authorization: Basic Q0RQZzRPYXhTZENxc2VBWUl0aUd2eFdYdk1FMFQ3OnB3TGVOUDJZblZiWmxEZVdDV3BWRFZ0elNZbXhaZw==
Content-Type: application/x-www-form-urlencoded
Cookie: PHPSESSID=263793c289e388c49599ab9def797b53
Host: www.myhost.com
Connection: close
User-Agent: Paw/2.2.5 (Macintosh; OS X/10.11.3) GCDHTTPRequest
Content-Length: 63
grant_type=password&username=myuser&password=mypass– when trying to make a call to
GET https://www.myhost.com/wp-json/wp/v2/users/me?access_token=iwkl3yfwuv5fr5c7pz3ko8mlftjhsnddmnre1qc0I get an 401 errorYou are not currently logged in.Any ideas what could be wrong here?