수민정의 기술블로그

  • 홈
  • 태그
  • 방명록

BadCredentialException 2

21.AuthenticationProvider

AuthenticationProvider 실질적으로 인증처리를 하는 핵심 클래스로 Interface 이다. AuthenticaionProvider를 구현하여 서비스에 맞는 인증방식을 만드는 것이 주를 이룬다. 재정의 할 메서드 boolean support(authentication) : 조건의 기준 검사. Authentication authenticate(authentication) : 실질적 인증처리를 위한 검증 매개 값으로는 username , password 를 가진 Authentication 객체를 가진다. 흐름 구조를 알면 메서드 재정의 방식을 이해할 수 있을듯 하다. authenticate(authentication) 에서 username 검증을 위해 UserDetailsService 호출 ,..

springframework/시작하자SpringSecurity 2020.09.22

19.Authentication Flow

Authentication Flow : 인증의 흐름 Client Login Request UsernamePasswordAuthenticationFilter 가 수렴하여 username , password 를 담은 Authentication 토큰생성 AuthenticationManager 에게 Authentication 객체를 넘겨 처리 위임 AuthenticationManager는 인증 관리자로 적절한 AuthenticationProvider에게 넘기는 역할 만을 함 AuthenticationProvider 는 Authentication 객체를 받아 실제 인증 처리를 시작 AuthenticationProvider는 UserDetailsService에게 username 을 주어 User객체 요청 : loa..

springframework/시작하자SpringSecurity 2020.09.22
이전
1
다음
더보기
프로필사진

수민정의 기술블로그

Notion 사용으로 인해 블로그 기술이 중지되었습니다.

  • 분류 전체보기
    • 생각모음
    • Java
    • 멀티모듈빌딩
    • Kubernetes
    • Ubuntu
    • Cloud
    • SpringBoot
    • JAVA-Basic
    • Design Pattern
    • 책 공부
    • springframework
      • Spring Data JPA
      • 시작하자SpringSecurity
    • Vue.js
      • Vuex
      • Vue + ES6
      • Vue.js 심화
    • JSP & Servlet
    • 공룡이라는 ORACLE
    • 자바 초급문제로 맨땅에 해딩하기
    • 막무가내로 삽질하는 알고리즘
    • EL
    • MyBatis
    • 기반을 다지자 ES6
      • React.js
    • 배운 코드를 적기
    • HTTP
    • Eclipse
    • MySQL
    • 작업하면서 배우는 것들
    • Gradle
    • Ajax
    • Exception
    • CSS
    • JSON.REST?
    • TOMCAT
    • Etc
    • Docker 작업
    • API

Tag

HttpSecurity, SecurityContextHolder, AuthenticationManager, AuthenticationManagerBuilder, FilterChainProxy, userDetailsService, Authentication, UserDetails, AuthenticationException, BadCredentialException, AuthenticationProvider, SecurityContextPersistenceFilter, springsecurity, UsernamePasswordAuthenticationFilter, Filter, FilterSecurityInterceptor, AccessDeniedException, AccessDecisionManager, UserNameNotFoundException, SecurityContext,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

  • Notion 사용으로 인해 블로그 기술은 중지합니다.

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

«   2025/07   »
일 월 화 수 목 금 토
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31

방문자수Total

  • Today :
  • Yesterday :

Copyright © Kakao Corp. All rights reserved.

  • GitHub
  • basic
  • Velog

티스토리툴바