본문 바로가기

Spring/Spring Security5

spring security2 (spring boot , 타임리프 사용 / form로그인) - view 👇1편의 내용을 진행한 후 2편을 확인해주세요. spring security1 (spring boot , 타임리프 사용 / form로그인) - 구조 분석 및 로직 코드 작성 개인적으로 공부한 내용을 정리한 글입니다. 틀린 내용이 있을 수 있습니다. 있다면 댓글로 알려주시면 감사하겠습니다😊 이미지로 확인하는 spring security 구조 AuthenticationFilter로 먼저 요청이 taetoungs-branch.tistory.com 작성한 view의 핵심 코드만 소개합니다. 전체 코드가 필요하신 경우 github에서 확인할 수 있습니다. 🙂 https://github.com/ty990520/spring-security/tree/master GitHub - ty990520/spring-securi.. 2022. 3. 18.
spring security1 (spring boot , 타임리프 사용 / form로그인) - 구조 분석 및 로직 코드 작성 개인적으로 공부한 내용을 정리한 글입니다. 틀린 내용이 있을 수 있습니다. 있다면 댓글로 알려주시면 감사하겠습니다😊 이미지로 확인하는 spring security 구조 AuthenticationFilter로 먼저 요청이 들어옴 아이디와 비밀번호를 기반으로 UserPasswordAuthenticationToken을 발급함 AuthentivationFilter는 UserPasswordAuthenticationToken을 AuthenticationManager(실제로 인증을 처리하는 AuthenticationProvider를 가지고 있음)한테 전달함 AuthenticationManager는 전달받은 UsernamePasswordToken을 순차적으로 AuthenticaionProvider들에게 전달하여 실제 .. 2022. 3. 18.
Spring Security 실습2 - 커스텀 로그인 페이지 만들기 이전 게시물과 이어지는 내용입니다. 2021.08.20 - [Spring/개념지식 및 에러사항] - Spring Security 실습1 - url설계를 통한 접근 제한 방법 Spring Security 실습1 - url설계를 통한 접근 제한 방법 📌 해당 실습을 하기 전 아래의 게시물을 참고하여 스프링 시큐리티 설정을 완료해야합니다. 2021.08.19 - [Spring/개념지식 및 에러사항] - [Spring] Spring Web Security 설정하기 [Spring] Spring Web Security.. taetoungs-branch.tistory.com 커스텀 로그인 페이지 솔직히 스프링 시큐리티에서 기본적으로 제공하는 로그인 페이지는... 구리다. 현실적으로 웹 서비스를 할 때 이런 화면 디자.. 2021. 8. 20.
Spring Security 실습1 - url설계를 통한 접근 제한 방법 📌 해당 실습을 하기 전 아래의 게시물을 참고하여 스프링 시큐리티 설정을 완료해야합니다. 2021.08.19 - [Spring/개념지식 및 에러사항] - [Spring] Spring Web Security 설정하기 [Spring] Spring Web Security 설정하기 로그인 기능을 사용하는 경우, 웹에서는 기본적으로 쿠키를 이요하거나 세션을 이용하는 방식이 일반적이다. 스프링에서는 이를 Interceptor 등을 이용한 방법으로 처리할 수 있다. Spring Web Security taetoungs-branch.tistory.com 시큐리티가 필요한 URL 설계 시큐리티를 사용하여 제어해야하는 URL을 설계하는 작업을 실습해보자. 1. 로그인을 하지 않은 사용자도 접근 가능한 URL ➔ /samp.. 2021. 8. 20.
Spring Web Security 설정하기 로그인 기능을 사용하는 경우, 웹에서는 기본적으로 쿠키를 이용하거나 세션을 이용하는 방식이 일반적이다. 스프링에서는 이를 Interceptor 등을 이용한 방법으로 처리할 수 있다. Spring Web Security https://spring.io/projects/spring-security#overview Spring Security Spring Security is a framework that focuses on providing both authentication and authorization to Java applications. Like all Spring projects, the real power of Spring Security is found in how easily it can b.. 2021. 8. 19.