Skip to content
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

Does not go to @Secured controller even after Successful Login #599

Open
abhaygoel opened this issue Nov 12, 2019 · 2 comments
Open

Does not go to @Secured controller even after Successful Login #599

abhaygoel opened this issue Nov 12, 2019 · 2 comments

Comments

@abhaygoel
Copy link

Steps to Reproduce

Created a sample app using Grails 4.0.1, Spring Security 4.0.0.RC2.
Sample app is located at https://github.com/didinj/grails4-spring-security-login-example

Expected Behaviour

The control should get redirected to the url that led us to the login page. Alternatively, after login, if we change the browser url to a secured resource, we should be able to hit that resource since we are already logged in.

Actual Behaviour

Login is successful since we see that in the logs. However, we are not able to access a secured resource. It continuously redirects us back to the login page.
Tell us what happens instead

Environment Information

  • Operating System: Mac OSX Catalina
  • Grails Version (if using Grails): 4.0.1
  • JDK Version: JDK 1.8 u0_121

Example Application

@abhaygoel
Copy link
Author

Just realized that it works as expected on https. Is there a default setting that I'm missing?

@puneetbehl
Copy link
Contributor

@abhaygoel The sample application is working fine with HTTP.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants