AY

Ayush Shrivastava

48
Articles

Content by Ayush Shrivastava

48 articles found

Mastering Spring Security 7 with Spring Boot 4 and Java 21 – Part 8.2: Custom OAuth2UserService and Persisting Users in the Database
Backend
2 min read

Mastering Spring Security 7 with Spring Boot 4 and Java 21 – Part 8.2: Custom OAuth2UserService and Persisting Users in the Database

After a user successfully authenticates with Google, Spring Security retrieves the user's profile information.

7/31/2026
Mastering Spring Security 7 with Spring Boot 4 and Java 21 – Part 8.1: Configuring Google OAuth2 Login in Spring Boot
Backend
2 min read

Mastering Spring Security 7 with Spring Boot 4 and Java 21 – Part 8.1: Configuring Google OAuth2 Login in Spring Boot

Google acts as the Authorization Server, while your Spring Boot application acts as the OAuth2 Client.

7/30/2026
Mastering Spring Security 7 with Spring Boot 4 and Java 21 – Part 8: OAuth2 Login, Social Authentication, and OpenID Connect
Backend
2 min read

Mastering Spring Security 7 with Spring Boot 4 and Java 21 – Part 8: OAuth2 Login, Social Authentication, and OpenID Connect

Spring Security provides built-in support for OAuth2 and OpenID Connect (OIDC), making it straightforward to integrate third-party identity providers into Spring Boot applications.

7/29/2026
Mastering Spring Security 7 with Spring Boot 4 and Java 21 – Part 7: JWT Authentication and Authorization for Secure REST APIs
Backend
2 min read

Mastering Spring Security 7 with Spring Boot 4 and Java 21 – Part 7: JWT Authentication and Authorization for Secure REST APIs

In this article, we will build a complete JWT-based authentication system using Spring Security 7, Spring Boot 4, and Java 21.

7/27/2026
Mastering Spring Security 7 with Spring Boot 4 and Java 21 – Part 6: Method-Level Security with @PreAuthorize, @PostAuthorize, and @Secured
Backend
4 min read

Mastering Spring Security 7 with Spring Boot 4 and Java 21 – Part 6: Method-Level Security with @PreAuthorize, @PostAuthorize, and @Secured

In this article, we will learn how to implement method-level security in Spring Security 7 using Spring Boot 4 and Java 21.

7/21/2026
Mastering Spring Security 7 with Spring Boot 4 and Java 21 – Part 5: Roles vs Authorities Explained

Mastering Spring Security 7 with Spring Boot 4 and Java 21 – Part 5: Roles vs Authorities Explained

In this article, we will explore role-based and authority-based authorization in Spring Security 7, understand their differences, and implement production-ready access control for REST APIs.

7/20/2026

Follow Ayush Shrivastava

Stay updated with Ayush Shrivastava's latest articles and insights on backend development.