Tagged articles

spring security

210 articles · Page 3 of 3
Programmer DD
Programmer DD
Jan 22, 2018 · Information Security

Step‑by‑Step Spring Security Demo: Login, Logout and Page Protection

This tutorial walks through a complete Spring Boot demo that sets up Maven dependencies, creates Thymeleaf front‑end pages (home, login, hello), implements a main Application class, a HomeController, and a WebSecurityConfig to secure the application with in‑memory authentication, illustrating how to protect URLs, configure a custom login page, and enable logout functionality.

Spring BootWeb Authenticationjava
0 likes · 7 min read
Step‑by‑Step Spring Security Demo: Login, Logout and Page Protection
Programmer DD
Programmer DD
Jan 17, 2018 · Backend Development

How to Insert Custom Filters into Spring Security’s Filter Chain

This guide explains how to create a custom Spring Security filter, extend GenericFilterBean, and precisely position it within the default filter chain using HttpSecurity’s addFilterBefore, addFilterAfter, or addFilterAt methods, complete with code examples and configuration steps.

Custom FilterHttpSecurityjava
0 likes · 4 min read
How to Insert Custom Filters into Spring Security’s Filter Chain
Programmer DD
Programmer DD
Jan 14, 2018 · Backend Development

Integrating Spring Security with MyBatis for Database‑Based Login

This guide shows how to combine Spring Security and MyBatis to implement username‑password authentication backed by a MariaDB database, covering repository cloning, database setup, Maven execution, and a deep dive into the underlying authentication filter and provider classes with code examples.

DatabaseMyBatisSpring Boot
0 likes · 9 min read
Integrating Spring Security with MyBatis for Database‑Based Login
Programmer DD
Programmer DD
Jan 11, 2018 · Information Security

Master Spring Security: A Hands‑On Guide to @EnableWebSecurity and HttpSecurity Configuration

This tutorial walks you through setting up a Spring Boot project with Spring Security, explains the @EnableWebSecurity annotation, shows how to extend WebSecurityConfigurerAdapter, demonstrates overriding configure(AuthenticationManagerBuilder) and configure(HttpSecurity) methods with concrete code examples, and provides a concise reference table of common HttpSecurity methods.

HttpSecurityauthenticationbackend development
0 likes · 7 min read
Master Spring Security: A Hands‑On Guide to @EnableWebSecurity and HttpSecurity Configuration
Programmer DD
Programmer DD
Jan 2, 2018 · Information Security

Understanding Spring Security Architecture: Authentication, Authorization, and Filter Chains

This guide provides a deep dive into Spring Security's architecture, explaining how authentication and authorization are separated, how the AuthenticationManager and AccessDecisionManager work, how web filter chains are organized, and how to apply method‑level security and thread‑local context handling in Java applications.

Filter Chainauthenticationauthorization
0 likes · 17 min read
Understanding Spring Security Architecture: Authentication, Authorization, and Filter Chains
Programmer DD
Programmer DD
Dec 17, 2017 · Backend Development

Your One‑Stop Spring Guide: Boot, Cloud, and Security Resources

This weekend roundup compiles essential Spring Boot, Spring Cloud, and Spring Security articles—including quick starts, deep‑dive tutorials, microservice patterns, API‑gateway tips, and OAuth2 guides—providing developers a convenient reference list to enhance their Java backend expertise.

Spring BootSpring Cloudjava
0 likes · 6 min read
Your One‑Stop Spring Guide: Boot, Cloud, and Security Resources
Java Captain
Java Captain
Oct 27, 2017 · Information Security

Practical Tips for Securing and Optimizing Java APIs

This article presents a collection of straightforward, developer‑friendly techniques for enhancing Java API security and performance, covering API key protection, TLS adoption, Spring Boot web service creation, application monitoring, and safeguarding sensitive configuration files.

API securityTLSperformance monitoring
0 likes · 8 min read
Practical Tips for Securing and Optimizing Java APIs
Programmer DD
Programmer DD
Oct 6, 2017 · Information Security

How Spring Security’s Core Configurations Protect Your Application

This article breaks down Spring Security’s three core Java configuration components—@EnableWebSecurity, WebSecurityConfiguration, and AuthenticationConfiguration—explaining how they replace XML setup, register the security filter chain, build the AuthenticationManager, and enable fine‑grained HttpSecurity rules such as path protection, form login, logout, CSRF, and security headers.

AuthenticationManagerHttpSecurityIn-Memory Authentication
0 likes · 8 min read
How Spring Security’s Core Configurations Protect Your Application
Programmer DD
Programmer DD
Aug 11, 2017 · Backend Development

How @EnableResourceServer Configures OAuth2 Token Validation in Spring Security

This article breaks down the internal workflow of Spring Security’s @EnableResourceServer, explaining how OAuth2 tokens are extracted, validated, and turned into authentication objects through ResourceServerSecurityConfigurer, OAuth2AuthenticationProcessingFilter, OAuth2AuthenticationManager, and related components.

OAuth2authenticationjava
0 likes · 11 min read
How @EnableResourceServer Configures OAuth2 Token Validation in Spring Security
Programmer DD
Programmer DD
Aug 9, 2017 · Information Security

Secure Spring Boot APIs with OAuth2: A Hands‑On Tutorial

This article walks through building a Spring Boot application that protects HTTP endpoints using OAuth2, covering password and client‑credentials flows, Maven setup, resource and authorization server configuration, in‑memory users, token retrieval, and accessing secured resources with detailed code examples.

API securityOAuth2Password Grant
0 likes · 13 min read
Secure Spring Boot APIs with OAuth2: A Hands‑On Tutorial