Skip to content

Security raise StackOverflowError using authenticationManagerBuilder when user have wrong credentials #31836

@darkman97i

Description

@darkman97i

Description

  • Spring boot version: 2.7.1
  • JDK version: 1.11

I'm moving from old authentication style to the new authentication style based on the article published in the blog spring-security-without-the-websecurityconfigureradapter -> before adding the issue I have looking in stackoverflow for similar issue, here in closed issues, dead loops etc... but I have not been able to find anything in the same direction.

Everythings goes fine, except when I introduce bad credentials, then the application seems go into a loop until it is raised an java.lang.StackOverflowError: null ( here the full error stack trace )
error.txt

I have created a sample code at https://github.com/darkman97i/spring-security-test ( in the sample I'm using two providers in memory and jdbc. Also I included h2 database with users credentials into for a quick test ).

Thanks for your time

Metadata

Metadata

Assignees

No one assigned

    Labels

    for: external-projectFor an external project and not something we can fixstatus: invalidAn issue that we don't feel is valid

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions