{"action":"created","issue":{"url":"https://api.github.com/repos/kstep/vkrs/issues/64","repository_url":"https://api.github.com/repos/kstep/vkrs","labels_url":"https://api.github.com/repos/kstep/vkrs/issues/64/labels{/name}","comments_url":"https://api.github.com/repos/kstep/vkrs/issues/64/comments","events_url":"https://api.github.com/repos/kstep/vkrs/issues/64/events","html_url":"https://github.com/kstep/vkrs/issues/64","id":304144145,"number":64,"title":"[Question] Migrate to oauth2 crate","user":{"login":"tyranron","id":7114909,"avatar_url":"https://avatars1.githubusercontent.com/u/7114909?v=4","gravatar_id":"","url":"https://api.github.com/users/tyranron","html_url":"https://github.com/tyranron","followers_url":"https://api.github.com/users/tyranron/followers","following_url":"https://api.github.com/users/tyranron/following{/other_user}","gists_url":"https://api.github.com/users/tyranron/gists{/gist_id}","starred_url":"https://api.github.com/users/tyranron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tyranron/subscriptions","organizations_url":"https://api.github.com/users/tyranron/orgs","repos_url":"https://api.github.com/users/tyranron/repos","events_url":"https://api.github.com/users/tyranron/events{/privacy}","received_events_url":"https://api.github.com/users/tyranron/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-11T09:40:09Z","updated_at":"2018-03-27T13:12:46Z","closed_at":null,"author_association":"NONE","body":"Thank you for you crate!\r\n\r\nThis crate currently is built on top of [inth-oauth2](https://crates.io/crates/inth-oauth2) crate which on its latest version 0.15.0 (unstable, though) still [hardcodes `response_type` to be `code`](https://github.com/programble/inth-oauth2/blob/v0.15.0/src/client/mod.rs#L93).\r\n\r\nHowever, there is another [oauth2](https://crates.io/crates/oauth2) crate which is considered to be stable and has more wide support of OAuth2 features (`response_type=token` too). It's also belongs to [Alex Crichton](https://github.com/alexcrichton) (so has high guarantees of supporting/evolving and being Rust'ish asap).\r\n\r\nSupporting `response_type=token` is quite necessary for VK API client, as only such type of tokens [allows to use extended API methods](https://vk.com/dev/oauth_dialog):\r\n\r\n> Примечание\r\n> * Если Вы разрабатываете Standalone-приложение и параметр response_type = \"token\", то в качестве параметра redirect_uri необходимо указывать адрес https://oauth.vk.com/blank.html, на который будут переданы данные авторизации. Обратите внимание, что только в данном случае у Вас будет возможность использовать расширенные методы работы с API.\r\n\r\nP.S. Is this crate currently abandoned?"},"comment":{"url":"https://api.github.com/repos/kstep/vkrs/issues/comments/376519606","html_url":"https://github.com/kstep/vkrs/issues/64#issuecomment-376519606","issue_url":"https://api.github.com/repos/kstep/vkrs/issues/64","id":376519606,"user":{"login":"kstep","id":28537,"avatar_url":"https://avatars0.githubusercontent.com/u/28537?v=4","gravatar_id":"","url":"https://api.github.com/users/kstep","html_url":"https://github.com/kstep","followers_url":"https://api.github.com/users/kstep/followers","following_url":"https://api.github.com/users/kstep/following{/other_user}","gists_url":"https://api.github.com/users/kstep/gists{/gist_id}","starred_url":"https://api.github.com/users/kstep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kstep/subscriptions","organizations_url":"https://api.github.com/users/kstep/orgs","repos_url":"https://api.github.com/users/kstep/repos","events_url":"https://api.github.com/users/kstep/events{/privacy}","received_events_url":"https://api.github.com/users/kstep/received_events","type":"User","site_admin":false},"created_at":"2018-03-27T13:12:46Z","updated_at":"2018-03-27T13:12:46Z","author_association":"OWNER","body":"More or less. I'm a little distracted from active Rust development now, but I happily accept PRs."}}
{"actor":{"display_login":"kstep"}}