{"action":"created","comment":{"url":"https://api.github.com/repos/GoogleCloudPlatform/elixir-samples/pulls/comments/170701388","pull_request_review_id":99427954,"id":170701388,"diff_hunk":"@@ -0,0 +1,62 @@\n+use Mix.Config\n+\n+# For production, we configure the host to read the PORT\n+# from the system environment. Therefore, you will need\n+# to set PORT=80 before running your server.\n+#\n+# You should also configure the url host to something\n+# meaningful, we use this information when generating URLs.\n+#\n+# Finally, we also include the path to a manifest\n+# containing the digested version of static files. This\n+# manifest is generated by the mix phoenix.digest task\n+# which you typically run after static files are built.\n+config :google_oauth2_example, GoogleOAuth2Example.Endpoint,\n+  http: [port: {:system, \"PORT\"}],\n+  url: [host: \"example.com\", port: 80],\n+  cache_static_manifest: \"priv/static/manifest.json\"\n+\n+# Do not print debug messages in production\n+config :logger, level: :info\n+\n+# ## SSL Support\n+#\n+# To get SSL working, you will need to add the `https` key\n+# to the previous section and set your `:url` port to 443:\n+#\n+#     config :google_oauth2_example, GoogleOAuth2Example.Endpoint,\n+#       ...\n+#       url: [host: \"example.com\", port: 443],\n+#       https: [port: 443,\n+#               keyfile: System.get_env(\"SOME_APP_SSL_KEY_PATH\"),\n+#               certfile: System.get_env(\"SOME_APP_SSL_CERT_PATH\")]\n+#\n+# Where those two env variables return an absolute path to\n+# the key and cert in disk or a relative path inside priv,\n+# for example \"priv/ssl/server.key\".\n+#\n+# We also recommend setting `force_ssl`, ensuring no data is\n+# ever sent via http, always redirecting to https:\n+#\n+#     config :google_oauth2_example, GoogleOAuth2Example.Endpoint,\n+#       force_ssl: [hsts: true]\n+#\n+# Check `Plug.SSL` for all available options in `force_ssl`.\n+\n+# ## Using releases\n+#\n+# If you are doing OTP releases, you need to instruct Phoenix\n+# to start the server for all endpoints:\n+#\n+#     config :phoenix, :serve_endpoints, true\n+#\n+# Alternatively, you can configure exactly which server to\n+# start per endpoint:\n+#\n+#     config :google_oauth2_example, GoogleOAuth2Example.Endpoint, server: true\n+#\n+\n+# Finally import the config/prod.secret.exs\n+# which should be versioned separately.\n+import_config \"prod.secret.exs\"","path":"auth/config/prod.exs","position":61,"original_position":61,"commit_id":"6db458b75b364f7b4007d464c15cc7ce30864e3d","original_commit_id":"6db458b75b364f7b4007d464c15cc7ce30864e3d","user":{"login":"bshaffer","id":103941,"avatar_url":"https://avatars3.githubusercontent.com/u/103941?v=4","gravatar_id":"","url":"https://api.github.com/users/bshaffer","html_url":"https://github.com/bshaffer","followers_url":"https://api.github.com/users/bshaffer/followers","following_url":"https://api.github.com/users/bshaffer/following{/other_user}","gists_url":"https://api.github.com/users/bshaffer/gists{/gist_id}","starred_url":"https://api.github.com/users/bshaffer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bshaffer/subscriptions","organizations_url":"https://api.github.com/users/bshaffer/orgs","repos_url":"https://api.github.com/users/bshaffer/repos","events_url":"https://api.github.com/users/bshaffer/events{/privacy}","received_events_url":"https://api.github.com/users/bshaffer/received_events","type":"User","site_admin":false},"body":"It's confusing since we're using environment variables for our client ID  / secret, so it may make more sense to just remove this file.","created_at":"2018-02-26T19:09:21Z","updated_at":"2018-02-26T19:09:21Z","html_url":"https://github.com/GoogleCloudPlatform/elixir-samples/pull/16#discussion_r170701388","pull_request_url":"https://api.github.com/repos/GoogleCloudPlatform/elixir-samples/pulls/16","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/GoogleCloudPlatform/elixir-samples/pulls/comments/170701388"},"html":{"href":"https://github.com/GoogleCloudPlatform/elixir-samples/pull/16#discussion_r170701388"},"pull_request":{"href":"https://api.github.com/repos/GoogleCloudPlatform/elixir-samples/pulls/16"}},"in_reply_to_id":170371469},"pull_request":{"url":"https://api.github.com/repos/GoogleCloudPlatform/elixir-samples/pulls/16","id":170888036,"html_url":"https://github.com/GoogleCloudPlatform/elixir-samples/pull/16","diff_url":"https://github.com/GoogleCloudPlatform/elixir-samples/pull/16.diff","patch_url":"https://github.com/GoogleCloudPlatform/elixir-samples/pull/16.patch","issue_url":"https://api.github.com/repos/GoogleCloudPlatform/elixir-samples/issues/16","number":16,"state":"open","locked":false,"title":"Adds Phoenix example for Google OAuth2 3-LO","user":{"login":"bshaffer","id":103941,"avatar_url":"https://avatars3.githubusercontent.com/u/103941?v=4","gravatar_id":"","url":"https://api.github.com/users/bshaffer","html_url":"https://github.com/bshaffer","followers_url":"https://api.github.com/users/bshaffer/followers","following_url":"https://api.github.com/users/bshaffer/following{/other_user}","gists_url":"https://api.github.com/users/bshaffer/gists{/gist_id}","starred_url":"https://api.github.com/users/bshaffer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bshaffer/subscriptions","organizations_url":"https://api.github.com/users/bshaffer/orgs","repos_url":"https://api.github.com/users/bshaffer/repos","events_url":"https://api.github.com/users/bshaffer/events{/privacy}","received_events_url":"https://api.github.com/users/bshaffer/received_events","type":"User","site_admin":false},"body":"Here is an example of Google OAuth 3LO for Elixir/Phoenix. \r\n\r\nThere are a lot of files as part of the phoenix framework. I would love to remove as many of them as possible, but I want to stay idiomatic. \r\n\r\nHopefully the running example at https://elixir-auth.appspot.com and the README will help clarify the important parts.","created_at":"2018-02-22T22:47:53Z","updated_at":"2018-02-26T19:09:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0fb4b508169521c095ceebdef5ad666e1fe15662","assignee":null,"assignees":[],"requested_reviewers":[{"login":"dazuma","id":8911,"avatar_url":"https://avatars2.githubusercontent.com/u/8911?v=4","gravatar_id":"","url":"https://api.github.com/users/dazuma","html_url":"https://github.com/dazuma","followers_url":"https://api.github.com/users/dazuma/followers","following_url":"https://api.github.com/users/dazuma/following{/other_user}","gists_url":"https://api.github.com/users/dazuma/gists{/gist_id}","starred_url":"https://api.github.com/users/dazuma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dazuma/subscriptions","organizations_url":"https://api.github.com/users/dazuma/orgs","repos_url":"https://api.github.com/users/dazuma/repos","events_url":"https://api.github.com/users/dazuma/events{/privacy}","received_events_url":"https://api.github.com/users/dazuma/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/GoogleCloudPlatform/elixir-samples/pulls/16/commits","review_comments_url":"https://api.github.com/repos/GoogleCloudPlatform/elixir-samples/pulls/16/comments","review_comment_url":"https://api.github.com/repos/GoogleCloudPlatform/elixir-samples/pulls/comments{/number}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/elixir-samples/issues/16/comments","statuses_url":"https://api.github.com/repos/GoogleCloudPlatform/elixir-samples/statuses/6db458b75b364f7b4007d464c15cc7ce30864e3d","head":{"label":"GoogleCloudPlatform:auth","ref":"auth","sha":"6db458b75b364f7b4007d464c15cc7ce30864e3d","user":{"login":"GoogleCloudPlatform","id":2810941,"avatar_url":"https://avatars0.githubusercontent.com/u/2810941?v=4","gravatar_id":"","url":"https://api.github.com/users/GoogleCloudPlatform","html_url":"https://github.com/GoogleCloudPlatform","followers_url":"https://api.github.com/users/GoogleCloudPlatform/followers","following_url":"https://api.github.com/users/GoogleCloudPlatform/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCloudPlatform/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCloudPlatform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCloudPlatform/subscriptions","organizations_url":"https://api.github.com/users/GoogleCloudPlatform/orgs","repos_url":"https://api.github.com/users/GoogleCloudPlatform/repos","events_url":"https://api.github.com/users/GoogleCloudPlatform/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCloudPlatform/received_events","type":"Organization","site_admin":false},"repo":{"id":101318881,"name":"elixir-samples","full_name":"GoogleCloudPlatform/elixir-samples","owner":{"login":"GoogleCloudPlatform","id":2810941,"avatar_url":"https://avatars0.githubusercontent.com/u/2810941?v=4","gravatar_id":"","url":"https://api.github.com/users/GoogleCloudPlatform","html_url":"https://github.com/GoogleCloudPlatform","followers_url":"https://api.github.com/users/GoogleCloudPlatform/followers","following_url":"https://api.github.com/users/GoogleCloudPlatform/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCloudPlatform/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCloudPlatform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCloudPlatform/subscriptions","organizations_url":"https://api.github.com/users/GoogleCloudPlatform/orgs","repos_url":"https://api.github.com/users/GoogleCloudPlatform/repos","events_url":"https://api.github.com/users/GoogleCloudPlatform/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCloudPlatform/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/GoogleCloudPlatform/elixir-samples","description":"A collection of samples on using Elixir with Google Cloud Platform. ","fork":false,"url":"https://api.github.com/repos/GoogleCloudPlatform/elixir-samples","forks_url":"https://api.github.com/repos/GoogleCloudPlatform/elixir-samples/forks","keys_url":"https://api.github.com/repos/GoogleCloudPlatform/elixir-samples/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GoogleCloudPlatform/elixir-samples/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GoogleCloudPlatform/elixir-samples/teams","hooks_url":"https://api.github.com/repos/GoogleCloudPlatform/elixir-samples/hooks","issue_events_url":"https://api.github.com/repos/GoogleCloudPlatform/elixir-samples/issues/events{/number}","events_url":"https://api.github.com/repos/GoogleCloudPlatform/elixir-samples/events","assignees_url":"https://api.github.com/repos/GoogleCloudPlatform/elixir-samples/assignees{/user}","branches_url":"https://api.github.com/repos/GoogleCloudPlatform/elixir-samples/branches{/branch}","tags_url":"https://api.github.com/repos/GoogleCloudPlatform/elixir-samples/tags","blobs_url":"https://api.github.com/repos/GoogleCloudPlatform/elixir-samples/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GoogleCloudPlatform/elixir-samples/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GoogleCloudPlatform/elixir-samples/git/refs{/sha}","trees_url":"https://api.github.com/repos/GoogleCloudPlatform/elixir-samples/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GoogleCloudPlatform/elixir-samples/statuses/{sha}","languages_url":"https://api.github.com/repos/GoogleCloudPlatform/elixir-samples/languages","stargazers_url":"https://api.github.com/repos/GoogleCloudPlatform/elixir-samples/stargazers","contributors_url":"https://api.github.com/repos/GoogleCloudPlatform/elixir-samples/contributors","subscribers_url":"https://api.github.com/repos/GoogleCloudPlatform/elixir-samples/subscribers","subscription_url":"https://api.github.com/repos/GoogleCloudPlatform/elixir-samples/subscription","commits_url":"https://api.github.com/repos/GoogleCloudPlatform/elixir-samples/commits{/sha}","git_commits_url":"https://api.github.com/repos/GoogleCloudPlatform/elixir-samples/git/commits{/sha}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/elixir-samples/comments{/number}","issue_comment_url":"https://api.github.com/repos/GoogleCloudPlatform/elixir-samples/issues/comments{/number}","contents_url":"https://api.github.com/repos/GoogleCloudPlatform/elixir-samples/contents/{+path}","compare_url":"https://api.github.com/repos/GoogleCloudPlatform/elixir-samples/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GoogleCloudPlatform/elixir-samples/merges","archive_url":"https://api.github.com/repos/GoogleCloudPlatform/elixir-samples/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GoogleCloudPlatform/elixir-samples/downloads","issues_url":"https://api.github.com/repos/GoogleCloudPlatform/elixir-samples/issues{/number}","pulls_url":"https://api.github.com/repos/GoogleCloudPlatform/elixir-samples/pulls{/number}","milestones_url":"https://api.github.com/repos/GoogleCloudPlatform/elixir-samples/milestones{/number}","notifications_url":"https://api.github.com/repos/GoogleCloudPlatform/elixir-samples/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GoogleCloudPlatform/elixir-samples/labels{/name}","releases_url":"https://api.github.com/repos/GoogleCloudPlatform/elixir-samples/releases{/id}","deployments_url":"https://api.github.com/repos/GoogleCloudPlatform/elixir-samples/deployments","created_at":"2017-08-24T17:04:45Z","updated_at":"2018-02-25T09:23:30Z","pushed_at":"2018-02-22T22:47:54Z","git_url":"git://github.com/GoogleCloudPlatform/elixir-samples.git","ssh_url":"git@github.com:GoogleCloudPlatform/elixir-samples.git","clone_url":"https://github.com/GoogleCloudPlatform/elixir-samples.git","svn_url":"https://github.com/GoogleCloudPlatform/elixir-samples","homepage":"https://cloud.google.com/community","size":130,"stargazers_count":94,"watchers_count":94,"language":"Elixir","has_issues":true,"has_projects":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":10,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":10,"open_issues":1,"watchers":94,"default_branch":"master"}},"base":{"label":"GoogleCloudPlatform:master","ref":"master","sha":"7cb20003d4766d05585e489d5a912623611156d5","user":{"login":"GoogleCloudPlatform","id":2810941,"avatar_url":"https://avatars0.githubusercontent.com/u/2810941?v=4","gravatar_id":"","url":"https://api.github.com/users/GoogleCloudPlatform","html_url":"https://github.com/GoogleCloudPlatform","followers_url":"https://api.github.com/users/GoogleCloudPlatform/followers","following_url":"https://api.github.com/users/GoogleCloudPlatform/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCloudPlatform/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCloudPlatform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCloudPlatform/subscriptions","organizations_url":"https://api.github.com/users/GoogleCloudPlatform/orgs","repos_url":"https://api.github.com/users/GoogleCloudPlatform/repos","events_url":"https://api.github.com/users/GoogleCloudPlatform/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCloudPlatform/received_events","type":"Organization","site_admin":false},"repo":{"id":101318881,"name":"elixir-samples","full_name":"GoogleCloudPlatform/elixir-samples","owner":{"login":"GoogleCloudPlatform","id":2810941,"avatar_url":"https://avatars0.githubusercontent.com/u/2810941?v=4","gravatar_id":"","url":"https://api.github.com/users/GoogleCloudPlatform","html_url":"https://github.com/GoogleCloudPlatform","followers_url":"https://api.github.com/users/GoogleCloudPlatform/followers","following_url":"https://api.github.com/users/GoogleCloudPlatform/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCloudPlatform/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCloudPlatform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCloudPlatform/subscriptions","organizations_url":"https://api.github.com/users/GoogleCloudPlatform/orgs","repos_url":"https://api.github.com/users/GoogleCloudPlatform/repos","events_url":"https://api.github.com/users/GoogleCloudPlatform/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCloudPlatform/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/GoogleCloudPlatform/elixir-samples","description":"A collection of samples on using Elixir with Google Cloud Platform. ","fork":false,"url":"https://api.github.com/repos/GoogleCloudPlatform/elixir-samples","forks_url":"https://api.github.com/repos/GoogleCloudPlatform/elixir-samples/forks","keys_url":"https://api.github.com/repos/GoogleCloudPlatform/elixir-samples/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GoogleCloudPlatform/elixir-samples/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GoogleCloudPlatform/elixir-samples/teams","hooks_url":"https://api.github.com/repos/GoogleCloudPlatform/elixir-samples/hooks","issue_events_url":"https://api.github.com/repos/GoogleCloudPlatform/elixir-samples/issues/events{/number}","events_url":"https://api.github.com/repos/GoogleCloudPlatform/elixir-samples/events","assignees_url":"https://api.github.com/repos/GoogleCloudPlatform/elixir-samples/assignees{/user}","branches_url":"https://api.github.com/repos/GoogleCloudPlatform/elixir-samples/branches{/branch}","tags_url":"https://api.github.com/repos/GoogleCloudPlatform/elixir-samples/tags","blobs_url":"https://api.github.com/repos/GoogleCloudPlatform/elixir-samples/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GoogleCloudPlatform/elixir-samples/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GoogleCloudPlatform/elixir-samples/git/refs{/sha}","trees_url":"https://api.github.com/repos/GoogleCloudPlatform/elixir-samples/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GoogleCloudPlatform/elixir-samples/statuses/{sha}","languages_url":"https://api.github.com/repos/GoogleCloudPlatform/elixir-samples/languages","stargazers_url":"https://api.github.com/repos/GoogleCloudPlatform/elixir-samples/stargazers","contributors_url":"https://api.github.com/repos/GoogleCloudPlatform/elixir-samples/contributors","subscribers_url":"https://api.github.com/repos/GoogleCloudPlatform/elixir-samples/subscribers","subscription_url":"https://api.github.com/repos/GoogleCloudPlatform/elixir-samples/subscription","commits_url":"https://api.github.com/repos/GoogleCloudPlatform/elixir-samples/commits{/sha}","git_commits_url":"https://api.github.com/repos/GoogleCloudPlatform/elixir-samples/git/commits{/sha}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/elixir-samples/comments{/number}","issue_comment_url":"https://api.github.com/repos/GoogleCloudPlatform/elixir-samples/issues/comments{/number}","contents_url":"https://api.github.com/repos/GoogleCloudPlatform/elixir-samples/contents/{+path}","compare_url":"https://api.github.com/repos/GoogleCloudPlatform/elixir-samples/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GoogleCloudPlatform/elixir-samples/merges","archive_url":"https://api.github.com/repos/GoogleCloudPlatform/elixir-samples/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GoogleCloudPlatform/elixir-samples/downloads","issues_url":"https://api.github.com/repos/GoogleCloudPlatform/elixir-samples/issues{/number}","pulls_url":"https://api.github.com/repos/GoogleCloudPlatform/elixir-samples/pulls{/number}","milestones_url":"https://api.github.com/repos/GoogleCloudPlatform/elixir-samples/milestones{/number}","notifications_url":"https://api.github.com/repos/GoogleCloudPlatform/elixir-samples/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GoogleCloudPlatform/elixir-samples/labels{/name}","releases_url":"https://api.github.com/repos/GoogleCloudPlatform/elixir-samples/releases{/id}","deployments_url":"https://api.github.com/repos/GoogleCloudPlatform/elixir-samples/deployments","created_at":"2017-08-24T17:04:45Z","updated_at":"2018-02-25T09:23:30Z","pushed_at":"2018-02-22T22:47:54Z","git_url":"git://github.com/GoogleCloudPlatform/elixir-samples.git","ssh_url":"git@github.com:GoogleCloudPlatform/elixir-samples.git","clone_url":"https://github.com/GoogleCloudPlatform/elixir-samples.git","svn_url":"https://github.com/GoogleCloudPlatform/elixir-samples","homepage":"https://cloud.google.com/community","size":130,"stargazers_count":94,"watchers_count":94,"language":"Elixir","has_issues":true,"has_projects":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":10,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":10,"open_issues":1,"watchers":94,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/GoogleCloudPlatform/elixir-samples/pulls/16"},"html":{"href":"https://github.com/GoogleCloudPlatform/elixir-samples/pull/16"},"issue":{"href":"https://api.github.com/repos/GoogleCloudPlatform/elixir-samples/issues/16"},"comments":{"href":"https://api.github.com/repos/GoogleCloudPlatform/elixir-samples/issues/16/comments"},"review_comments":{"href":"https://api.github.com/repos/GoogleCloudPlatform/elixir-samples/pulls/16/comments"},"review_comment":{"href":"https://api.github.com/repos/GoogleCloudPlatform/elixir-samples/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/GoogleCloudPlatform/elixir-samples/pulls/16/commits"},"statuses":{"href":"https://api.github.com/repos/GoogleCloudPlatform/elixir-samples/statuses/6db458b75b364f7b4007d464c15cc7ce30864e3d"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"bshaffer"}}