{"action":"created","issue":{"url":"https://api.github.com/repos/nsheridan/cashier/issues/8","repository_url":"https://api.github.com/repos/nsheridan/cashier","labels_url":"https://api.github.com/repos/nsheridan/cashier/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/nsheridan/cashier/issues/8/comments","events_url":"https://api.github.com/repos/nsheridan/cashier/issues/8/events","html_url":"https://github.com/nsheridan/cashier/issues/8","id":157355752,"number":8,"title":"Evaluate non-organisation configuration options for github / google providers","user":{"login":"patrickod","id":84262,"avatar_url":"https://avatars.githubusercontent.com/u/84262?v=3","gravatar_id":"","url":"https://api.github.com/users/patrickod","html_url":"https://github.com/patrickod","followers_url":"https://api.github.com/users/patrickod/followers","following_url":"https://api.github.com/users/patrickod/following{/other_user}","gists_url":"https://api.github.com/users/patrickod/gists{/gist_id}","starred_url":"https://api.github.com/users/patrickod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patrickod/subscriptions","organizations_url":"https://api.github.com/users/patrickod/orgs","repos_url":"https://api.github.com/users/patrickod/repos","events_url":"https://api.github.com/users/patrickod/events{/privacy}","received_events_url":"https://api.github.com/users/patrickod/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/nsheridan/cashier/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-28T20:31:05Z","updated_at":"2016-06-08T11:06:10Z","closed_at":null,"body":"In the case where one wants to use either the `github` or `google` authentication providers without an organisation of individuals it'd be nice to have a whitelist of either `@gmail.com` usernames or github usernames to which one could extend access via cashier.\r\n\r\nThinking it'd look like \r\n```\r\n  \"provider_opts\": {\r\n    \"usernames\": [\"patrickod\", \"nsheridan\"]\r\n  } \r\n```\r\nfor both, as usernames work for both @gmail.com or github. Not-so-minor edge-case for GApps folks who don't have @gmail.com addresses but to whom you'd like to extend access. Maybe for google it's an `emails` field instead?"},"comment":{"url":"https://api.github.com/repos/nsheridan/cashier/issues/comments/224557961","html_url":"https://github.com/nsheridan/cashier/issues/8#issuecomment-224557961","issue_url":"https://api.github.com/repos/nsheridan/cashier/issues/8","id":224557961,"user":{"login":"nsheridan","id":422772,"avatar_url":"https://avatars.githubusercontent.com/u/422772?v=3","gravatar_id":"","url":"https://api.github.com/users/nsheridan","html_url":"https://github.com/nsheridan","followers_url":"https://api.github.com/users/nsheridan/followers","following_url":"https://api.github.com/users/nsheridan/following{/other_user}","gists_url":"https://api.github.com/users/nsheridan/gists{/gist_id}","starred_url":"https://api.github.com/users/nsheridan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nsheridan/subscriptions","organizations_url":"https://api.github.com/users/nsheridan/orgs","repos_url":"https://api.github.com/users/nsheridan/repos","events_url":"https://api.github.com/users/nsheridan/events{/privacy}","received_events_url":"https://api.github.com/users/nsheridan/received_events","type":"User","site_admin":false},"created_at":"2016-06-08T11:06:10Z","updated_at":"2016-06-08T11:06:10Z","body":"https://github.com/bitly/oauth2_proxy/blob/42f1651ba5ab411e3216bd46f3c90bab153a2f13/validator.go#L39-60"}}
{"actor":{"display_login":"nsheridan"}}