{"action":"created","issue":{"url":"https://api.github.com/repos/evonove/django-oauth-toolkit/issues/395","repository_url":"https://api.github.com/repos/evonove/django-oauth-toolkit","labels_url":"https://api.github.com/repos/evonove/django-oauth-toolkit/issues/395/labels{/name}","comments_url":"https://api.github.com/repos/evonove/django-oauth-toolkit/issues/395/comments","events_url":"https://api.github.com/repos/evonove/django-oauth-toolkit/issues/395/events","html_url":"https://github.com/evonove/django-oauth-toolkit/pull/395","id":162954136,"number":395,"title":"App specific scopes","user":{"login":"JensTimmerman","id":281523,"avatar_url":"https://avatars.githubusercontent.com/u/281523?v=3","gravatar_id":"","url":"https://api.github.com/users/JensTimmerman","html_url":"https://github.com/JensTimmerman","followers_url":"https://api.github.com/users/JensTimmerman/followers","following_url":"https://api.github.com/users/JensTimmerman/following{/other_user}","gists_url":"https://api.github.com/users/JensTimmerman/gists{/gist_id}","starred_url":"https://api.github.com/users/JensTimmerman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JensTimmerman/subscriptions","organizations_url":"https://api.github.com/users/JensTimmerman/orgs","repos_url":"https://api.github.com/users/JensTimmerman/repos","events_url":"https://api.github.com/users/JensTimmerman/events{/privacy}","received_events_url":"https://api.github.com/users/JensTimmerman/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":29,"created_at":"2016-06-29T15:22:44Z","updated_at":"2016-12-15T22:08:11Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/evonove/django-oauth-toolkit/pulls/395","html_url":"https://github.com/evonove/django-oauth-toolkit/pull/395","diff_url":"https://github.com/evonove/django-oauth-toolkit/pull/395.diff","patch_url":"https://github.com/evonove/django-oauth-toolkit/pull/395.patch"},"body":"rebased code from honestbleeps on latest master.\nfixes #216 #130 \npossibly also helps to resolve issues like #318\n"},"comment":{"url":"https://api.github.com/repos/evonove/django-oauth-toolkit/issues/comments/267458672","html_url":"https://github.com/evonove/django-oauth-toolkit/pull/395#issuecomment-267458672","issue_url":"https://api.github.com/repos/evonove/django-oauth-toolkit/issues/395","id":267458672,"user":{"login":"synasius","id":217898,"avatar_url":"https://avatars.githubusercontent.com/u/217898?v=3","gravatar_id":"","url":"https://api.github.com/users/synasius","html_url":"https://github.com/synasius","followers_url":"https://api.github.com/users/synasius/followers","following_url":"https://api.github.com/users/synasius/following{/other_user}","gists_url":"https://api.github.com/users/synasius/gists{/gist_id}","starred_url":"https://api.github.com/users/synasius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/synasius/subscriptions","organizations_url":"https://api.github.com/users/synasius/orgs","repos_url":"https://api.github.com/users/synasius/repos","events_url":"https://api.github.com/users/synasius/events{/privacy}","received_events_url":"https://api.github.com/users/synasius/received_events","type":"User","site_admin":false},"created_at":"2016-12-15T22:08:11Z","updated_at":"2016-12-15T22:08:11Z","body":"This is definitely a feature we want to merge but I do not like the current implementation. I've been working recently on a feature that adds support for scopes backends. You can see the code here https://github.com/evonove/django-oauth-toolkit/compare/scopes-backend and I wrote about it on a blog post: https://evonove.it/blog/django-oauth-toolkit-0110-released/\r\n\r\nAt the moment scopes can be changed through settings, but there is no way to implement a custom flow to obtain scopes (for instance I'd like to determine the available scopes based on the groups to which the user belongs).\r\nSo I introduced a scopes backend that expose an API to work with scopes (see https://github.com/evonove/django-oauth-toolkit/compare/scopes-backend#diff-8959a5c87f26bd1ebe41c94fa5d65c1cR7).\r\nThe default implementation uses the settings so it doesn't change the default DOT behavior (see https://github.com/evonove/django-oauth-toolkit/compare/scopes-backend#diff-8959a5c87f26bd1ebe41c94fa5d65c1cR40).\r\n\r\nI'd love to base the App-specific scope feature on this new API.\r\n\r\nWhat do you think about it?"}}
{"actor":{"display_login":"synasius"}}