{"id":26179341,"url":"https://github.com/bezkoder/angular-17-jwt-auth","last_synced_at":"2025-04-14T22:31:08.817Z","repository":{"id":220437139,"uuid":"733763462","full_name":"bezkoder/angular-17-jwt-auth","owner":"bezkoder","description":"Angular 17 JWT Authentication example - Token Based Authentication \u0026 Role Based Authorization example with HttpOnly Cookie and Rest API ","archived":false,"fork":false,"pushed_at":"2024-02-04T08:46:57.000Z","size":191,"stargazers_count":65,"open_issues_count":2,"forks_count":32,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-28T10:47:33.473Z","etag":null,"topics":["angular","angular-17","angular17","authentication","authorization","httponly-cookie","jwt","jwt-auth","jwt-authentication","jwt-authorization","jwt-token","jwt-tokens","login","login-form","login-forms","login-page","registration","token-based-authentication"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/bezkoder.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}},"created_at":"2023-12-20T04:24:53.000Z","updated_at":"2025-02-27T14:58:17.000Z","dependencies_parsed_at":"2024-02-02T03:26:58.508Z","dependency_job_id":"a6f808ee-f794-4db0-9845-dcc3152b07c3","html_url":"https://github.com/bezkoder/angular-17-jwt-auth","commit_stats":null,"previous_names":["bezkoder/angular-17-jwt-auth"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bezkoder%2Fangular-17-jwt-auth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bezkoder%2Fangular-17-jwt-auth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bezkoder%2Fangular-17-jwt-auth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bezkoder%2Fangular-17-jwt-auth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bezkoder","download_url":"https://codeload.github.com/bezkoder/angular-17-jwt-auth/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248971416,"owners_count":21191598,"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":["angular","angular-17","angular17","authentication","authorization","httponly-cookie","jwt","jwt-auth","jwt-authentication","jwt-authorization","jwt-token","jwt-tokens","login","login-form","login-forms","login-page","registration","token-based-authentication"],"created_at":"2025-03-11T21:49:39.197Z","updated_at":"2025-04-14T22:31:08.797Z","avatar_url":"https://github.com/bezkoder.png","language":"TypeScript","readme":"# Angular 17 JWT Authentication \u0026 Authorization example with Rest API\n\nBuild Angular 17 JWT Authentication \u0026 Authorization example with Rest Api, HttpOnly Cookie and JWT (including HttpInterceptor, Router \u0026 Form Validation).\n- JWT Authentication Flow for User Registration (Signup) \u0026 User Login\n- Project Structure with HttpInterceptor, Router\n- Way to implement HttpInterceptor\n- How to store JWT token in HttpOnly Cookie\n- Creating Login, Signup Components with Form Validation\n- Angular Components for accessing protected Resources\n- How to add a dynamic Navigation Bar to Angular App\n- Working with Browser Session Storage\n\n## Flow for User Registration and User Login\nFor JWT – Token based Authentication with Rest API, we’re gonna call 2 endpoints:\n- POST `api/auth/signup` for User Registration\n- POST `api/auth/signin` for User Login\n- POST `api/auth/signout` for User Logout\n\nYou can take a look at following flow to have an overview of Requests and Responses that Angular 17 JWT Authentication \u0026 Authorization Client will make or receive.\n\n![angular-17-jwt-authentication-authorization-flow](angular-17-jwt-authentication-authorization-flow.png)\n\n## Angular JWT App Diagram with Router and HttpInterceptor\n![angular-17-jwt-authentication](angular-17-jwt-authentication.png)\n\nFor more detail, please visit the tutorial:\n\u003e [Angular 17 JWT Authentication \u0026 Authorization with Web API example](https://www.bezkoder.com/angular-17-jwt-auth/)\n\n\u003e [Angular 17 Logout when Token is expired](https://www.bezkoder.com/logout-when-token-expired-angular-17/)\n\n\u003e [Angular Refresh Token with Interceptor \u0026 JWT example](https://www.bezkoder.com/angular-17-refresh-token/)\n\n## With Spring Boot back-end\n\n\u003e [Angular 17 + Spring Boot: JWT Authentication and Authorization example](https://www.bezkoder.com/angular-17-spring-boot-jwt-auth/)\n\n## With Node.js Express back-end\n\n\u003e [Angular 17 + Node.js Express: JWT Authentication and Authorization example](https://www.bezkoder.com/node-js-angular-17-jwt-auth/)\n\nRun `ng serve --port 8081` for a dev server. Navigate to `http://localhost:8081/`.\n\n## More practice\n\u003e [Angular 17 CRUD example with Rest API](https://www.bezkoder.com/angular-17-crud-example/)\n\n\u003e [Angular 17 Pagination example](https://www.bezkoder.com/angular-17-pagination-ngx/)\n\n\u003e [Angular 17 File upload example with Progress bar](https://www.bezkoder.com/angular-17-file-upload/)\n\n\u003e [Angular 17 Form Validation example](https://www.bezkoder.com/angular-17-form-validation/)\n\nFullstack with Node:\n\u003e [Angular 17 + Node Express + MySQL example](https://www.bezkoder.com/angular-17-node-js-express-mysql/)\n\n\u003e [Angular 17 + Node Express + PostgreSQL example](https://www.bezkoder.com/angular-17-node-js-express-postgresql/)\n\n\u003e [Angular 17 + Node Express + MongoDB example](https://www.bezkoder.com/angular-17-node-js-express-mongodb/)\n\n\u003e [Angular 17 + Node Express: File upload example](https://www.bezkoder.com/angular-17-node-express-file-upload/)\n\nFullstack with Spring Boot:\n\u003e [Angular 17 + Spring Boot example](https://www.bezkoder.com/spring-boot-angular-17-crud/)\n\n\u003e [Angular 17 + Spring Boot + MySQL example](https://www.bezkoder.com/spring-boot-angular-17-mysql/)\n\n\u003e [Angular 17 + Spring Boot + PostgreSQL example](https://www.bezkoder.com/spring-boot-angular-17-postgresql/)\n\n\u003e [Angular 17 + Spring Boot + MongoDB example](https://www.bezkoder.com/spring-boot-angular-17-mongodb/)\n\n\u003e [Angular 17 + Spring Boot: File upload example](https://www.bezkoder.com/angular-17-spring-boot-file-upload/)\n\nFullstack with Django:\n\u003e [Angular + Django example](https://www.bezkoder.com/django-angular-13-crud-rest-framework/)\n\n\u003e [Angular + Django + MySQL](https://www.bezkoder.com/django-angular-mysql/)\n\n\u003e [Angular + Django + PostgreSQL](https://www.bezkoder.com/django-angular-postgresql/)\n\n\u003e [Angular + Django + MongoDB](https://www.bezkoder.com/django-angular-mongodb/)\n\nServerless with Firebase:\n\u003e [Angular 17 Firebase CRUD with Realtime DataBase](https://www.bezkoder.com/angular-17-firebase-crud/)\n\n\u003e [Angular 17 Firestore CRUD example](https://www.bezkoder.com/angular-17-firestore-crud/)\n\n\u003e [Angular 17 Firebase Storage: File Upload/Display/Delete example](https://www.bezkoder.com/angular-17-firebase-storage/)\n\nIntegration (run back-end \u0026 front-end on same server/port)\n\u003e [How to integrate Angular with Node Restful Services](https://www.bezkoder.com/integrate-angular-12-node-js/)\n\n\u003e [How to Integrate Angular with Spring Boot Rest API](https://www.bezkoder.com/integrate-angular-12-spring-boot/)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbezkoder%2Fangular-17-jwt-auth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbezkoder%2Fangular-17-jwt-auth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbezkoder%2Fangular-17-jwt-auth/lists"}