I've recently had some success on setting up a REST client via PHP to OAuth authenticate on a Magento 1.8.x backend. I've run the same process over on my Magento CE 18.104.22.168.
Expected authorisation screen:
What actually comes up:
Besides the design difference, it does seem that the router takes me to the frontend rather than the backend. I have created a new REST role called Admin with full privileges and have added my main admin user to that role (same process that I used on Magento CE 1.8.x).
Has anyone else experienced this? Could this possibly be a bug?
It seems that no matter what I type into the 'Log In As A Customer' screen, I get redirected to the main customer login page.
My endpoints are as follows:
$callbackUrl = "http://foo.bar/test.php"; $temporaryCredentialsRequestUrl = "http://foo.bar/oauth/initiate?oauth_callback=" . urlencode($callbackUrl); $adminAuthorizationUrl = 'http://foo.bar/oauth/authorize'; $accessTokenRequestUrl = 'http://foo.bar/oauth/token'; $apiUrl = 'http://foo.bar/api/rest';