{"action":"created","issue":{"url":"https://api.github.com/repos/thephpleague/oauth2-server/issues/589","repository_url":"https://api.github.com/repos/thephpleague/oauth2-server","labels_url":"https://api.github.com/repos/thephpleague/oauth2-server/issues/589/labels{/name}","comments_url":"https://api.github.com/repos/thephpleague/oauth2-server/issues/589/comments","events_url":"https://api.github.com/repos/thephpleague/oauth2-server/issues/589/events","html_url":"https://github.com/thephpleague/oauth2-server/issues/589","id":157983312,"number":589,"title":"Scopes ","user":{"login":"TommyBs","id":952238,"avatar_url":"https://avatars.githubusercontent.com/u/952238?v=3","gravatar_id":"","url":"https://api.github.com/users/TommyBs","html_url":"https://github.com/TommyBs","followers_url":"https://api.github.com/users/TommyBs/followers","following_url":"https://api.github.com/users/TommyBs/following{/other_user}","gists_url":"https://api.github.com/users/TommyBs/gists{/gist_id}","starred_url":"https://api.github.com/users/TommyBs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TommyBs/subscriptions","organizations_url":"https://api.github.com/users/TommyBs/orgs","repos_url":"https://api.github.com/users/TommyBs/repos","events_url":"https://api.github.com/users/TommyBs/events{/privacy}","received_events_url":"https://api.github.com/users/TommyBs/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-06-01T19:05:59Z","updated_at":"2016-06-01T19:26:35Z","closed_at":null,"body":"Hi,\r\n\r\nNot really an issue with the code but I'm trying to understand the example a bit better.\r\nOn https://github.com/thephpleague/oauth2-server/blob/master/examples/src/Repositories/UserRepository.php\r\n\r\nWhat does the 'scopes' refer to here as it doesn't seem to be used or stored anywhere in a member variable? Also I'm not sure why the grantType and $clientEntity are here and what they would be used for.\r\n\r\nIs this detailed more in the OAuth specs?\r\n\r\nThanks"},"comment":{"url":"https://api.github.com/repos/thephpleague/oauth2-server/issues/comments/223098602","html_url":"https://github.com/thephpleague/oauth2-server/issues/589#issuecomment-223098602","issue_url":"https://api.github.com/repos/thephpleague/oauth2-server/issues/589","id":223098602,"user":{"login":"alexbilbie","id":77991,"avatar_url":"https://avatars.githubusercontent.com/u/77991?v=3","gravatar_id":"","url":"https://api.github.com/users/alexbilbie","html_url":"https://github.com/alexbilbie","followers_url":"https://api.github.com/users/alexbilbie/followers","following_url":"https://api.github.com/users/alexbilbie/following{/other_user}","gists_url":"https://api.github.com/users/alexbilbie/gists{/gist_id}","starred_url":"https://api.github.com/users/alexbilbie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexbilbie/subscriptions","organizations_url":"https://api.github.com/users/alexbilbie/orgs","repos_url":"https://api.github.com/users/alexbilbie/repos","events_url":"https://api.github.com/users/alexbilbie/events{/privacy}","received_events_url":"https://api.github.com/users/alexbilbie/received_events","type":"User","site_admin":false},"created_at":"2016-06-01T19:26:35Z","updated_at":"2016-06-01T19:26:35Z","body":"See the finalizeScopes method on the ScopeRepository for that\nOn Wed, 1 Jun 2016 at 20:10, TommyBs <notifications@github.com> wrote:\n\n> Ah, though thinking about it, I assume the Client Entity would allow me to\n> see what scopes the Client had requested and had been approved by the user,\n> then I could in theory set the scopes on a suitable object somewhere or\n> filter what data the userEntity makes available\n>\n> —\n> You are receiving this because you commented.\n>\n>\n> Reply to this email directly, view it on GitHub\n> <https://github.com/thephpleague/oauth2-server/issues/589#issuecomment-223094388>,\n> or mute the thread\n> <https://github.com/notifications/unsubscribe/AAEwp2hx09mF-Nu87UQ0DMq50w5vq_Biks5qHdkWgaJpZM4Ir3_9>\n> .\n>\n"}}
{"actor":{"display_login":"alexbilbie"}}