How mohankumarsl2005/authenticationservice works
This is a Spring Boot authentication-service codebase. Its evident sign-in support path loads a user from persistence, then adapts the user and roles into Spring Security details. Separate service code provides JWT parsing/validation and refresh-token creation and expiry checks. The tree and excerpts contain no controller, security configuration, or substantive README, so the request entry point and wiring of token services are not established; those connections are intentionally omitted.
Main entry points: RefreshTokenService.java Refresh tokens · UserDetailServiceImp.java User lookup · UserRepository.java User repository · RefreshTokenRepository.java Token repository
Components 11
Identity lookup
- User lookup
src/main/java/com/authService/Service/UserDetailServiceImp.java - Security user
src/main/java/com/authService/Service/CustomUserDetails.java - User repository
src/main/java/com/authService/repository/UserRepository.java
Token services
- Refresh tokens
src/main/java/com/authService/Service/RefreshTokenService.java - JWT operations
src/main/java/com/authService/Service/JwtService.java - Token repository
src/main/java/com/authService/repository/RefreshTokenRepository.java
Identity model
- User record
src/main/java/com/authService/entity/UserInfo.java - User roles
src/main/java/com/authService/entity/UserRole.java - Refresh-token record
src/main/java/com/authService/entity/RefreshToken.java
Other components
- Security framework
- Relational database
Connections 10
- Security framework → User lookup: loads user
- User lookup → User repository: looks up user
- User lookup → Security user: adapts user
- User repository → Relational database: reads users
- Refresh tokens → User repository: looks up user
- Refresh tokens → Token repository: saves token
- Refresh tokens → Token repository: deletes expired
- Token repository → Relational database: persists tokens
- User record → User roles: has roles
- Refresh-token record → User record: references user