-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Fix Spring Security integration docs sample #1304
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Thanks for raising this @pavankjadda - as discussed on Gitter, this is a problem with our documentation, and you should either inject and use raw type, or parameterized (respecting the original contract of |
@vpavic I created a Parameterized Consumer and tried to inject it as bean to my Security config. I still get the same error. Is this the right way to inject it?
SecurityConfig.java
|
Is this repo the app you're having issues with? |
@vpavic Yes |
I've taken a look at your sample @pavankjadda, but I'm afraid that's far from being a minimal sample. To begin with, your app requires a local running instance of MySQL. After working past that, I encountered a different issue from the one you reported:
There's a circular reference problem within your app, and that's something not necessarily related to Spring Session itself. This is unrelated to the originally reported problem of I'd suggest you to open a new issue, coupled with minimal, complete, and verifiable sample app that can demonstrate this issue in order to determine whether this indeed is a problem with Spring Session itself. |
@vpavic Thanks. I will create a new app with minimum code and open new issue |
@vpavic I created a new project with minimal code and config. Now, I can run the project without any exception. But I still see the error message (attached below) on IntelliJ despite the fact that I am able to run the project. Not sure what's wrong here. Thanks for the help |
That's simply a tooling warning - you could consider reporting in on IntelliJ issue tracker. I've seen it in the past but honestly didn't pay too much attention as the code compiles and runs without any warnings. |
Hello there, @vpavic Edit: Turns out the root cause of the issue is having @bean HttpSessionListener bean at the config. it will cause redisConnectionFactory to not be found. I think this should be mentioned at the docs |
Thanks for the sample project @f3l1xss. The problem with your project is that you're pulling in Once I added In future, try opening a new issue - commenting on closed issues isn't the best way to report issues. |
I am trying to implement RememberMe service for my Spring Security application with Spring Session management. I configured,
SpringSessionRememberMeServices
andSpringSessionBackedSessionRegistry
beans based on Spring Session Documentation. When I try to autowireFindByIndexNameSessionRepository
I got the following errorSecurityConfig.java
application.properties
https://docs.spring.io/spring-session/docs/current/reference/html5/#spring-security
The text was updated successfully, but these errors were encountered: