How do you handle Firebase push notifications in Spring Boot?
Use the Firebase Admin SDK in Spring Boot to send FCM push notifications to devices and topics, handle stale tokens and keep credentials safe.
Spread Your Knowledge. Questions with answers, tutorials and articles, newest first.
Use the Firebase Admin SDK in Spring Boot to send FCM push notifications to devices and topics, handle stale tokens and keep credentials safe.
AuthenticationFailureHandler customises what happens after a failed login in Spring Security: redirect, log, return JSON or count attempts.
Implement AuthenticationSuccessHandler to run logic after login in Spring Security 6, from role-based redirects to JSON responses, and register it with formLogin.
Sign users in with the Firebase client SDK and verify the ID token in Spring Boot with the Admin SDK and a Spring Security filter chain.
AuthenticationProvider verifies credentials and returns an authenticated token. Learn how ProviderManager uses it and how to build a custom provider in Spring Security 6.
Configure the Firebase Admin SDK in Spring Boot, write with setValueAsync and read with a single-value listener wrapped in a CompletableFuture.
Register several AuthenticationProvider beans in a ProviderManager and wire it into your SecurityFilterChain to authenticate users from different sources.
FirebaseDatabaseClient is a custom wrapper, not an official class. See how to initialize the Firebase Admin SDK in Spring Boot and build the client.
OncePerRequestFilter is the Spring base class that guarantees a filter runs once per request. See how it works with logging and token filter examples.
Write a custom Spring Security filter with OncePerRequestFilter, position it in the SecurityFilterChain and avoid double registration in Spring Boot 3.
@RequestBody binds the HTTP request body to a method parameter using message converters. See how it works, how to validate input and avoid common errors.
Generate a random token, store only its hash with an expiry, email the link and consume it on reset. Complete Spring Boot code and a security checklist.
@EnableResourceServer came from the retired Spring Security OAuth library. Learn what it did and the modern Spring Boot 3 JWT resource server setup.
Set issuer-uri, declare a SecurityFilterChain with oauth2ResourceServer, and map scopes or roles so Spring Security validates bearer tokens for your REST API.
The annotation comes from the retired Spring Security OAuth project. Learn the modern replacement using oauth2Login and the OAuth2 client starter.
Add OAuth2 and OpenID Connect sign-in to a Spring Boot web app with Google, GitHub or a custom provider using Spring Security's oauth2Login.
AuthenticationManager is the entry point of Spring Security authentication. Learn how ProviderManager works and how to expose the manager as a bean in Spring Security 6.
Configure form login with a SecurityFilterChain bean, a UserDetailsService and a password encoder. Includes a custom login page and success handlers.
SecurityContextHolder gives you the signed-in user anywhere in a Spring app. Learn how it stores context per thread, how to set it safely and how to share it with async code.
Connect a Spring Boot backend to Firebase Realtime Database with the Admin SDK, from credentials and configuration to reads, writes and listeners.