
Already know some of this? A 2-minute test skips the lessons you know.
Take the placement testA free 23-lesson course built from Anuj Kumar Sharma's 4h 07m of YouTube video. 3 days at 90 minutes a day, with study notes and a quiz in every lesson. A 2-minute placement test skips what you already know.
Taught by Anuj Kumar Sharma on YouTube. Videos play in YouTube's own player, so the creator keeps every view.
Create a Spring Boot project with Security, Web, JPA, H2, and Lombok dependencies using Spring Initializr.
Explain the default Spring Security filter chain architecture and the role of FilterChainProxy.
Implement a custom AuthenticationProvider to replace default in-memory authentication with database-backed credentials.
Trace the internal authentication flow from UsernamePasswordAuthenticationFilter to AuthenticationManager and ProviderManager.
Describe JSON Web Token structure, claims, signing algorithms, and the difference between JWT and opaque tokens.
Create a JPA User entity with BCrypt password encoding and configure H2 database persistence for user storage.
Implement a /login controller that authenticates credentials and returns a signed JWT access token.
Create a /signup endpoint to persist new users with encoded passwords and return a JWT upon successful registration.
Disable CSRF, configure stateless session policy, and permit public access to auth endpoints while securing others.
Build a OncePerRequestFilter that extracts, validates JWTs, and populates SecurityContext with authenticated principals.
Implement a ControllerAdvice to translate authentication exceptions into standardized 401/403 JSON error responses.
Add spring-boot-starter-oauth2-client dependency and understand the ClientRegistrationRepository abstraction.
Register a Google OAuth2 client in Google Cloud Console and configure client-id, secret, and redirect URI in application.yml.
Create an AuthenticationSuccessHandler that exchanges the OAuth2 authorization code for tokens and issues a custom JWT.
Implement a service that links OAuth2 users to local accounts, handles first-time signup, and returns a unified JWT.
Implement a service that links OAuth2 users to local accounts, handles first-time signup, and returns a unified JWT.
Implement a service that links OAuth2 users to local accounts, handles first-time signup, and returns a unified JWT.
Extend the User entity with a roles collection and implement Role enum with DOCTOR, PATIENT, ADMIN values.
Create Doctor and Patient entities with OneToOne links to User and implement cascading persistence for profile onboarding.
Implement a UserDetailsService that converts domain roles into GrantedAuthority objects for Spring Security authorization.
Build a POST /admin/doctors endpoint restricted to ROLE_ADMIN that creates Doctor profiles linked to existing users.
Enable @PreAuthorize and @PostAuthorize annotations to enforce permissions like 'can_prescribe' at the method level.
Use SecurityContext and AuthorizationManager APIs to perform imperative authorization checks inside business logic.