Skip to content

Instantly share code, notes, and snippets.

View adbourne's full-sized avatar

Aaron Bourne adbourne

View GitHub Profile
@adbourne
adbourne / gist:63b3e7fc4ea1cd6a95e96ecd6b14afbb
Created August 28, 2025 20:12
Log Spring Security Filter Chain
/** Do not use in prod */
package com.devtiro.secureweb.services;
import jakarta.servlet.Filter;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.context.event.ApplicationReadyEvent;
import org.springframework.context.event.EventListener;
import org.springframework.security.web.DefaultSecurityFilterChain;
/** Do not use in prod */
package com.devtiro.secureweb;
import jakarta.annotation.PostConstruct;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;
import java.util.Arrays;