Dev Blog
close
프로필 배경
프로필 로고

Dev Blog

mode_edit_outline글작성 settings환경설정
  • 분류 전체보기
    • 프로그래밍
      • JAVA
      • Spring
      • Spring Boot
      • JPA
      • DB
      • etc
  • 홈
  • JAVA
  • Spring
  • Spring Boot
  • JPA
  • DB
  • etc
  • 깃허브
UsernamePasswordAuthenticationFilter를 이용한 Spring Security와 JWT 적용

UsernamePasswordAuthenticationFilter를 이용한 Spring Security와 JWT 적용

pom.xml org.springframework.boot spring-boot-starter-security io.jsonwebtoken jjwt 0.9.1 -장정우님의 스프링 부트 핵심 가이드라는 책을 보고 정리하였습니다.- 1. 클라이언트로부터 요청을 받으면 서블릿 필터에서 SecurityFilterChain으로 작업이 위임되고 그중 UsernamePasswordAuthenticationFilter(위 그림에서는 AuthenticationFilter에 해당한다.)에서 인증을 처리한다. 2. AuthenticationFilter는 요청 객체(HttpServletRequest)에서 username과 password를 추출해서 토큰을 생성한다. 3. 그러고 나서 AuthenticationManager에게..

  • format_list_bulleted 프로그래밍/Spring Boot
  • · 2023. 5. 26.
  • textsms
  • navigate_before
  • 1
  • navigate_next
공지사항
전체 카테고리
  • 분류 전체보기
    • 프로그래밍
      • JAVA
      • Spring
      • Spring Boot
      • JPA
      • DB
      • etc
최근 글
인기 글
최근 댓글
태그
  • #스프링 부트 핵심 가이드
  • #thymeleaf
  • #springboot
  • #스프링
  • #RedirectAttributes
  • #static final
  • #Spring Security
  • #jwt
  • #아키텍쳐
  • #UsernamePasswordAuthenticationFilter
전체 방문자
오늘
어제
전체
Copyright © 쭈미로운 생활 All rights reserved.
Designed by JJuum

티스토리툴바