{"repo":"raphaelDL/spring-webflux-security-jwt","free":true,"listed":false,"github":"https://github.com/raphaelDL/spring-webflux-security-jwt","clone":"git clone https://github.com/raphaelDL/spring-webflux-security-jwt.git","description":"A JWT authorization and authentication implementation with Spring Reactive Webflux, Spring Boot 2 and Spring Security 5","language":"Java","stars":298,"topics":["spring-boot","spring-security","webflux","reactive","jwt-authentication","jwt"],"license":null,"category":"auth-billing-email","readme_excerpt":"[!IMPORTANT] ## 🚀 This project has been modernized A maintained version — Spring Boot 4 · Java 21 · Spring Security 7 , with a full test suite and a fix for a latent authorization bug — now lives here: ### 👉 spring-webflux-security-jwt-2026 This repository is kept for historical reference. Authentication and Authorization using JWT with Spring WebFlux and Spring Security Reactive Nice Docs to Read First Before getting started I suggest you go through the next reference Spring Webflux Spring Security Reactive Spring Security Architecture Enable Spring WebFlux Security First enable Webflux Security in your application with @EnableWebFluxSecurity Create an InMemory UserDetailsService Define a custom UserDetailsService bean where an User with password and initial roles is added: In this example user information will be stored in memory using a Map but it can be replaced by different strategies. Before getting a Json Web Token an user should use another authentication mechanism, for example HTTP Basic Authentication and provided the right credentials a JWT will be issued which can be used to perform future API calls by changing the Authetication method from Basic to Bearer. Starting from Basic Authentication Below there's a simple way to define Basic Authentication with Spring Security. Customization is needed in order to return a JWT on succesful authentication. Inspect AuthenticationFilter, improvise, adapt overcome With Spring Reactive, requests go through a chain of filters,","default_branch":null,"files":null,"tree":[],"storefront":"/r/raphaelDL","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/raphaelDL/spring-webflux-security-jwt/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}