{"action":"created","comment":{"url":"https://api.github.com/repos/coreos/dex/pulls/comments/40867232","id":40867232,"diff_hunk":"@@ -198,11 +199,15 @@ func (s *Server) HTTPHandler() http.Handler {\n \tclock := clockwork.NewRealClock()\n \tmux := http.NewServeMux()\n \tmux.HandleFunc(httpPathDiscovery, handleDiscoveryFunc(s.ProviderConfig()))\n-\tmux.HandleFunc(httpPathAuth, handleAuthFunc(s, s.Connectors, s.LoginTemplate))\n+\tmux.HandleFunc(httpPathAuth, handleAuthFunc(s, s.Connectors, s.LoginTemplate, s.EnableRegistration))\n \tmux.HandleFunc(httpPathToken, handleTokenFunc(s))\n \tmux.HandleFunc(httpPathKeys, handleKeysFunc(s.KeyManager, clock))\n \tmux.Handle(httpPathHealth, makeHealthHandler(checks))\n-\tmux.HandleFunc(httpPathRegister, handleRegisterFunc(s))\n+\n+\tif s.EnableRegistration {","path":"server/server.go","position":19,"original_position":19,"commit_id":"bf9517fdaa2f64ff0ee168deed106b3a380c46fc","original_commit_id":"bf9517fdaa2f64ff0ee168deed106b3a380c46fc","user":{"login":"joeatwork","id":106866,"avatar_url":"https://avatars.githubusercontent.com/u/106866?v=3","gravatar_id":"","url":"https://api.github.com/users/joeatwork","html_url":"https://github.com/joeatwork","followers_url":"https://api.github.com/users/joeatwork/followers","following_url":"https://api.github.com/users/joeatwork/following{/other_user}","gists_url":"https://api.github.com/users/joeatwork/gists{/gist_id}","starred_url":"https://api.github.com/users/joeatwork/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joeatwork/subscriptions","organizations_url":"https://api.github.com/users/joeatwork/orgs","repos_url":"https://api.github.com/users/joeatwork/repos","events_url":"https://api.github.com/users/joeatwork/events{/privacy}","received_events_url":"https://api.github.com/users/joeatwork/received_events","type":"User","site_admin":false},"body":"SWEET! This is a nice way to ensure that registration can't happen - it isn't even ever wired up!","created_at":"2015-09-30T23:55:20Z","updated_at":"2015-09-30T23:55:20Z","html_url":"https://github.com/coreos/dex/pull/144#discussion_r40867232","pull_request_url":"https://api.github.com/repos/coreos/dex/pulls/144","_links":{"self":{"href":"https://api.github.com/repos/coreos/dex/pulls/comments/40867232"},"html":{"href":"https://github.com/coreos/dex/pull/144#discussion_r40867232"},"pull_request":{"href":"https://api.github.com/repos/coreos/dex/pulls/144"}}},"pull_request":{"url":"https://api.github.com/repos/coreos/dex/pulls/144","id":46470726,"html_url":"https://github.com/coreos/dex/pull/144","diff_url":"https://github.com/coreos/dex/pull/144.diff","patch_url":"https://github.com/coreos/dex/pull/144.patch","issue_url":"https://api.github.com/repos/coreos/dex/issues/144","number":144,"state":"open","locked":false,"title":"server,cmd: Add flag for disabling registation","user":{"login":"bobbyrullo","id":9629,"avatar_url":"https://avatars.githubusercontent.com/u/9629?v=3","gravatar_id":"","url":"https://api.github.com/users/bobbyrullo","html_url":"https://github.com/bobbyrullo","followers_url":"https://api.github.com/users/bobbyrullo/followers","following_url":"https://api.github.com/users/bobbyrullo/following{/other_user}","gists_url":"https://api.github.com/users/bobbyrullo/gists{/gist_id}","starred_url":"https://api.github.com/users/bobbyrullo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bobbyrullo/subscriptions","organizations_url":"https://api.github.com/users/bobbyrullo/orgs","repos_url":"https://api.github.com/users/bobbyrullo/repos","events_url":"https://api.github.com/users/bobbyrullo/events{/privacy}","received_events_url":"https://api.github.com/users/bobbyrullo/received_events","type":"User","site_admin":false},"body":"For situations where admins add users.","created_at":"2015-09-30T23:40:08Z","updated_at":"2015-09-30T23:55:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d4ebc990cf931d1b31a463491e3d31fe1ed798d2","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/coreos/dex/pulls/144/commits","review_comments_url":"https://api.github.com/repos/coreos/dex/pulls/144/comments","review_comment_url":"https://api.github.com/repos/coreos/dex/pulls/comments{/number}","comments_url":"https://api.github.com/repos/coreos/dex/issues/144/comments","statuses_url":"https://api.github.com/repos/coreos/dex/statuses/bf9517fdaa2f64ff0ee168deed106b3a380c46fc","head":{"label":"bobbyrullo:no_register","ref":"no_register","sha":"bf9517fdaa2f64ff0ee168deed106b3a380c46fc","user":{"login":"bobbyrullo","id":9629,"avatar_url":"https://avatars.githubusercontent.com/u/9629?v=3","gravatar_id":"","url":"https://api.github.com/users/bobbyrullo","html_url":"https://github.com/bobbyrullo","followers_url":"https://api.github.com/users/bobbyrullo/followers","following_url":"https://api.github.com/users/bobbyrullo/following{/other_user}","gists_url":"https://api.github.com/users/bobbyrullo/gists{/gist_id}","starred_url":"https://api.github.com/users/bobbyrullo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bobbyrullo/subscriptions","organizations_url":"https://api.github.com/users/bobbyrullo/orgs","repos_url":"https://api.github.com/users/bobbyrullo/repos","events_url":"https://api.github.com/users/bobbyrullo/events{/privacy}","received_events_url":"https://api.github.com/users/bobbyrullo/received_events","type":"User","site_admin":false},"repo":{"id":42264918,"name":"dex","full_name":"bobbyrullo/dex","owner":{"login":"bobbyrullo","id":9629,"avatar_url":"https://avatars.githubusercontent.com/u/9629?v=3","gravatar_id":"","url":"https://api.github.com/users/bobbyrullo","html_url":"https://github.com/bobbyrullo","followers_url":"https://api.github.com/users/bobbyrullo/followers","following_url":"https://api.github.com/users/bobbyrullo/following{/other_user}","gists_url":"https://api.github.com/users/bobbyrullo/gists{/gist_id}","starred_url":"https://api.github.com/users/bobbyrullo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bobbyrullo/subscriptions","organizations_url":"https://api.github.com/users/bobbyrullo/orgs","repos_url":"https://api.github.com/users/bobbyrullo/repos","events_url":"https://api.github.com/users/bobbyrullo/events{/privacy}","received_events_url":"https://api.github.com/users/bobbyrullo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bobbyrullo/dex","description":"dex is an Open ID Connect Identity Provider...and more!","fork":true,"url":"https://api.github.com/repos/bobbyrullo/dex","forks_url":"https://api.github.com/repos/bobbyrullo/dex/forks","keys_url":"https://api.github.com/repos/bobbyrullo/dex/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bobbyrullo/dex/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bobbyrullo/dex/teams","hooks_url":"https://api.github.com/repos/bobbyrullo/dex/hooks","issue_events_url":"https://api.github.com/repos/bobbyrullo/dex/issues/events{/number}","events_url":"https://api.github.com/repos/bobbyrullo/dex/events","assignees_url":"https://api.github.com/repos/bobbyrullo/dex/assignees{/user}","branches_url":"https://api.github.com/repos/bobbyrullo/dex/branches{/branch}","tags_url":"https://api.github.com/repos/bobbyrullo/dex/tags","blobs_url":"https://api.github.com/repos/bobbyrullo/dex/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bobbyrullo/dex/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bobbyrullo/dex/git/refs{/sha}","trees_url":"https://api.github.com/repos/bobbyrullo/dex/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bobbyrullo/dex/statuses/{sha}","languages_url":"https://api.github.com/repos/bobbyrullo/dex/languages","stargazers_url":"https://api.github.com/repos/bobbyrullo/dex/stargazers","contributors_url":"https://api.github.com/repos/bobbyrullo/dex/contributors","subscribers_url":"https://api.github.com/repos/bobbyrullo/dex/subscribers","subscription_url":"https://api.github.com/repos/bobbyrullo/dex/subscription","commits_url":"https://api.github.com/repos/bobbyrullo/dex/commits{/sha}","git_commits_url":"https://api.github.com/repos/bobbyrullo/dex/git/commits{/sha}","comments_url":"https://api.github.com/repos/bobbyrullo/dex/comments{/number}","issue_comment_url":"https://api.github.com/repos/bobbyrullo/dex/issues/comments{/number}","contents_url":"https://api.github.com/repos/bobbyrullo/dex/contents/{+path}","compare_url":"https://api.github.com/repos/bobbyrullo/dex/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bobbyrullo/dex/merges","archive_url":"https://api.github.com/repos/bobbyrullo/dex/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bobbyrullo/dex/downloads","issues_url":"https://api.github.com/repos/bobbyrullo/dex/issues{/number}","pulls_url":"https://api.github.com/repos/bobbyrullo/dex/pulls{/number}","milestones_url":"https://api.github.com/repos/bobbyrullo/dex/milestones{/number}","notifications_url":"https://api.github.com/repos/bobbyrullo/dex/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bobbyrullo/dex/labels{/name}","releases_url":"https://api.github.com/repos/bobbyrullo/dex/releases{/id}","created_at":"2015-09-10T19:08:54Z","updated_at":"2015-09-10T19:08:55Z","pushed_at":"2015-09-30T23:37:06Z","git_url":"git://github.com/bobbyrullo/dex.git","ssh_url":"git@github.com:bobbyrullo/dex.git","clone_url":"https://github.com/bobbyrullo/dex.git","svn_url":"https://github.com/bobbyrullo/dex","homepage":"https://coreos.com/blog/announcing-dex/","size":1016,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"coreos:master","ref":"master","sha":"ac78c8f4abc4d5e2b3b8091b66865beeb6c3d88d","user":{"login":"coreos","id":3730757,"avatar_url":"https://avatars.githubusercontent.com/u/3730757?v=3","gravatar_id":"","url":"https://api.github.com/users/coreos","html_url":"https://github.com/coreos","followers_url":"https://api.github.com/users/coreos/followers","following_url":"https://api.github.com/users/coreos/following{/other_user}","gists_url":"https://api.github.com/users/coreos/gists{/gist_id}","starred_url":"https://api.github.com/users/coreos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coreos/subscriptions","organizations_url":"https://api.github.com/users/coreos/orgs","repos_url":"https://api.github.com/users/coreos/repos","events_url":"https://api.github.com/users/coreos/events{/privacy}","received_events_url":"https://api.github.com/users/coreos/received_events","type":"Organization","site_admin":false},"repo":{"id":40916314,"name":"dex","full_name":"coreos/dex","owner":{"login":"coreos","id":3730757,"avatar_url":"https://avatars.githubusercontent.com/u/3730757?v=3","gravatar_id":"","url":"https://api.github.com/users/coreos","html_url":"https://github.com/coreos","followers_url":"https://api.github.com/users/coreos/followers","following_url":"https://api.github.com/users/coreos/following{/other_user}","gists_url":"https://api.github.com/users/coreos/gists{/gist_id}","starred_url":"https://api.github.com/users/coreos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coreos/subscriptions","organizations_url":"https://api.github.com/users/coreos/orgs","repos_url":"https://api.github.com/users/coreos/repos","events_url":"https://api.github.com/users/coreos/events{/privacy}","received_events_url":"https://api.github.com/users/coreos/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/coreos/dex","description":"dex is an OpenID Connect Identity Provider...and more!","fork":false,"url":"https://api.github.com/repos/coreos/dex","forks_url":"https://api.github.com/repos/coreos/dex/forks","keys_url":"https://api.github.com/repos/coreos/dex/keys{/key_id}","collaborators_url":"https://api.github.com/repos/coreos/dex/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/coreos/dex/teams","hooks_url":"https://api.github.com/repos/coreos/dex/hooks","issue_events_url":"https://api.github.com/repos/coreos/dex/issues/events{/number}","events_url":"https://api.github.com/repos/coreos/dex/events","assignees_url":"https://api.github.com/repos/coreos/dex/assignees{/user}","branches_url":"https://api.github.com/repos/coreos/dex/branches{/branch}","tags_url":"https://api.github.com/repos/coreos/dex/tags","blobs_url":"https://api.github.com/repos/coreos/dex/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/coreos/dex/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/coreos/dex/git/refs{/sha}","trees_url":"https://api.github.com/repos/coreos/dex/git/trees{/sha}","statuses_url":"https://api.github.com/repos/coreos/dex/statuses/{sha}","languages_url":"https://api.github.com/repos/coreos/dex/languages","stargazers_url":"https://api.github.com/repos/coreos/dex/stargazers","contributors_url":"https://api.github.com/repos/coreos/dex/contributors","subscribers_url":"https://api.github.com/repos/coreos/dex/subscribers","subscription_url":"https://api.github.com/repos/coreos/dex/subscription","commits_url":"https://api.github.com/repos/coreos/dex/commits{/sha}","git_commits_url":"https://api.github.com/repos/coreos/dex/git/commits{/sha}","comments_url":"https://api.github.com/repos/coreos/dex/comments{/number}","issue_comment_url":"https://api.github.com/repos/coreos/dex/issues/comments{/number}","contents_url":"https://api.github.com/repos/coreos/dex/contents/{+path}","compare_url":"https://api.github.com/repos/coreos/dex/compare/{base}...{head}","merges_url":"https://api.github.com/repos/coreos/dex/merges","archive_url":"https://api.github.com/repos/coreos/dex/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/coreos/dex/downloads","issues_url":"https://api.github.com/repos/coreos/dex/issues{/number}","pulls_url":"https://api.github.com/repos/coreos/dex/pulls{/number}","milestones_url":"https://api.github.com/repos/coreos/dex/milestones{/number}","notifications_url":"https://api.github.com/repos/coreos/dex/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/coreos/dex/labels{/name}","releases_url":"https://api.github.com/repos/coreos/dex/releases{/id}","created_at":"2015-08-17T17:57:06Z","updated_at":"2015-09-30T02:32:07Z","pushed_at":"2015-09-30T23:40:08Z","git_url":"git://github.com/coreos/dex.git","ssh_url":"git@github.com:coreos/dex.git","clone_url":"https://github.com/coreos/dex.git","svn_url":"https://github.com/coreos/dex","homepage":"https://coreos.com/blog/announcing-dex/","size":1659,"stargazers_count":398,"watchers_count":398,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":38,"mirror_url":null,"open_issues_count":71,"forks":38,"open_issues":71,"watchers":398,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/coreos/dex/pulls/144"},"html":{"href":"https://github.com/coreos/dex/pull/144"},"issue":{"href":"https://api.github.com/repos/coreos/dex/issues/144"},"comments":{"href":"https://api.github.com/repos/coreos/dex/issues/144/comments"},"review_comments":{"href":"https://api.github.com/repos/coreos/dex/pulls/144/comments"},"review_comment":{"href":"https://api.github.com/repos/coreos/dex/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/coreos/dex/pulls/144/commits"},"statuses":{"href":"https://api.github.com/repos/coreos/dex/statuses/bf9517fdaa2f64ff0ee168deed106b3a380c46fc"}}}}