Spaces:
Configuration error
Configuration error
Commit History
-
Migrate authentication from sessions to JWT
Bimo Abdul AzizReplace session-based auth with stateless JWT: add JwtUtil and JwtAuthFilter, configure SecurityConfig to use the JWT filter and STATELESS sessions, and remove/disable the old SessionAuthFilter. Controllers (AuthController, BookController, ReadingProgressController, SubscriptionController, UserSubscriptionController) now accept Authentication and extract userId from the JWT; AuthController.login generates a JWT and sets it on UserResponseDTO. Add jjwt dependencies to pom.xml and JWT configuration to application.properties and fly.toml (JWT_SECRET env). Also: add token field to UserResponseDTO, remove session/logout APIs and implementations, minor code cleanups (suppressWarnings on BookServiceImpl, formatting tweaks).efd17cd -
adalah pokoknya
Bimo Abdul Aziz2471b7b -
Initial commit: TeBuDi Spring Boot app
Bimo Abdul AzizAdd initial TeBuDi digital book subscription Spring Boot project. Includes pom.xml, Maven wrapper, .gitignore and application.properties. Adds application entry point and core configuration (Cloudinary, Security, WebMvc) plus SessionAuthFilter and global exception handler. Implements controllers (Auth, Book, Category, ReadingProgress, Subscription, User and related), DTOs, models, repositories, services and service implementations to support user auth, book management, file serving (proxying PDFs from Cloudinary), categories, subscriptions and reading progress. Basic CORS, session-based auth, password encoding, and static resource mapping for data-storage are configured.73c2e44