{"id":26175589,"url":"https://github.com/cenkozturrk/jwtokenauthdemo","last_synced_at":"2026-06-07T14:31:09.265Z","repository":{"id":273401832,"uuid":"444769790","full_name":"cenkozturrk/JWTokenAuthDemo","owner":"cenkozturrk","description":"\"This project showcases the implementation of JWT token authentication in a .NET application, providing a secure and stateless way to manage user access.\"","archived":false,"fork":false,"pushed_at":"2025-01-29T23:06:36.000Z","size":699,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-20T00:18:53.420Z","etag":null,"topics":["csharp","jwt-authentication"],"latest_commit_sha":null,"homepage":"","language":"C#","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/cenkozturrk.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-01-05T10:58:37.000Z","updated_at":"2025-01-29T23:06:40.000Z","dependencies_parsed_at":"2025-01-20T18:36:57.261Z","dependency_job_id":null,"html_url":"https://github.com/cenkozturrk/JWTokenAuthDemo","commit_stats":null,"previous_names":["cenkozturrk/jwtokenauthdemo"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cenkozturrk/JWTokenAuthDemo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cenkozturrk%2FJWTokenAuthDemo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cenkozturrk%2FJWTokenAuthDemo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cenkozturrk%2FJWTokenAuthDemo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cenkozturrk%2FJWTokenAuthDemo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cenkozturrk","download_url":"https://codeload.github.com/cenkozturrk/JWTokenAuthDemo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cenkozturrk%2FJWTokenAuthDemo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34025803,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-07T02:00:07.652Z","response_time":124,"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":["csharp","jwt-authentication"],"created_at":"2025-03-11T20:57:03.894Z","updated_at":"2026-06-07T14:31:09.260Z","avatar_url":"https://github.com/cenkozturrk.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JWT Token Authentication Demo\n\nThis project showcases the implementation of **JWT (JSON Web Token)** authentication in a .NET application, providing a secure and stateless way to manage user access and authorization.\n\n## Features\n\n- Demonstrates the generation and validation of JWT tokens.\n- Includes user login and token issuance.\n- Secures API endpoints using JWT-based authorization.\n- Implements role-based access control for added security.\n\n## Prerequisites\n\nBefore running this project, ensure you have the following installed:\n\n- [.NET SDK](https://dotnet.microsoft.com/download) (version 6.0 or later)\n- A tool to test API requests (e.g., [Postman](https://www.postman.com/) or cURL)\n\n## How It Works\n\n1. **User Login:**\n   - The user sends their credentials (username and password) to the authentication endpoint.\n   - A JWT token is generated upon successful login and returned to the user.\n\n2. **Securing Endpoints:**\n   - API endpoints are protected with JWT authorization.\n   - The token must be included in the `Authorization` header (`Bearer \u003ctoken\u003e`) of each request.\n\n3. **Token Validation:**\n   - The server validates the token's signature, expiration, and claims before granting access to protected resources.\n\n\n## Getting Started\n\n1. Clone this repository:\n\n   ```bash\n   git clone https://github.com/yourusername/JWTokenAuthDemo.git\n   cd JWTokenAuthDemo\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcenkozturrk%2Fjwtokenauthdemo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcenkozturrk%2Fjwtokenauthdemo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcenkozturrk%2Fjwtokenauthdemo/lists"}