{"id":19434164,"url":"https://github.com/mastermindg/auth0-rails-example","last_synced_at":"2026-06-14T08:32:23.483Z","repository":{"id":76584414,"uuid":"114015007","full_name":"mastermindg/auth0-rails-example","owner":"mastermindg","description":"Rails 5 Integrated with Auth0 for 3rd Party Authentication","archived":false,"fork":false,"pushed_at":"2017-12-12T16:49:10.000Z","size":159,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-07T20:45:04.385Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mastermindg.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2017-12-12T16:44:58.000Z","updated_at":"2017-12-12T16:49:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"2854c8c3-e600-4d80-8e2c-a36b65f68fd5","html_url":"https://github.com/mastermindg/auth0-rails-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/mastermindg%2Fauth0-rails-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mastermindg%2Fauth0-rails-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mastermindg%2Fauth0-rails-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mastermindg%2Fauth0-rails-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mastermindg","download_url":"https://codeload.github.com/mastermindg/auth0-rails-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240614242,"owners_count":19829308,"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-11-10T14:45:15.067Z","updated_at":"2026-06-14T08:32:18.461Z","avatar_url":"https://github.com/mastermindg.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# auth0-rails-example\n\nSampled from Auth0 existing repo:\nhttps://github.com/auth0-samples/auth0-rubyonrails-sample\n\nThis example shows how to add login capabilities to your Rails application using the Auth0's hosted login page and the OmniAuth authentication system. It also shows how to fetch User Profile information from a logged-in user as well as how to prevent users from executing controller actions unless they're authenticated.\n\nThis example also uses Postgres with Docker Compose. The elements of [this tutorial](https://auth0.com/blog/rails-5-with-auth0/) were brought in to show a working sample.\n\n## Environment Variables\nYou need to set the ClientSecret, ClientId, Domain, CallbackURL and Audience for your Auth0 app as environment variables with the following names respectively: `AUTH0_CLIENT_SECRET`, `AUTH0_CLIENT_ID`, `AUTH0_DOMAIN`, `AUTH0_CALLBACK_URL` and `AUTH0_AUIDIENCE`.\n\nThere are also environment variables associated with the Postgresql Database. These can be left as defaults or changed to match docker-compose.yml.\n\n__Note:__ If you are not implementing any API, leave this variable empty, will be set with `https://AUTH0_DOMAIN/userinfo`.\n\nSet the environment variables in `.env` to match those your Auth0 Client.\n\n````bash\n# .env file\nAUTH0_CLIENT_ID=YOUR_CLIENT_ID\nAUTH0_CLIENT_SECRET=YOUR_CLIENT_SECRET\nAUTH0_DOMAIN=\u003cYOUR_TENANT\u003e.auth0.com\nAUTH0_CALLBACK_URL=http://localhost:3000/auth/auth0/callback\nAUTH0_AUDIENCE=YOUR_API_IDENTIFIER\nPOSTGRES_HOST=postgres\nPOSTGRES_DB=rails\nPOSTGRES_USER=rails\nPOSTGRES_PASSWORD=rails\n````\n\n## Running the Sample Application With Docker\nIn order to run the example you need to have `docker` and `docker-compose` installed.\n\nExecute in command line `sh exec.sh` to run the Docker in Linux, or `.\\exec.ps1` to run the Docker in Windows.\n\n## What is Auth0?\n\nAuth0 helps you to:\n\n* Add authentication with [multiple authentication sources](https://docs.auth0.com/identityproviders), either social like **Google, Facebook, Microsoft Account, LinkedIn, GitHub, Twitter, Box, Salesforce, amont others**, or enterprise identity systems like **Windows Azure AD, Google Apps, Active Directory, ADFS or any SAML Identity Provider**.\n* Add authentication through more traditional **[username/password databases](https://docs.auth0.com/mysql-connection-tutorial)**.\n* Add support for **[linking different user accounts](https://docs.auth0.com/link-accounts)** with the same user.\n* Support for generating signed [Json Web Tokens](https://docs.auth0.com/jwt) to call your APIs and **flow the user identity** securely.\n* Analytics of how, when and where users are logging in.\n* Pull data from other sources and add it to the user profile, through [JavaScript rules](https://docs.auth0.com/rules).\n\n## Create a free Auth0 account\n\n1. Go to [Auth0](https://auth0.com/signup) and click Sign Up.\n2. Use any Social connection to login.\n\n## License\n\nThis project is licensed under the MIT license. See the [LICENSE](LICENSE.txt) file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmastermindg%2Fauth0-rails-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmastermindg%2Fauth0-rails-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmastermindg%2Fauth0-rails-example/lists"}