Wordpress Transparent OAuth 1.0 Login with PHP Wordpress Transparent OAuth 1.0 Login with PHP wordpress wordpress

Wordpress Transparent OAuth 1.0 Login with PHP


As I can't comment directly, but would like to offer my observation, it looks like you are trying to set the oauth_token twice, once in the redirect URL, and once again as a separate data key/value. Try either:

$data = array();$data['log'] = $login;$data['pwd'] = $password;$data['redirect_to']="/wp-login.php?action=oauth1_authorize&oauth_token=" . $req_token;$data['testcookie']="1";

or

$data = array();$data['log'] = $login;$data['pwd'] = $password;$data['redirect_to']="/wp-login.php?action=oauth1_authorize";$data['testcookie']="1";$data['oauth_token']=$req_token;

But really you can't have both.