Why Do I Get Unauthorized for REST API in Magento 1.9?

apimagento-1.9rest

I setup the admin to access resources through REST API.
Here is my current setup:
enter image description here

Then I assigned a Role user for the admin:

enter image description here

When I login as an admin and try to access the REST API, I still get unauthorized as seen here:

enter image description here

Any ideas of what I am missing?

Best Answer

I found the problem. The URL passed for authorization has to be over https, otherwise you get the error message.

https://magentohost/admin/oauth_authorize