org.springframework.security.authentication.InsufficientAuthenticationException: Full authentication is required to access this resource

Stack Overflow | Manu | 2 months ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to rafael and rafael . Or join the community to write better ones.
  1. 0
    samebug tip
    Primitive types can't be set to null, if there's a chance this might happen use Integer instead of int, as Integer can handle null.
  2. 0
    samebug tip
    Check if you added Multipart filter to your web.xml file. Also, take a look here https://goo.gl/ntbxrA for common mistakes related to MultiPart File Upload and how to solve them.
  3. 0
    samebug tip
    This is a bug in Wise, updating to v4.10 seems to solve the problem.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    X509AuthenticationFilter implementaion not working with subjectPrincipalRegex("CN=(.*?),") check

    Stack Overflow | 2 months ago | Manu
    org.springframework.security.authentication.InsufficientAuthenticationException: Full authentication is required to access this resource
  6. 0
    samebug tip
    If you want bigger filesizes, add "spring.http.multipart.maxFileSize = fileSizeMB" to your application.properties. Set it to -1 if you want it to be unlimited. Documentation here: https://goo.gl/dNbHUU

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.springframework.security.authentication.InsufficientAuthenticationException

      Full authentication is required to access this resource

      at org.springframework.security.web.access.ExceptionTranslationFilter.handleSpringSecurityException()
    2. Spring Security
      FilterChainProxy$VirtualFilterChain.doFilter
      1. org.springframework.security.web.access.ExceptionTranslationFilter.handleSpringSecurityException(ExceptionTranslationFilter.java:177)
      2. org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:133)
      3. org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
      4. org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:122)
      5. org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
      6. org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:111)
      7. org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
      8. org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:168)
      9. org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
      10. org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:48)
      11. org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
      12. org.springframework.security.web.authentication.preauth.AbstractPreAuthenticatedProcessingFilter.doFilter(AbstractPreAuthenticatedProcessingFilter.java:116)
      13. org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
      14. org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:120)
      15. org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
      15 frames
    3. org.springframework.security
      HeaderWriterFilter.doFilterInternal
      1. org.springframework.security.web.header.HeaderWriterFilter.doFilterInternal(HeaderWriterFilter.java:64)
      1 frame
    4. Spring
      OncePerRequestFilter.doFilter
      1. org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
      1 frame
    5. Spring Security
      FilterChainProxy$VirtualFilterChain.doFilter
      1. org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
      2. org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:91)
      3. org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
      3 frames