I am getting a ‘Key Not Authorized’ for a request with the header 'Authorization: Bearer ’
I have 2 APIs setup with OAuth enable on them.
AuthorizationAPI
DataApi
I use the AuthorizationAPI to get the accesstoken. but the key_rules takecare of the APIs that are accessible.
{“allowance”:1000,“rate”:1000,“per”:60,“expires”:0,“quota_max”:-1,“quota_renews”:1406121006,“quota_remaining”:0,“quota_renewal_rate”:60,“org_id”:“xxxxx”,“oauth_client_id”:“xxxxx”,“hmac_enabled”:false,“hmac_string”:""}
However, when I try to use the accessToken generated using the AuthorizationApi to access the DataApi, I get “Key Not Authorized” error.
That snippet of a session you’ve sent doesn’t have any access rules set, you will need to add those into the key_rules object, like the one in the Oauth docs: