{"id":20307446,"url":"https://github.com/oktadev/auth0-angular-example","last_synced_at":"2025-09-22T20:31:02.040Z","repository":{"id":45856007,"uuid":"433899602","full_name":"oktadev/auth0-angular-example","owner":"oktadev","description":"Angular + Auth0 Example","archived":false,"fork":false,"pushed_at":"2022-01-18T15:38:26.000Z","size":218,"stargazers_count":0,"open_issues_count":0,"forks_count":5,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-04-05T03:51:13.518Z","etag":null,"topics":["angular","auth0","oidc","openid-connect"],"latest_commit_sha":null,"homepage":"https://auth0.com/blog/add-oidc-to-angular-apps-quickly/","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/oktadev.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":"2021-12-01T16:19:48.000Z","updated_at":"2022-01-18T15:38:05.000Z","dependencies_parsed_at":"2022-09-19T22:34:01.565Z","dependency_job_id":null,"html_url":"https://github.com/oktadev/auth0-angular-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/oktadev/auth0-angular-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oktadev%2Fauth0-angular-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oktadev%2Fauth0-angular-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oktadev%2Fauth0-angular-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oktadev%2Fauth0-angular-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oktadev","download_url":"https://codeload.github.com/oktadev/auth0-angular-example/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oktadev%2Fauth0-angular-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276468630,"owners_count":25647961,"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","status":"online","status_checked_at":"2025-09-22T02:00:08.972Z","response_time":79,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["angular","auth0","oidc","openid-connect"],"created_at":"2024-11-14T17:17:43.542Z","updated_at":"2025-09-22T20:31:01.674Z","avatar_url":"https://github.com/oktadev.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Angular OpenID Connect with Auth0 Example\n\nThis example shows you how to integrate OpenID Connect authentication with Angular and Auth0.\n\nPlease read [Add OpenID Connect to Angular Apps Quickly][blog] to see how this app was created.\n\n**Prerequisites:**\n\n- [Node.js 14+](https://nodejs.org/)\n- An [Auth0 Account](https://auth0.com/signup)\n\n\u003e [Auth0](https://auth0.com) is an easy to implement, adaptable authentication and authorization platform. Basically, we make your login box awesome.\n\n* [Getting Started](#getting-started)\n* [Links](#links)\n* [Help](#help)\n* [License](#license)\n\n## Getting Started\n\nTo install this example, clone it.\n\n```\ngit clone https://github.com/oktadev/auth0-angular-example.git\ncd auth0-angular-example\n```\n\n### Create an OIDC App on Auth0\n\nTo add authentication with Auth0, you'll first need a [free Auth0 account](https://auth0.com/signup). Install the [Auth0 CLI](https://github.com/auth0/auth0-cli#installation) and run `auth0 login` to register your account. Then, run `auth0 apps create`. Specify a name and description of your choosing. Choose **Single Page Web Application** and use `http://localhost:4200/home` for the Callback URL. Specify `http://localhost:4200` for the rest of the URLs.\n\nYou can also use the Auth0 Console:\n\n* [Log in](https://auth0.com/auth/login) to Auth0 or [create an account](https://auth0.com/signup) if you don't have one. Go to **Applications** \u003e **Create Application**.\n* Choose **Single Page Web Applications** as the application type and click **Create**.\n* Click **Angular**, then the **Settings** tab.\n* Add `http://localhost:4200/home` as an Allowed Callback URL and `http://localhost:4200` as a Logout URL.\n* Specify `http://localhost:4200` as an Allowed Origin and click **Save Changes** at the bottom.\n\nModify `src/app/auth-routing.module.ts` to add your Auth0 OIDC settings:\n\n```ts\nconst config = {\n  domain: 'YOUR-AUTH0-DOMAIN',\n  clientId: 'YOUR-AUTH0-CLIENT-ID',\n  redirectUri: window.location.origin + '/home',\n  httpInterceptor: {\n    allowedList: ['/api/*']\n  },\n};\n```\n\nRun `ng serve` in your app, and you should see a login button at `http://localhost:4200/home`.\n\n## Links\n\nThis example uses the following open source libraries:\n\n* [Angular](https://angular.io)\n* [Auth0 Angular SDK](https://github.com/auth0/auth0-angular)\n* [OktaDev Schematics](https://github.com/oktadev/schematics)\n\n## Help\n\nPlease post any questions as comments on the [blog post][blog].\n\n## License\n\nApache 2.0, see [LICENSE](LICENSE).\n\n[blog]: https://auth0.com/blog/add-oidc-to-angular-apps-quickly/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foktadev%2Fauth0-angular-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foktadev%2Fauth0-angular-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foktadev%2Fauth0-angular-example/lists"}