인증 실패 봄 보안 wildfly

리안

봄 응용 프로그램을 바람둥이에서 wildfly로 마이그레이션하려고합니다. 더 이상 로그인 할 수 없습니다. 초기 성공 인증이 손실되거나 덮어 쓰여진 다음 익명 세션이 생성되는 것 같습니다.

봄 보안 : 4.0.1.RELEASE wildfly 8.2.0

갇혀서 알아낼 수 없습니다. 도움이나 제안을 주시면 감사하겠습니다.

감사

다음은 로그에서 발췌 한 내용입니다.

성공적인 인증 :

17:13:43,182 FINE  [org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter] (default task-6) Authentication success. Updating SecurityContextHolder to contain: org.springframework.security.authentication.UsernamePasswordAuthenticationToken@fc115a3: Principal: myapp.springSupport.AccountUser@bb94ce99: Username: test1976; Password: [PROTECTED]; Enabled: true; AccountNonExpired: true; credentialsNonExpired: true; AccountNonLocked: true; Granted Authorities: ROLE_sysadmin,user; Credentials: [PROTECTED]; Authenticated: true; Details: org.springframework.security.web.authentication.WebAuthenticationDetails@957e: RemoteIpAddress: 127.0.0.1; SessionId: null; Granted Authorities: ROLE_sysadmin, user
17:13:43,183 FINE  [org.springframework.security.web.authentication.SavedRequestAwareAuthenticationSuccessHandler] (default task-6) Using default Url: /
17:13:43,183 FINE  [org.springframework.security.web.DefaultRedirectStrategy] (default task-6) Redirecting to '/myapp/'
17:13:43,183 FINE  [org.springframework.security.web.context.HttpSessionSecurityContextRepository] (default task-6) HttpSession being created as SecurityContext is non-default
17:13:43,184 FINE  [org.springframework.security.web.context.HttpSessionSecurityContextRepository] (default task-6) SecurityContext 'org.springframework.security.core.context.SecurityContextImpl@fc115a3: Authentication: org.springframework.security.authentication.UsernamePasswordAuthenticationToken@fc115a3: Principal: myapp.springSupport.AccountUser@bb94ce99: Username: test1976; Password: [PROTECTED]; Enabled: true; AccountNonExpired: true; credentialsNonExpired: true; AccountNonLocked: true; Granted Authorities: ROLE_sysadmin,user; Credentials: [PROTECTED]; Authenticated: true; Details: org.springframework.security.web.authentication.WebAuthenticationDetails@957e: RemoteIpAddress: 127.0.0.1; SessionId: null; Granted Authorities: ROLE_sysadmin, user' stored to HttpSession: 'io.undertow.servlet.spec.HttpSessionImpl@725caa25
17:13:43,186 FINE  [org.springframework.security.web.context.SecurityContextPersistenceFilter] (default task-6) SecurityContextHolder now cleared, as request processing completed
17:13:43,202 FINE  [org.springframework.security.web.FilterChainProxy] (default task-9) /index.jsp at position 1 of 13 in additional filter chain; firing Filter: 'SecurityContextPersistenceFilter'
17:13:43,202 FINE  [org.springframework.security.web.context.HttpSessionSecurityContextRepository] (default task-9) No HttpSession currently exists
17:13:43,202 FINE  [org.springframework.security.web.context.HttpSessionSecurityContextRepository] (default task-9) No SecurityContext was available from the HttpSession: null. A new one will be created.

익명 세션이 생성되는 위치는 다음과 같습니다.

17:13:43,205 FINE  [org.springframework.security.web.authentication.AnonymousAuthenticationFilter] (default task-9) Populated SecurityContextHolder with anonymous token: 'org.springframework.security.authentication.AnonymousAuthenticationToken@9055e4a6: Principal: anonymousUser; Credentials: [PROTECTED]; Authenticated: true; Details: org.springframework.security.web.authentication.WebAuthenticationDetails@957e: RemoteIpAddress: 127.0.0.1; SessionId: null; Granted Authorities: ROLE_ANONYMOUS'
17:13:43,205 FINE  [org.springframework.security.web.FilterChainProxy] (default task-9) /index.jsp at position 11 of 13 in additional filter chain; firing Filter: 'SessionManagementFilter'
17:13:43,205 FINE  [org.springframework.security.web.session.SessionManagementFilter] (default task-9) Requested session ID 4B9EACEB7190B99CC7A1E248D8E4495B is invalid.
17:13:43,205 FINE  [org.springframework.security.web.FilterChainProxy] (default task-9) /index.jsp at position 12 of 13 in additional filter chain; firing Filter: 'ExceptionTranslationFilter'
17:13:43,206 FINE  [org.springframework.security.web.FilterChainProxy] (default task-9) /index.jsp at position 13 of 13 in additional filter chain; firing Filter: 'FilterSecurityInterceptor'
17:13:43,206 FINE  [org.springframework.security.web.util.matcher.AntPathRequestMatcher] (default task-9) Checking match of request : '/index.jsp'; against '/srv/private/**'
17:13:43,206 FINE  [org.springframework.security.web.access.intercept.FilterSecurityInterceptor] (default task-9) Public object - authentication not attempted
17:13:43,206 FINE  [org.springframework.security.web.FilterChainProxy] (default task-9) /index.jsp reached end of additional filter chain; proceeding with original chain
17:13:43,207 FINE  [org.springframework.security.web.context.HttpSessionSecurityContextRepository] (default task-9) SecurityContext is empty or contents are anonymous - context will not be stored in HttpSession.
17:13:43,207 FINE  [org.springframework.security.web.access.ExceptionTranslationFilter] (default task-9) Chain processed normally
17:13:43,207 FINE  [org.springframework.security.web.context.SecurityContextPersistenceFilter] (default task-9) SecurityContextHolder now cleared, as request processing completed
17:13:43,211 FINE  [org.springframework.security.web.FilterChainProxy] (default task-12) /srv/home at position 1 of 13 in additional filter chain; firing Filter: 'SecurityContextPersistenceFilter'
17:13:43,211 FINE  [org.springframework.security.web.context.HttpSessionSecurityContextRepository] (default task-12) No HttpSession currently exists
17:13:43,211 FINE  [org.springframework.security.web.context.HttpSessionSecurityContextRepository] (default task-12) No SecurityContext was available from the HttpSession: null. A new one will be created.

내 봄 보안 구성 :

<security:http auto-config="true"> 
    <security:intercept-url pattern="/srv/private/**"
        access="hasAuthority('user')"/>
    <!-- enable csrf protection -->
    <security:csrf disabled="true"/> 
</security:http>
리안

Sooooo, 나는 손잡이에 약간의 느낌이 든다.

파이어 폭스가 아닌 크롬을 사용할 때이 문제가 발생하지 않는 것으로 나타났습니다.

Firefox는 JSESSIONID를 변경했습니다.

이것은 우분투를 업그레이드하기 위해 너무 바빠서 매우 오래된 Firefox 브라우저를 사용하고 있기 때문입니다.

내가 손잡이처럼 느껴진다 고 말 했나요?

이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.

침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제

에서 수정
0

몇 마디 만하겠습니다

0리뷰
로그인참여 후 검토

관련 기사

분류에서Dev

봄 보안 인증

분류에서Dev

봄 보안 토큰 기반 인증

분류에서Dev

보안 관리자 패널 (봄 보안)

분류에서Dev

고객과 직원에 대한 봄 보안 사용자 인증

분류에서Dev

봄 보안 X.509 인증 - 그들의 발행 인증 기관에 따라 인증서를 승인

분류에서Dev

Infinispan + WildFly + 봄

분류에서Dev

봄 보안 HttpSecurity

분류에서Dev

봄 보안 : 변환 메모리 인증 데이터베이스에

분류에서Dev

봄 보안 사용자 정의 인증이 작동하지 않습니다.

분류에서Dev

Windows 앱 인증 키트 실행 실패 Windows 보안 모범 사례

분류에서Dev

보안 부팅-.cer로 정상적으로 실행-.crt 인증서로 실패

분류에서Dev

봉투를 보낼 때 인증 실패

분류에서Dev

Outlook SMTP Oauth 보내기-인증 실패

분류에서Dev

기본 인증 및 JWT에 대한 구성 여러 인증 유형 재치 봄 보안

분류에서Dev

특수 문자를 사용할 때 Wildfly 양식 인증이 실패 함

분류에서Dev

봄 보안, 로그 아웃 / 로그 아웃 / 로그인에서 패스 매개 변수

분류에서Dev

봄 보안 CSRF CORS

분류에서Dev

봄 보안 기본 로그인 및 인증 용의 HttpSession에 사용자를 넣어

분류에서Dev

봄 보안 UsernamePasswordAuthenticationFilter JWT 인증에서 설정 한 사용자 정의 로그인 URL

분류에서Dev

OAuth2를를 사용하여 봄 보안에서 인증 오류를 사용자 정의

분류에서Dev

봄 보안 : 사용자 정의 UserDetailsService의 호출되지 않는 (Auth0 인증을 사용)

분류에서Dev

나는 봄 보안과 구글 OIDC를 사용하여 사용자를 인증 할 수있는 방법 5.1+

분류에서Dev

봄 보안 : 405 "방법은 허용되지 않습니다"HTTP에서 인증 결과

분류에서Dev

봄 보안에서 email_id 또는 contact_number로 인증하는 방법은 무엇입니까?

분류에서Dev

Wildfly 10 Windows 인증

분류에서Dev

만약 angel (10)와 사용자 정의 봄 보안 로그인

분류에서Dev

봄 보안의 "주"는 무엇인가요?

분류에서Dev

봄 보안 및 필요한 조치 로그인 후

분류에서Dev

LDAP 그룹 인증 실패 : 잘못된 바인딩 정보

Related 관련 기사

  1. 1

    봄 보안 인증

  2. 2

    봄 보안 토큰 기반 인증

  3. 3

    보안 관리자 패널 (봄 보안)

  4. 4

    고객과 직원에 대한 봄 보안 사용자 인증

  5. 5

    봄 보안 X.509 인증 - 그들의 발행 인증 기관에 따라 인증서를 승인

  6. 6

    Infinispan + WildFly + 봄

  7. 7

    봄 보안 HttpSecurity

  8. 8

    봄 보안 : 변환 메모리 인증 데이터베이스에

  9. 9

    봄 보안 사용자 정의 인증이 작동하지 않습니다.

  10. 10

    Windows 앱 인증 키트 실행 실패 Windows 보안 모범 사례

  11. 11

    보안 부팅-.cer로 정상적으로 실행-.crt 인증서로 실패

  12. 12

    봉투를 보낼 때 인증 실패

  13. 13

    Outlook SMTP Oauth 보내기-인증 실패

  14. 14

    기본 인증 및 JWT에 대한 구성 여러 인증 유형 재치 봄 보안

  15. 15

    특수 문자를 사용할 때 Wildfly 양식 인증이 실패 함

  16. 16

    봄 보안, 로그 아웃 / 로그 아웃 / 로그인에서 패스 매개 변수

  17. 17

    봄 보안 CSRF CORS

  18. 18

    봄 보안 기본 로그인 및 인증 용의 HttpSession에 사용자를 넣어

  19. 19

    봄 보안 UsernamePasswordAuthenticationFilter JWT 인증에서 설정 한 사용자 정의 로그인 URL

  20. 20

    OAuth2를를 사용하여 봄 보안에서 인증 오류를 사용자 정의

  21. 21

    봄 보안 : 사용자 정의 UserDetailsService의 호출되지 않는 (Auth0 인증을 사용)

  22. 22

    나는 봄 보안과 구글 OIDC를 사용하여 사용자를 인증 할 수있는 방법 5.1+

  23. 23

    봄 보안 : 405 "방법은 허용되지 않습니다"HTTP에서 인증 결과

  24. 24

    봄 보안에서 email_id 또는 contact_number로 인증하는 방법은 무엇입니까?

  25. 25

    Wildfly 10 Windows 인증

  26. 26

    만약 angel (10)와 사용자 정의 봄 보안 로그인

  27. 27

    봄 보안의 "주"는 무엇인가요?

  28. 28

    봄 보안 및 필요한 조치 로그인 후

  29. 29

    LDAP 그룹 인증 실패 : 잘못된 바인딩 정보

뜨겁다태그

보관