How h5misi/sound-cloud-using-spring-boot works
This is a Spring Boot authentication and user-account backend. Its documented user-facing workflow covers registration and login, password-reset initiation and completion, with email delivery and JWT-based authentication as supporting capabilities. The tree contains no API controllers, and the README provides no architecture detail; therefore the entry point and wiring from AuthService to token, email, and persistence operations cannot be established from the sampled source. The graph shows only documented operations and directly evidenced calls.
Main entry points: SmtpEmailService.java SMTP sender · UserRepository.java User repository · EmailService.java Email service · CustomUserDetailsService.java User details loader
Components 15
Account workflows
- Auth operations
src/main/java/com/soundcloud/SoundCloudUsingSpringBoot/auth/service/AuthService.java - Email service
src/main/java/com/soundcloud/SoundCloudUsingSpringBoot/auth/email/EmailService.java - SMTP sender
src/main/java/com/soundcloud/SoundCloudUsingSpringBoot/auth/email/SmtpEmailService.java
Authentication security
- JWT service
src/main/java/com/soundcloud/SoundCloudUsingSpringBoot/security/JwtService.java - JWT filter
src/main/java/com/soundcloud/SoundCloudUsingSpringBoot/security/JwtAuthenticationFilter.java - Security config
src/main/java/com/soundcloud/SoundCloudUsingSpringBoot/config/SecurityConfig.java - User details loader
src/main/java/com/soundcloud/SoundCloudUsingSpringBoot/security/CustomUserDetailsService.java
User and token data
- User repository
src/main/java/com/soundcloud/SoundCloudUsingSpringBoot/user/repository/UserRepository.java - User account
src/main/java/com/soundcloud/SoundCloudUsingSpringBoot/user/entity/User.java - Verification tokens
src/main/java/com/soundcloud/SoundCloudUsingSpringBoot/auth/repository/VerificationTokenRepository.java - Refresh tokens
src/main/java/com/soundcloud/SoundCloudUsingSpringBoot/auth/repository/RefreshTokenRepository.java - Reset tokens
src/main/java/com/soundcloud/SoundCloudUsingSpringBoot/auth/repository/PasswordResetTokenRepository.java
Shared response handling
- Error responses
src/main/java/com/soundcloud/SoundCloudUsingSpringBoot/common/exception/GlobalExceptionHandler.java
Other components
- Account user
- SMTP server
Connections 6
- Account user → Auth operations: requests account actions
- SMTP sender → SMTP server: sends mail
- Email service → SMTP sender: implemented by
- User details loader → User repository: looks up user
- User repository → User account: persists
- Error responses → Account user: returns error response