I am trying to use the Magento 2 rest API, but even when just curl'ing from command line, the only response I get is Consumer is not authorized to access %resources
I managed to get a token with
curl -X POST "http://magento.dev.blackorange.nl/index.php/rest/V1/integration/admin/token" \
-H "Content-Type:application/json" \
-d '{"username":"adminuser", "password":"adminpass"}'`
but when i try
curl -X GET -H "Authorization: Bearer TOKEN" "http://magento.dev.blackorange.nl/rest/V1/products"
(or any other endpoint) I get the-the Consumer is not authorized to access %resources
message
Am I missing a step somewhere?