Skip to content
Jstobigdata Logo Jstobigdata Logo Jstobigdata Logo
  • Java™
    • Microservices TutorialNew
    • Spring Core Tutorial
    • Spring AOP Tutorial
    • Project Reactor Tutorial
    • RabbitMQ Tutorial
    • JMS 2.0 Tutorial
    • Design patterns
    • JPA with Hibernate
    • Apache Maven
  • ML
    • Numpy Crash Course – Data Science
    • Pandas: Data exploration
  • JavaScript
    • Data Structure and Algorithm
    • RxJS Tutorial
  • Product Engineering
    • Agile Project Management
  • DevOps
    • Kubernetes Tutorials
    • Docker Tutorial
    • Git
  • YouTube

All Posts

  1. Home
  2. All Posts
  • Spring Core Tutorial
    • Introduction to Spring Framework
    • IoC and DI in Spring
    • Bean Scopes using @Scope in Spring
    • Use of @Order annotation in Spring
    • Mapping Collections in Spring
    • Bean Lifecycle Callbacks in Spring
    • Bean definition Inheritance in Spring
    • Bean PostProcessor in Spring
    • Guide on @Autowired, @Resource and @Inject in Spring
    • Fine-tune auto wiring using @Primary and @Qualifier
    • IoC Containers in Spring Bean Factory vs Application Context
    • Manage beans using @Component, @Repository, @Service in Spring
    • Classpath Scanning using @ComponentScan and Filters
    • Read property files in using @PropertySource in Spring
    • Profiles to register beans conditionally in Spring
    • Events in Spring – Custom & Generic
    • Handle Resources in Spring using Resouce, ResourceLoader and ResourceLoaderAware
    • @Import and @ImportResource in Spring
  • Spring AOP Tutorial
    • Introduction to Spring AOP
    • Spring AOP – @Before advice
    • Spring AOP – Pointcut expressions
    • Combine and Reuse pointcut expressions
    • Spring AOP – @AfterReturning advice
    • Spring AOP – @AfterThrowing advice
    • Spring AOP – @After advice
    • Spring AOP – @Around advice
    • Spring AOP – Ordering advice using @Order
  • Spring WebFlux Tutorial
    • Project Reactor – Introduction
    • Project Reactor – Mono
    • Project Reactor – Flux
    • Project Reactor – Transform and combine
    • Project Reactor – Backpressure
    • Spring WebFlux – Annotation based Controller
    • Spring WebFlux – Functional endpoint
    • Spring WebFlux – REST Api + MongoDB + Spring Data

Recent Posts

  • Secure Your Spring Boot API with API Key and Secret
  • Migrate from Deprecated WebSecurityConfigurerAdapter in Spring Security
  • Create a Spring Security Login Page with ReactJS
  • Prevent Brute Force Authentication Attempts with Spring Security
  • Spring Security Custom AuthenticationFailureHandler

Table of Contents

  • Prerequisites
  • Project Setup
    • Maven Configuration
    • Gradle Configuration
  • Configuring Spring Security
    • SecurityConfig Class
  • Creating the Login and Logout Views
    • login.html
    • logout.html (Optional)
  • Testing the Logout Functionality
  • Configuring Logout
    • 1. Basic Logout Configuration
    • 2. Customizing the Logout URL
    • 3. Customizing the Logout Success URL
    • 4. Invalidating the HTTP Session and Deleting Cookies
    • 5. Clearing Authentication Credentials
  • Customizing Logout Behavior
    • 1. Custom Logout Handler
    • 2. Custom Logout Success Handler
  • Conclusion
Join on Gitter
Github
© Copyright | All Rights Reserved | Created by Bikram Kundu | Sitemap
FacebookLinkedInReddit
Page load link
Jstobigdata uses cookies and third party services. OK
Go to Top