How To Build Magic Sign-In Links with Spring Security and Spring Boot


Intro If you ever want to provide passwordless authentication to your users, then sending them a one-time sign-in link can be a good option. In this tutorial, we will use Spring Security and Spring Boot to build a simple application that can send magic sign-in links to users. We focus on making the links cryptographically secure so they cannot be guessed. 🍿 Get the code from GitHub …

How To Log Incoming HTTP Requests with Spring Boot 3


Intro Sometimes, we need to inspect HTTP requests that hit our Spring application. This is usually easy to pull off but is complicated because a request body can no longer be handled by Spring once it is consumed (i.e., through logging). Here is a tutorial for making it possible, nevertheless. 🍿 Get the code from GitHub …

How To Log Outgoing HTTP Requests with Spring Boot 3


Intro When communicating with external APIs, we often use a RestTemplate, WebClient, or RestClient. All of these can be instrumented to log the requests they are sending so we can look into them and ensure they look how we expect them to. This tutorial shows you how to write a custom interceptor to inspect HTTP requests performed with the new RestClient. 🍿 Get the code from GitHub …

How To Build an OAuth 2 Client with Spring Boot 3


Intro Hey friends! This is a jam-packed tutorial about using Spring Boot 3, the new RestClient, and the OAuth 2 client, to connect to the YouTube API. We built an application that updates the title of a video to always* reflect the current number of views. The app is even doing this in the background, so we have to extract the access token, which otherwise would only be available during the lifetime of a request!…

Schedule Tasks Programmatically in Spring Boot


Looking to get more control over task scheduling in Spring Boot? Dive into this tutorial to learn how to harness the TaskScheduler interface for programmatically setting up tasks.

Generate Dynamic Websites using ChatGPT and Spring AI


A first look at the Spring AI project. Playing around with the AI abstraction, using ChatGPT to dynamically generate HTML.

Stub External APIs with WireMock and Spring Boot


Ever wrestled with testing external APIs? Dive into the world of WireMock with Spring Boot and see how it can make your life a breeze! This is just a starter guide, so stay tuned for deeper dives.

Manage Application Secrets in AWS Parameter Store


Managing secrets got you down? Check out how the AWS Parameter Store can be your new best friend. With AWS's IAM and Spring Cloud AWS, it's a game-changer!

Multi-Factor Authentication with Spring Security


Dive into the fun world of Multi-Factor Authentication using Spring Boot and Spring Security. Get the lowdown on time-based one-time passwords and amp up your security game!

Web3 Wallet Login with MetaMask and Spring Boot


Intro In this tutorial, I am using MetaMask to sign a nonce provided by the backend. The Spring Boot app validates the signature and authenticates a user via Spring Security. The front end is built using Vite + React. 🍿 Watch on YouTube or get the code from GitHub …

The Dead Letter Queue

Love what you're seeing? By subscribing to my newsletter, not only will you be the first to know about fresh tutorials and videos, but you'll also unlock:

Subscribe now and become a part of our growing tech tribe!