{"action":"opened","issue":{"url":"https://api.github.com/repos/e-government-ua/i/issues/502","labels_url":"https://api.github.com/repos/e-government-ua/i/issues/502/labels{/name}","comments_url":"https://api.github.com/repos/e-government-ua/i/issues/502/comments","events_url":"https://api.github.com/repos/e-government-ua/i/issues/502/events","html_url":"https://github.com/e-government-ua/i/issues/502","id":93279665,"number":502,"title":"В существующей системе basic-авторизации (через фильтр, спринг и сверкой логина/пароля с Активити) - доработать альтернативный механизм по одноразовому коду","user":{"login":"bvv4ik","id":4208821,"avatar_url":"https://avatars.githubusercontent.com/u/4208821?v=3","gravatar_id":"","url":"https://api.github.com/users/bvv4ik","html_url":"https://github.com/bvv4ik","followers_url":"https://api.github.com/users/bvv4ik/followers","following_url":"https://api.github.com/users/bvv4ik/following{/other_user}","gists_url":"https://api.github.com/users/bvv4ik/gists{/gist_id}","starred_url":"https://api.github.com/users/bvv4ik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bvv4ik/subscriptions","organizations_url":"https://api.github.com/users/bvv4ik/orgs","repos_url":"https://api.github.com/users/bvv4ik/repos","events_url":"https://api.github.com/users/bvv4ik/events{/privacy}","received_events_url":"https://api.github.com/users/bvv4ik/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/e-government-ua/i/labels/hi%20priority","name":"hi priority","color":"e11d21"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/e-government-ua/i/milestones/2","html_url":"https://github.com/e-government-ua/i/milestones/Auth","labels_url":"https://api.github.com/repos/e-government-ua/i/milestones/2/labels","id":1063345,"number":2,"title":"Auth","description":"Разработка и организация системы авторизации и обмен персональных/авторизационных данных граждан между нашим бэком и Банками или другими структурами","creator":{"login":"bvv4ik","id":4208821,"avatar_url":"https://avatars.githubusercontent.com/u/4208821?v=3","gravatar_id":"","url":"https://api.github.com/users/bvv4ik","html_url":"https://github.com/bvv4ik","followers_url":"https://api.github.com/users/bvv4ik/followers","following_url":"https://api.github.com/users/bvv4ik/following{/other_user}","gists_url":"https://api.github.com/users/bvv4ik/gists{/gist_id}","starred_url":"https://api.github.com/users/bvv4ik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bvv4ik/subscriptions","organizations_url":"https://api.github.com/users/bvv4ik/orgs","repos_url":"https://api.github.com/users/bvv4ik/repos","events_url":"https://api.github.com/users/bvv4ik/events{/privacy}","received_events_url":"https://api.github.com/users/bvv4ik/received_events","type":"User","site_admin":false},"open_issues":4,"closed_issues":4,"state":"open","created_at":"2015-04-11T19:14:13Z","updated_at":"2015-07-06T13:32:45Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2015-07-06T13:32:45Z","updated_at":"2015-07-06T13:32:45Z","closed_at":null,"body":"смотреть в запросе параметр sAccessKey и nID_Subject и:\r\n- [ ] 1) если они есть, то проверять авторизацию по альтернативному алгоритму.\r\n(в процессе будут использованы методы, написанные по задаче: \r\nhttps://github.com/e-government-ua/i/issues/501)\r\n- [ ] 1.1) через метод getAccessData - загрузить данные по ключу (sAccessKey)\r\n- [ ] 1.2) содержимое должно равняться значению nID_Subject\r\n- [ ] 1.3) если getAccessData ничего не вернул  то выводить ошибку \"Error custom authorization - key is absant\" \r\n- [ ] 1.4) если getAccessData вернул значение, не совпадающее с nID_Subject\", то выводить ошибку \"Error custom authorization - key data is wrong\" \r\n- [ ] 1.5) если п.1.2 прошел успешно, то отрабатывать removeAccessData по ключу sAccessKey\r\nи отрабатывать авторизацию успешно\r\n- [ ] 2) если их нет, то проверять авторизацию как обычно"}}