sandeepkumar17/AuthDemoApi
59.1
Weak · 21 September 2026
370
lines of production code
C#
primary language
4
measurements over time
What this system is
This system is a .NET 8.0-based authentication service that manages user identity and access control. It provides a RESTful API for user authentication and data retrieval, secured via JWT tokens. The architecture separates concerns into application, core domain, and infrastructure layers, utilizing Dapper for database interactions.
Features
Add User entity to the core domain model
A new User entity has been introduced in the core domain, defining the structure for user data including Id, FirstName, LastName, and Username, while explicitly excluding the Password field from JSON serialization.
AuthDemo.Core · high confidence
Added user repository and database setup for authentication
The AuthDemo.Infrastructure layer now includes a new UserRepository implementation that uses Dapper to query the User table for authentication and retrieval operations. The infrastructure also registers the repository and Unit of Work in the service collection, and provides SQL scripts to create the AuthDemoDB database and User table with initial test data.
AuthDemo.Infrastructure · high confidence
Introduced unit of work and user repository interfaces
Added new interfaces for the application layer: IUnitOfWork, which exposes a Users property, and IUserRepository, which defines methods for retrieving all users, finding a user by ID, and authenticating a user by username and password.
AuthDemo.Application · high confidence
Behavioural changes
Introduced JWT-based authentication for the AuthDemoApi
The AuthDemoApi now supports JWT (JSON Web Token) authentication. A new \UsersController\ exposes an \Authenticate\ endpoint that issues JWTs and a \GetAll\ endpoint protected by a custom \AuthorizeAttribute\. A \JwtMiddleware\ validates incoming tokens and attaches user context, while helper classes (\Common\, \AppSettings\) manage token generation and configuration. This adds a new security mechanism for API access.
AuthDemoApi · high confidence
Updated project structure and documentation for .NET 8.0
The solution file (AuthDemoApi.sln) and .gitignore were added to the repository, establishing the build configuration for the AuthDemoApi, AuthDemo.Application, AuthDemo.Core, and AuthDemo.Infrastructure projects. Documentation in README.md was updated to reflect the upgrade to .NET 8.0 and includes a link to a related blog post, while the LICENSE file's copyright year was updated to 2024.
(repo-wide) · high confidence
Dependencies
Upgrade to .NET 8.0 across all project files
All project files in the solution have been updated to target .NET 8.0. This includes the AuthDemoApi, AuthDemo.Application, AuthDemo.Core, and AuthDemo.Infrastructure projects. Additionally, specific package versions have been set, such as Microsoft.AspNetCore.Authentication.JwtBearer 8.0.6, Microsoft.IdentityModel.JsonWebTokens 7.6.0, and Dapper 2.1.35, aligning the application with the new framework version.
(dependencies) · high confidence
Written by watchdog.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
How this codebase got here
Score
- CAI 60 → 59 (-1.1)
- Rubric changed (rubric-2026.08.19 → rubric-2026.09.15) — scores are not directly comparable.
Lenses
- Code Health 82 → 82 (+0.0)
- Architecture 86 → 86 (+0.0)
- Maturity 67 → 67 (+0.0)
- Readiness 44 → 44 (+0.0)
- Security 81 → 73 (-7.6)
Resolved (7)
- No exposed public API
- early-stage repository — too little history to judge knowledge freshness
- git history depth insufficient
- git history depth insufficient
- misleading comment (AuthDemoApi/Program.cs)
- misleading comment (AuthDemoApi/Program.cs)
- single-maintainer — knowledge-concentration (bus factor) risk
New (4)
- Documentation: no installation or build instructions (README.md)
- Documentation: no usage examples (README.md)
- redundant comment (AuthDemo.Infrastructure/Sql/Queries.cs)
- redundant comment (AuthDemoApi/Helper/AuthorizeAttribute.cs)
API surface
- Unchanged — 2 HTTP endpoints
Architecture
- Unchanged — 2 containers · 0 contexts · 0 edges
Written by watchdog.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
Survey your own repository
sandeepkumar17/AuthDemoApi was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.
About this page
- The score is its most recent published measurement, taken on 21 September 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
- Measured at commit 9a843f3e6855b765c896dc604e6e6c60e7295255 — the exact code this score is about.
- Scored under rubric-2026.09.15 — the same rubric and the same method as every other entry in this index.
- Measured by watchdog.canine.dev using codehealth-analyzer preprod-fa71c66cabd8.