반응형
타진
개발 그라운드
타진
전체 방문자
오늘
어제
  • 분류 전체보기 (136)
    • 프로그래밍 (65)
      • Java (28)
      • Android (1)
      • Web (19)
      • Web-Spring (12)
      • R (5)
      • Angular (0)
    • 운영체제 (17)
      • Linux (14)
      • Docker(vmware) (3)
    • 클라우드 (4)
      • aws (0)
      • aws_handson (4)
    • 개발문제해결 (25)
      • Exception (12)
      • 알고리즘 문제풀이 (13)
    • 그 외 개발관련 (23)
    • 일상 (1)

블로그 메뉴

  • 홈
  • 태그
  • 미디어로그
  • 위치로그
  • 방명록

공지사항

인기 글

태그

  • 4700u
  • 빠른 시작 켜기
  • jdk14
  • stackset
  • transit gateway peering
  • wsl2
  • docker desktop
  • 일어키보드
  • 문법 체크
  • wsl_update_x64
  • chromium edge
  • transit_gateway
  • ubuntu terminal
  • docker
  • vmmem
  • alt tab
  • github
  • 키보드매핑
  • 라이젠
  • handson
  • docker ps
  • Github CLI
  • cfn
  • 정올알고리즘 정올 알고리즘
  • 크로미움 엣지
  • GIT
  • github actions
  • AWS
  • 빠른 시작 끄기
  • angular cli

최근 댓글

최근 글

티스토리

hELLO · Designed By 정상우.
타진

개발 그라운드

스프링 시큐리티 5 - There is no PasswordEncoder mapped for the id "null"
개발문제해결/Exception

스프링 시큐리티 5 - There is no PasswordEncoder mapped for the id "null"

2018. 3. 11. 18:24
반응형


https://spring.io/blog/2017/11/01/spring-security-5-0-0-rc1-released#reverting-to-previous-behavior-insecure



The general format for a password is:

{id}encodedPassword

Such that id is an identifier used to look up which PasswordEncoder should be used and encodedPassword is the original encoded password for the selected PasswordEncoder. The id must be at the beginning of the password, start with { and end with }. If the id cannot be found, the id will be null. For example, the following might be a list of passwords encoded using different id. All of the original passwords are "password".


저 아이디는 PasswordEncoder를 찾는 식별자입니다. 꼭 써야하고 encodePassword는 선택된 PasswordEncoder에 의해 인코드 된 비밀번호입니다.

저 id는 { 로 시작하고 }로 끝나며, 비밀번호의 가장 처음에 위치해야합니다. 만약 id를 발견할 수 없다면 id는 null이 될 것입니다.

다른 id를 이용하여 encode 된 비밀번호의 리스트를 밑에 예로 적어놨습니다. 모든 예의 원본 비밀번호는 password 입니다.



암호화 예가 있었는데 나는 필요없어서 안적었다. 필요한사람은 링크 참조


스프링 시큐리티 버전 5 이상부터는 password 앞에 식별자 정보를 넣어야 된다 아니면 


There is no PasswordEncoder mapped for the id "null"


에러가 난다.


자신이 암호화를 사용하지 않는다면


<security:authentication-manager>
<security:authentication-provider>
<security:user-service>
<security:user name="user" password="{noop}password" authorities="ROLE_USER"/>
</security:user-service>
</security:authentication-provider>
</security:authentication-manager>

이런식으로 비밀번호 앞에 {noop}을 적어두면 에러는 사라질 것이다.



반응형
저작자표시 비영리 변경금지 (새창열림)

'개발문제해결 > Exception' 카테고리의 다른 글

에러 The goal you specified requires a project to execute but there is no POM  (3) 2018.03.22
에러 - Optional int parameter is present but cannot be translated into a null value  (0) 2018.03.02
ORA-00936 누락된 표현식의 원인  (2) 2018.02.28
    '개발문제해결/Exception' 카테고리의 다른 글
    • Brackets 자바스크립트(javascript) 첫 console.log 에러
    • 에러 The goal you specified requires a project to execute but there is no POM
    • 에러 - Optional int parameter is present but cannot be translated into a null value
    • ORA-00936 누락된 표현식의 원인
    타진
    타진
    vulnerable1324@gmail.com

    티스토리툴바