{"action":"created","issue":{"url":"https://api.github.com/repos/owin-middleware/OwinOAuthProviders/issues/59","labels_url":"https://api.github.com/repos/owin-middleware/OwinOAuthProviders/issues/59/labels{/name}","comments_url":"https://api.github.com/repos/owin-middleware/OwinOAuthProviders/issues/59/comments","events_url":"https://api.github.com/repos/owin-middleware/OwinOAuthProviders/issues/59/events","html_url":"https://github.com/owin-middleware/OwinOAuthProviders/issues/59","id":60632629,"number":59,"title":"GitHub: Scope initial value should be empty","user":{"login":"ByteBlast","id":2092112,"avatar_url":"https://avatars.githubusercontent.com/u/2092112?v=3","gravatar_id":"","url":"https://api.github.com/users/ByteBlast","html_url":"https://github.com/ByteBlast","followers_url":"https://api.github.com/users/ByteBlast/followers","following_url":"https://api.github.com/users/ByteBlast/following{/other_user}","gists_url":"https://api.github.com/users/ByteBlast/gists{/gist_id}","starred_url":"https://api.github.com/users/ByteBlast/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ByteBlast/subscriptions","organizations_url":"https://api.github.com/users/ByteBlast/orgs","repos_url":"https://api.github.com/users/ByteBlast/repos","events_url":"https://api.github.com/users/ByteBlast/events{/privacy}","received_events_url":"https://api.github.com/users/ByteBlast/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-11T09:43:36Z","updated_at":"2015-03-11T09:51:49Z","closed_at":null,"body":"`GitHubAuthenticationOptions` [`Scope`](https://github.com/owin-middleware/OwinOAuthProviders/blob/master/Owin.Security.Providers/GitHub/GitHubAuthenticationOptions.cs#L134) has the following default value: \r\n\r\n```c#\r\n[\"user\"]\r\n```\r\n\r\nI only need public profile information and therefore want to pass **no scope**. At the moment I have to do this: \r\n\r\n```c#\r\nvar options = new GitHubAuthenticationOptions\r\n{\r\n    ClientId = \"dc2119b9f611c6fec9c6\",\r\n    ClientSecret = \"d028ee0e40ed333e53efa5dd2aba3e0e56bbfbee\",\r\n};\r\noptions.Scope.Clear();\r\napp.UseGitHubAuthentication(options);\r\n```\r\n\r\nI propose that `Scope` default to an empty sequence (`[]`). This will enable the following syntax:\r\n\r\n```c#\r\napp.UseGitHubAuthentication(\"dc2119b9f611c6fec9c6\", \"d028ee0e40ed333e53efa5dd2aba3e0e56bbfbee\");\r\n```\r\n\r\nIf you want to add the `user` scope again, you could do so easily using a collection initializer like so: \r\n\r\n```c#\r\napp.UseGitHubAuthentication(new GitHubAuthenticationOptions\r\n{\r\n    ClientId = \"dc2119b9f611c6fec9c6\",\r\n    ClientSecret = \"d028ee0e40ed333e53efa5dd2aba3e0e56bbfbee\",\r\n    Scope = { \"user\" }\r\n});\r\n```\r\n\r\nI think you will agree that the syntax to opt-in is (1) more expressive and (2) easier to come about than the current syntax to opt-out.\r\n\r\nThoughts? I can submit a pull request if you want. \r\n"},"comment":{"url":"https://api.github.com/repos/owin-middleware/OwinOAuthProviders/issues/comments/78233246","html_url":"https://github.com/owin-middleware/OwinOAuthProviders/issues/59#issuecomment-78233246","issue_url":"https://api.github.com/repos/owin-middleware/OwinOAuthProviders/issues/59","id":78233246,"user":{"login":"Mavamaarten","id":7346786,"avatar_url":"https://avatars.githubusercontent.com/u/7346786?v=3","gravatar_id":"","url":"https://api.github.com/users/Mavamaarten","html_url":"https://github.com/Mavamaarten","followers_url":"https://api.github.com/users/Mavamaarten/followers","following_url":"https://api.github.com/users/Mavamaarten/following{/other_user}","gists_url":"https://api.github.com/users/Mavamaarten/gists{/gist_id}","starred_url":"https://api.github.com/users/Mavamaarten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mavamaarten/subscriptions","organizations_url":"https://api.github.com/users/Mavamaarten/orgs","repos_url":"https://api.github.com/users/Mavamaarten/repos","events_url":"https://api.github.com/users/Mavamaarten/events{/privacy}","received_events_url":"https://api.github.com/users/Mavamaarten/received_events","type":"User","site_admin":false},"created_at":"2015-03-11T09:51:49Z","updated_at":"2015-03-11T09:51:49Z","body":"I agree that having no scope by default makes more sense."}}