{"action":"created","issue":{"url":"https://api.github.com/repos/magento/magento2/issues/9138","repository_url":"https://api.github.com/repos/magento/magento2","labels_url":"https://api.github.com/repos/magento/magento2/issues/9138/labels{/name}","comments_url":"https://api.github.com/repos/magento/magento2/issues/9138/comments","events_url":"https://api.github.com/repos/magento/magento2/issues/9138/events","html_url":"https://github.com/magento/magento2/issues/9138","id":219534020,"number":9138,"title":"webapi admin authentication","user":{"login":"skymeissner","id":7371456,"avatar_url":"https://avatars3.githubusercontent.com/u/7371456?v=3","gravatar_id":"","url":"https://api.github.com/users/skymeissner","html_url":"https://github.com/skymeissner","followers_url":"https://api.github.com/users/skymeissner/followers","following_url":"https://api.github.com/users/skymeissner/following{/other_user}","gists_url":"https://api.github.com/users/skymeissner/gists{/gist_id}","starred_url":"https://api.github.com/users/skymeissner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skymeissner/subscriptions","organizations_url":"https://api.github.com/users/skymeissner/orgs","repos_url":"https://api.github.com/users/skymeissner/repos","events_url":"https://api.github.com/users/skymeissner/events{/privacy}","received_events_url":"https://api.github.com/users/skymeissner/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2017-04-05T10:15:31Z","updated_at":"2017-04-05T13:53:39Z","closed_at":null,"body":"The devdocs clearly state that authenticated admin users can access the rest api.\r\n\r\nhttp://devdocs.magento.com/guides/v2.0/get-started/authentication/gs-authentication.html\r\n\r\n> Resources for which administrators or integrators are authorized. For example, if administrators are authorized for the Magento_Customer::group resource, they can make a GET /V1/customerGroups/:id call.\r\n\r\nBut this does not work. \r\n\r\n\r\n### Steps to reproduce\r\n1.  Install magento 2.1.5 from composer archive\r\n2. Log into you new admin account\r\n3. Open domain.com/rest/V1/customers/1 in the same browser in a new tab.\r\n\r\n### Expected result\r\nA response saying that this customer does not exist.\r\n\r\n### Actual result\r\nA response saying me I have no acccess rights.\r\n\r\n`<response>\r\n   <message>Consumer is not authorized to access %resources</message>\r\n    <parameters>\r\n      <resources>Magento_Customer::customer</resources>\r\n    </parameters>\r\n</response>`\r\n"},"comment":{"url":"https://api.github.com/repos/magento/magento2/issues/comments/291868354","html_url":"https://github.com/magento/magento2/issues/9138#issuecomment-291868354","issue_url":"https://api.github.com/repos/magento/magento2/issues/9138","id":291868354,"user":{"login":"skymeissner","id":7371456,"avatar_url":"https://avatars3.githubusercontent.com/u/7371456?v=3","gravatar_id":"","url":"https://api.github.com/users/skymeissner","html_url":"https://github.com/skymeissner","followers_url":"https://api.github.com/users/skymeissner/followers","following_url":"https://api.github.com/users/skymeissner/following{/other_user}","gists_url":"https://api.github.com/users/skymeissner/gists{/gist_id}","starred_url":"https://api.github.com/users/skymeissner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skymeissner/subscriptions","organizations_url":"https://api.github.com/users/skymeissner/orgs","repos_url":"https://api.github.com/users/skymeissner/repos","events_url":"https://api.github.com/users/skymeissner/events{/privacy}","received_events_url":"https://api.github.com/users/skymeissner/received_events","type":"User","site_admin":false},"created_at":"2017-04-05T13:53:39Z","updated_at":"2017-04-05T13:53:39Z","body":"> Admins can access resources that are assigned to their Magento Admin profile.\r\nThis is exactly what I say does not work. In the example above, in a freshly installed magento 2.1.5 the admin user created on install with role \"Administrators\" ist not allowed to access {domain.com}/rest/V1/customers/1.\r\n\r\nCan you please verify in your installation that you can \r\n1. Log into magento as admin user with role \"Administrators\"\r\n2. Access rest api resources in another tab, session based\r\n\r\n\r\n"}}
{"actor":{"display_login":"skymeissner"}}