spring security 9

[baeldung] Default Password Encoder in Spring Security 5

더보기 https://www.baeldung.com/spring-security-5-default-password-encoder Spring Security 4에서는 메모리 내 인증을 사용하여 일반 텍스트로 비밀번호를 저장할 수 있었다. 그러나 Spring Security 5는 암호 관리 프로세스에 대한 대대적인 점검으로 암호 인코딩 및 디코딩을 위한 보다 안전한 기본 메커니즘이 도입되었다 Spring Security 4 We'll start by showing a standard security configuration that provides simple in-memory authentication Spring 4 의 예시 @Configuration public class InMemoryAuthWeb..

[baeldung] Control the Session with Spring Security

XML 은 안적음**** 더보기 https://www.baeldung.com/spring-security-session Spring Security가 HTTP 세션을 제어할 수 있는 방법 When Is the Session Created? We can control exactly when our session gets created and how Spring Security will interact with it: always – A session will always be created if one doesn't already exist. ifRequired – A session will be created only if required (default). never – The framework wil..

[baeldung] Retrieve User Information in Spring Security

더보기 https://www.baeldung.com/get-user-in-spring-security Spring Security를 이용하여 사용자 세부 정보를 검색할 수 있다 Get the User in a Bean The simplest way to retrieve the currently authenticated principal is via a static call to the SecurityContextHolder 현재 인증된 보안 principal 값을 가져오려면 SecurityContextHolder 를 호출한다 Authentication authentication = SecurityContextHolder.getContext().getAuthentication(); if (!(authent..

[Spring] Async Support with Spring MVC and Spring Security

https://www.baeldung.com/spring-mvc-async-security 비동기 요청에 대한 Servlet 3 과 MVC, Security 에 관련된 내용이다 참고로 Spring Security는 MVC 범위 밖에서 @Async 와 통합되고 HTTP 요청도 처리합니다. implementation 'org.springframework.boot:spring-boot-starter-security' testImplementation 'org.springframework.security:spring-security-test' Spring MVC and @Async WebAsyncManager https://docs.spring.io/spring-framework/docs/current/java..

Web/spring 2023.04.06

[Spring Security] Handle Spring Security Exceptions

https://www.baeldung.com/spring-security-exceptions Spring Security는 비즈니스 로직에 대한 호출을 제어하거나 특정 URL에 대한 HTTP 요청 액세스를 제한한다 해당 보안 계층에서 Exceptions 처리가 어떻게 진행되는지 알아보자 Authentication Success Handler Authentication Failure Handler Access Denied Handler Security Configuration This will be in charge of managing all the security configurations of the application SecurityFilterChain @Bean public SecurityFil..

Web/spring 2023.04.04

[Spring Security] WebSecurityConfigurerAdapter deprtecate

Spring Security 를 공부하던 중, 예제를 보고 따라하다가 예제에서 사용하는 WebSecurityConfigurerAdapter 가 deprecate 되어있다는 것을 확인했다. 🤨 방법이 새롭게 있겠지.. 검색검색 https://docs.spring.io/spring-security/reference/servlet/oauth2/login/advanced.html Advanced Configuration :: Spring Security By default, the OAuth 2.0 Login Page is auto-generated by the DefaultLoginPageGeneratingFilter. The default login page shows each configured OAuth..

Web/spring 2022.12.14
728x90