{"id":26659125,"url":"https://github.com/denisecase/auth0-node-login","last_synced_at":"2025-04-11T14:10:14.643Z","repository":{"id":41952980,"uuid":"451876536","full_name":"denisecase/auth0-node-login","owner":"denisecase","description":"Example repo from Auth0-samples - Regular Web App","archived":false,"fork":false,"pushed_at":"2022-12-15T18:40:36.000Z","size":79,"stargazers_count":0,"open_issues_count":2,"forks_count":50,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-25T10:17:52.683Z","etag":null,"topics":["auth0","express","heroku","node"],"latest_commit_sha":null,"homepage":"https://test-auth0-case.herokuapp.com/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/denisecase.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-01-25T12:53:45.000Z","updated_at":"2022-01-25T14:09:53.000Z","dependencies_parsed_at":"2023-01-29T04:00:28.511Z","dependency_job_id":null,"html_url":"https://github.com/denisecase/auth0-node-login","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/denisecase%2Fauth0-node-login","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denisecase%2Fauth0-node-login/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denisecase%2Fauth0-node-login/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denisecase%2Fauth0-node-login/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/denisecase","download_url":"https://codeload.github.com/denisecase/auth0-node-login/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248413878,"owners_count":21099375,"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":["auth0","express","heroku","node"],"created_at":"2025-03-25T10:17:56.664Z","updated_at":"2025-04-11T14:10:14.608Z","avatar_url":"https://github.com/denisecase.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 01-Login\n\n## Example From\n\nExample repo from the many samples at https://github.com/auth0-samples\n\n- [Node and Express - Regular Web App](https://github.com/auth0-samples/auth0-nodejs-webapp-sample)\n- This repo has just the 01-Login folder, adjusted for Heroku deployment.\n\n## Running the Sample\n\nInstall the dependencies.\n\n```bash\nnpm install\n```\n\nRename `.env.example` to `.env` and replace the values for `AUTH0_CLIENT_ID`, `AUTH0_DOMAIN`, and `AUTH0_CLIENT_SECRET` with your Auth0 credentials. If you don't yet have an Auth0 account, [sign up](https://auth0.com/signup) for free.\n\n```bash\n# copy configuration and replace with your own\ncp .env.example .env\n```\n\nIf you're using a hosting provider that uses a proxy in front of Node.js, comment in the `trust proxy` configuration in [app.js](https://github.com/auth0-samples/auth0-nodejs-webapp-sample/blob/812bb41fa655a1178f6a33ba54b0aee2397b1917/01-Login/app.js#L63-L70). This is a [`express-session` configuration setting](https://www.npmjs.com/package/express-session#cookiesecure) that allows for trusting this first proxy.\n\nRun the app.\n\n```bash\nnpm start\n```\n\nThe app will be served at `localhost:3000`.\n\n-----\n\n## Two Environments\n\n1. Run locally (on our machine)\n2. Run on the web (hosted with Heroku). \n\n## Two Ways To Set Configuration\n\nOur configuration information is secret - we manage our config variables differently:\n\n1. Locally, set them in .env (and make sure you add .env to .gitignore). If accidentally committed, remove it from the repo. \n2. On Heroku, in Settings / Reveal Config Vars / add and edit to provide the information. \n\n```Bash\nAUTH0_CALLBACK_URL=http://localhost:3000/callback\nAUTH0_CLIENT_ID={CLIENT_ID}\nAUTH0_CLIENT_SECRET={CLIENT_SECRET}\nAUTH0_DOMAIN={DOMAIN}\n```\n\n-----\n\n## Running the Sample With Docker\n\nIn order to run the example with docker you need to have `docker` installed.\n\nYou also need to set the environment variables as explained [previously](#running-the-sample).\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-----\n\n## What is Auth0?\n\nAuth0 helps you to:\n\n* Add authentication with [multiple authentication sources](https://auth0.com/docs/identityproviders), either social like **Google, Facebook, Microsoft Account, LinkedIn, GitHub, Twitter, Box, Salesforce, among 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://auth0.com/docs/mysql-connection-tutorial)**.\n* Add support for **[linking different user accounts](https://auth0.com/docs/link-accounts)** with the same user.\n* Support for generating signed [Json Web Tokens](https://auth0.com/docs/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://auth0.com/docs/rules).\n\n## Create a free account in Auth0\n\n1. Go to [Auth0](https://auth0.com) and click Sign Up.\n2. Use Google, GitHub or Microsoft Account to login.\n\n## Troubleshooting\n\n* [Redirect Too Many Times](https://community.auth0.com/t/redirect-too-many-times/35606)\n\n## Author\n\n[Auth0](https://auth0.com)\n\n## License\n\nThis project is licensed under the MIT license. See the [LICENSE](LICENSE) file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdenisecase%2Fauth0-node-login","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdenisecase%2Fauth0-node-login","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdenisecase%2Fauth0-node-login/lists"}