{"id":17011973,"url":"https://github.com/jaythomas/phoenix-oauth-example","last_synced_at":"2026-04-12T20:57:30.406Z","repository":{"id":151338304,"uuid":"135838755","full_name":"jaythomas/phoenix-oauth-example","owner":"jaythomas","description":"Example phoenix server using github oauth","archived":false,"fork":false,"pushed_at":"2018-06-08T03:06:00.000Z","size":103,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-27T13:14:50.863Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jaythomas.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-06-02T17:36:01.000Z","updated_at":"2022-05-14T22:39:59.000Z","dependencies_parsed_at":null,"dependency_job_id":"8134376d-eeb5-4c1b-b919-280e20c339d3","html_url":"https://github.com/jaythomas/phoenix-oauth-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaythomas%2Fphoenix-oauth-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaythomas%2Fphoenix-oauth-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaythomas%2Fphoenix-oauth-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaythomas%2Fphoenix-oauth-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jaythomas","download_url":"https://codeload.github.com/jaythomas/phoenix-oauth-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244966462,"owners_count":20539794,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-14T06:09:03.367Z","updated_at":"2026-04-12T20:57:30.339Z","avatar_url":"https://github.com/jaythomas.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Phoenix Oauth Example\n\nThis is a simple topic/discussion board that authenticates users with Github oauth.\n\n## Configure and Install\n\nFirst, create a github oauth application: https://github.com/settings/developers\nYou will need to give github an \"Authorization callback URL\", the url where github will redirect after a user logs into GitHub.\nFor local testing and development, give it the URL `http://localhost:4000/auth/github/callback`.\nThe rest of the fields can say whatever your heart desires.\n\nNext, define some environment variables in your shell or put them in a `.env` file in the root of the project.\n`docker-compose.yml` will feed these environment variables into the phoenix container when starting it up.\nThe secret key bases are random strings.\nThe Ueberauth client ID and secret key are the strings given to you by GitHub when creating the oauth application.\n\n```sh\nDISCUSS_PROD_SECRET_KEY_BASE=\"...\"\nDISCUSS_SECRET_KEY_BASE=\"...\"\nDISCUSS_UEBERAUTH_CLIENT_ID=\"...\"\nDISCUSS_UEBERAUTH_SECRET=\"...\"\n```\n\nNow build and start the containers.\nThis method requires docker and docker-compose.\nOtherwise have fun installing postgres and your system.\n\n```sh\nmake build # build the phoenix container\ndocker-compose up\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaythomas%2Fphoenix-oauth-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjaythomas%2Fphoenix-oauth-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaythomas%2Fphoenix-oauth-example/lists"}