{"id":13726029,"url":"https://github.com/auth0-blog/angular2-authentication-sample","last_synced_at":"2025-04-12T16:38:19.355Z","repository":{"id":31179710,"uuid":"34740196","full_name":"auth0-blog/angular2-authentication-sample","owner":"auth0-blog","description":"This is a sample that shows how to add authentication to an Angular 2 (ng2) app","archived":false,"fork":false,"pushed_at":"2017-10-16T19:06:39.000Z","size":290,"stargazers_count":963,"open_issues_count":29,"forks_count":334,"subscribers_count":117,"default_branch":"master","last_synced_at":"2025-04-03T17:11:46.396Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/auth0-blog.png","metadata":{"files":{"readme":"Readme.md","changelog":"CHANGELOG.md","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":"2015-04-28T15:51:03.000Z","updated_at":"2025-03-05T05:29:16.000Z","dependencies_parsed_at":"2022-09-09T03:31:20.070Z","dependency_job_id":null,"html_url":"https://github.com/auth0-blog/angular2-authentication-sample","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/auth0-blog%2Fangular2-authentication-sample","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/auth0-blog%2Fangular2-authentication-sample/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/auth0-blog%2Fangular2-authentication-sample/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/auth0-blog%2Fangular2-authentication-sample/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/auth0-blog","download_url":"https://codeload.github.com/auth0-blog/angular2-authentication-sample/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248597732,"owners_count":21130933,"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-08-03T01:02:49.243Z","updated_at":"2025-04-12T16:38:19.334Z","avatar_url":"https://github.com/auth0-blog.png","language":"JavaScript","readme":"# Angular 2: Authentication sample.\n\nThis sample shows how to create an angular 2 app that:\n* Has **lots of different routes**\n* Performs **authentication with JWTs**\n* **Calls APIs** authenticated and not.\n* Extends the **RouterOutlet** for route pipeline changes.\n\nYou can **learn more about how it works in the following blogposts**\n\n* [Angular 2 Authentication Tutorial](https://auth0.com/blog/angular-2-authentication/)\n* [Protecting Routes using Guards in Angular 2](http://blog.thoughtram.io/angular/2016/07/18/guards-in-angular-2.html)\n* [Angular 2 authentication revisited](https://medium.com/@blacksonic86/angular-2-authentication-revisited-611bf7373bf9)\n\n## Running it\n\nClone this repository as well as [the server](https://github.com/auth0/nodejs-jwt-authentication-sample) for this example.\n\nFirst, run the server app in the port `3001`.\n\nThen, run `npm install` on this project and run `npm start` to start the app. Then just navigate to [http://localhost:3000](http://localhost:3000) :boom:\nUse `npm run server` to run API server.\n\n## Issue Reporting\n\nIf you have found a bug or if you have a feature request, please report them at this repository issues section. Please do not report security vulnerabilities on the public GitHub issue tracker. The [Responsible Disclosure Program](https://auth0.com/whitehat) details the procedure for disclosing security issues.\n\n## Author\n\n[Auth0](auth0.com)\n\n## License\n\nThis project is licensed under the MIT license. See the [LICENSE](LICENSE) file for more info.\n","funding_links":[],"categories":["JavaScript","Awesome Angular [![Awesome TipeIO](https://img.shields.io/badge/Awesome%20Angular-@TipeIO-6C6AE7.svg)](https://github.com/gdi2290/awesome-angular) [![Awesome devarchy.com](https://img.shields.io/badge/Awesome%20Angular-@devarchy.com-86BDC1.svg)](https://github.com/brillout/awesome-angular-components)","Others:"],"sub_categories":["Angular \u003ca id=\"angular\"\u003e\u003c/a\u003e"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fauth0-blog%2Fangular2-authentication-sample","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fauth0-blog%2Fangular2-authentication-sample","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fauth0-blog%2Fangular2-authentication-sample/lists"}