{"action":"opened","issue":{"url":"https://api.github.com/repos/rethinkdb/horizon/issues/560","repository_url":"https://api.github.com/repos/rethinkdb/horizon","labels_url":"https://api.github.com/repos/rethinkdb/horizon/issues/560/labels{/name}","comments_url":"https://api.github.com/repos/rethinkdb/horizon/issues/560/comments","events_url":"https://api.github.com/repos/rethinkdb/horizon/issues/560/events","html_url":"https://github.com/rethinkdb/horizon/issues/560","id":158510536,"number":560,"title":"Unrecognized auth provider \"0\" when using HZ_AUTH environment variable","user":{"login":"jephir","id":577585,"avatar_url":"https://avatars.githubusercontent.com/u/577585?v=3","gravatar_id":"","url":"https://api.github.com/users/jephir","html_url":"https://github.com/jephir","followers_url":"https://api.github.com/users/jephir/followers","following_url":"https://api.github.com/users/jephir/following{/other_user}","gists_url":"https://api.github.com/users/jephir/gists{/gist_id}","starred_url":"https://api.github.com/users/jephir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jephir/subscriptions","organizations_url":"https://api.github.com/users/jephir/orgs","repos_url":"https://api.github.com/users/jephir/repos","events_url":"https://api.github.com/users/jephir/events{/privacy}","received_events_url":"https://api.github.com/users/jephir/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-06-04T15:53:39Z","updated_at":"2016-06-04T15:53:39Z","closed_at":null,"body":"Server version: horizon@1.0.2\r\n\r\nI am trying to use the **HZ_AUTH** environment variable instead of _.hz/config.toml_ to configure OAuth authentication to avoid committing provider secrets to my source code repository. However this results in an error:\r\n\r\n```\r\nWARNING: Serving app insecurely.\r\nApp available at http://0.0.0.0:8181\r\nStarting Horizon...\r\ndebug: Added HTTP handler at /horizon/horizon.js\r\ndebug: Added HTTP handler at /horizon/horizon.js.map\r\ndebug: Added HTTP handler at /horizon/auth_methods\r\nserve failed with Error: Unrecognized auth provider \"0\"\r\n    at /usr/src/app/node_modules/horizon/src/serve.js:562:17\r\n    at process._tickCallback (node.js:369:9)\r\n    at Function.Module.runMain (module.js:443:11)\r\n    at startup (node.js:139:18)\r\n    at node.js:968:3\r\n```\r\n\r\n```sh\r\n$ echo $HZ_AUTH\r\ngoogle,<REMOVED>.apps.googleusercontent.com,<REMOVED>\r\n```\r\n\r\n_.hz/config.toml:_\r\n```toml\r\nbind = [ \"all\" ]\r\nport = 8181\r\nproject_name = \"horizon\"\r\ntoken_secret = <REMOVED>\r\nallow_anonymous = true\r\nallow_unauthenticated = false\r\n```\r\n\r\nIf I enter the google authentication options into the _[auth.google]_ section in _.hz/config.toml_ then there is no error."}}
{"actor":{"display_login":"jephir"}}