{"action":"created","issue":{"url":"https://api.github.com/repos/ExM/BuildRevisionCounter/issues/4","labels_url":"https://api.github.com/repos/ExM/BuildRevisionCounter/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/ExM/BuildRevisionCounter/issues/4/comments","events_url":"https://api.github.com/repos/ExM/BuildRevisionCounter/issues/4/events","html_url":"https://github.com/ExM/BuildRevisionCounter/issues/4","id":57165405,"number":4,"title":"Реализовать разграничение доступа к методам","user":{"login":"ExM","id":485331,"avatar_url":"https://avatars.githubusercontent.com/u/485331?v=3","gravatar_id":"","url":"https://api.github.com/users/ExM","html_url":"https://github.com/ExM","followers_url":"https://api.github.com/users/ExM/followers","following_url":"https://api.github.com/users/ExM/following{/other_user}","gists_url":"https://api.github.com/users/ExM/gists{/gist_id}","starred_url":"https://api.github.com/users/ExM/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ExM/subscriptions","organizations_url":"https://api.github.com/users/ExM/orgs","repos_url":"https://api.github.com/users/ExM/repos","events_url":"https://api.github.com/users/ExM/events{/privacy}","received_events_url":"https://api.github.com/users/ExM/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-02-10T11:58:17Z","updated_at":"2015-03-19T14:39:23Z","closed_at":null,"body":"схема: basic-authentication\r\nв БД логин пароль хранить в открытом виде"},"comment":{"url":"https://api.github.com/repos/ExM/BuildRevisionCounter/issues/comments/83611831","html_url":"https://github.com/ExM/BuildRevisionCounter/issues/4#issuecomment-83611831","issue_url":"https://api.github.com/repos/ExM/BuildRevisionCounter/issues/4","id":83611831,"user":{"login":"konstantin-uniyatov","id":11556758,"avatar_url":"https://avatars.githubusercontent.com/u/11556758?v=3","gravatar_id":"","url":"https://api.github.com/users/konstantin-uniyatov","html_url":"https://github.com/konstantin-uniyatov","followers_url":"https://api.github.com/users/konstantin-uniyatov/followers","following_url":"https://api.github.com/users/konstantin-uniyatov/following{/other_user}","gists_url":"https://api.github.com/users/konstantin-uniyatov/gists{/gist_id}","starred_url":"https://api.github.com/users/konstantin-uniyatov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/konstantin-uniyatov/subscriptions","organizations_url":"https://api.github.com/users/konstantin-uniyatov/orgs","repos_url":"https://api.github.com/users/konstantin-uniyatov/repos","events_url":"https://api.github.com/users/konstantin-uniyatov/events{/privacy}","received_events_url":"https://api.github.com/users/konstantin-uniyatov/received_events","type":"User","site_admin":false},"created_at":"2015-03-19T14:39:23Z","updated_at":"2015-03-19T14:39:23Z","body":"Все равно какая-то странность. Если вариант номер 2, то, например метод api/counter (admin, editor, anonymous). Для доступа к этому методу не нужно предоставлять логин пароль, но если предоставил, то нужно быть admin или editor. Думаю, логично было бы выбрать одни из двух вариантов\r\n1. Не требовать аутентификации для этого метода вообще. т.е. api/counter (anonymous)\r\n2. Запретить анонимный доступ к этому методу. api/counter (admin, editor)"}}