r/SpringBoot • u/MrDV6 • Jun 17 '26
Discussion I got tired of rewriting authentication for every project. Built AuthX. Would you actually use something like this
Hey everyone,
A while ago I built a small Spring Boot starter for exception handling because I was tired of rewriting the same exception layer in every project. I published it through JitPack and have been using it across my own applications ever since — consistent API error responses from day one without rewriting the same boilerplate over and over.
That experience made me ask a similar question: why am I rebuilding authentication for every project too?
Over the last few months I built AuthX — an open-source authentication system in Java and Spring Boot:
https://github.com/dhanesh76/AuthX
It currently supports credential authentication, Google and GitHub OAuth2 login, JWT access tokens, refresh token rotation, OTP verification, password reset flows, rate limiting, and human verification.
I'm a final-year CS student. Several months of that time were spent refactoring the project after realising the initial design wasn't going to be maintainable long-term. The current version is the result of multiple iterations rather than a weekend project.
What I'm trying to figure out now is:
As a Spring Boot developer, would you be interested in using authentication as reusable infrastructure the same way you might use a logging, exception-handling, or database library?
Would you rather:
A. Run something like AuthX as a standalone identity service that your application calls over HTTP
or
B. Add a dependency, configure a few properties, and have most of the authentication infrastructure wired into your application automatically through a Spring Boot starter
I'm genuinely looking for feedback before deciding what to build next.
If you've built authentication systems before, I'd love to hear what would make something like this useful enough to adopt — or why you wouldn't.
Postman docs: